Files
Bubberstation/code/_onclick/hud/screentip.dm
SkyratBot 8ab93cece2 [MIRROR] Made screentips appear on a higher layer than action buttons. [MDB IGNORE] (#12747)
* Made screentips appear on a higher layer than action buttons.

* Update layers.dm

Co-authored-by: Alex Pynnonen <alexpynnonen01@gmail.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
2022-04-16 08:44:46 -07:00

23 lines
649 B
Plaintext

/atom/movable/screen/screentip
icon = null
icon_state = null
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
screen_loc = "TOP,LEFT"
maptext_height = 480
maptext_width = 480
maptext = ""
layer = SCREENTIP_LAYER //Added to make screentips appear above action buttons (and other /atom/movable/screen objects)
/atom/movable/screen/screentip/Initialize(mapload, _hud)
. = ..()
hud = _hud
update_view()
/atom/movable/screen/screentip/proc/update_view(datum/source)
SIGNAL_HANDLER
if(!hud || !hud.mymob.client.view_size) //Might not have been initialized by now
return
maptext_width = view_to_pixels(hud.mymob.client.view_size.getView())[1]