mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
* 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>
23 lines
649 B
Plaintext
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]
|
|
|
|
|