-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Pull Request Hakkında Ports Name Tags : Monkestation/Monkestation2.0#1883 Oyunda ctrl basınca diğer canlıların isimlerini görebilmemizi sağlar, görebilme alanı karakterimizden bikaç tile yarıçapında bir büyüklükte  ## Oyun İçin Neden Gerekli Oyundaki karakterimiz karşısındaki kişilerin adlarını biliyor ama bizim mouseyi üstüne götürmemiz lazım, ctrl basıp direkt görebilmemiz bence daha hoş olucaktır. ## Changelog :cl: Rengan add: Basınca etrafımızdaki canlıların isimlerini görebilmemizi sağlayan bir keybind eklendi, Varsayılan tuş: Ctrl /:cl:
- Loading branch information
Showing
39 changed files
with
197 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/atom/movable/screen/name_shadow | ||
icon = 'icons/psychonaut/effects/covers.dmi' | ||
icon_state = "alpha-blocker" | ||
mouse_opacity = MOUSE_OPACITY_TRANSPARENT | ||
plane = PLANE_NAME_TAGS_BLOCKER | ||
screen_loc = "BOTTOM,LEFT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/obj/effect/abstract/name_tag | ||
name = "" | ||
icon = null | ||
alpha = 180 | ||
plane = PLANE_NAME_TAGS | ||
mouse_opacity = MOUSE_OPACITY_TRANSPARENT | ||
maptext_y = -13 //directly below characters | ||
appearance_flags = PIXEL_SCALE | RESET_COLOR | RESET_TRANSFORM | ||
var/list/hiding_references = list() | ||
|
||
/obj/effect/abstract/name_tag/Initialize(mapload) | ||
. = ..() | ||
if(!ismovable(loc) || QDELING(loc)) | ||
return INITIALIZE_HINT_QDEL | ||
var/atom/movable/movable_loc = loc | ||
movable_loc.vis_contents += src | ||
var/bound_width = movable_loc.bound_width || world.icon_size | ||
maptext_width = NAME_TAG_WIDTH | ||
maptext_height = world.icon_size * 1.5 | ||
maptext_x = ((NAME_TAG_WIDTH - bound_width) * -0.5) - loc.base_pixel_x | ||
maptext_y = src::maptext_y - loc.base_pixel_y | ||
RegisterSignal(movable_loc, COMSIG_MOVABLE_Z_CHANGED, PROC_REF(update_z)) | ||
|
||
/obj/effect/abstract/name_tag/Destroy(force) | ||
if(QDELETED(loc)) | ||
return ..() | ||
if(ismovable(loc)) | ||
var/atom/movable/movable_loc = loc | ||
movable_loc.vis_contents -= src | ||
UnregisterSignal(loc, COMSIG_MOVABLE_Z_CHANGED) | ||
return ..() | ||
|
||
/obj/effect/abstract/name_tag/forceMove(atom/destination, no_tp = FALSE, harderforce = FALSE) | ||
if(harderforce) | ||
return ..() | ||
|
||
/obj/effect/abstract/name_tag/proc/hide(force = FALSE) | ||
if(hiding_references.len || force) | ||
alpha = 0 | ||
|
||
/obj/effect/abstract/name_tag/proc/show(force = FALSE) | ||
if(!hiding_references.len || force) | ||
alpha = 255 | ||
|
||
/obj/effect/abstract/name_tag/proc/set_name(incoming_name) | ||
maptext = MAPTEXT_GRAND9K("<span style='text-align: center'>[incoming_name]</span>") | ||
|
||
/obj/effect/abstract/name_tag/proc/update_z(datum/source, turf/old_turf, turf/new_turf, same_z_layer) | ||
SET_PLANE(src, PLANE_TO_TRUE(src.plane), new_turf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.