mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
* add the new stuff * guh * add the brunt of it * action button stuff * adds a lot of other stuff * careful find and replace * it loads * so many huds * ehh yeah this kinda works * fixes this runtime * hacks in some DMI stuff, we'll fix it later * Adds better mouse pointer for dragging buttons * gets dragging into place working again, updates DMI * moves define * remove extra hud defines, now it compiles * CHECK GREP * owww * rename action defines * ticks * are we good * let's try that again * renames mob vars * renames * fixes some hud issues with huds getting the wrong variable * fixes some alignment issues * Adds mouse-wheel scroll support * left -> right * I am the entire circus * first self-review pass * Another review pass -- just realized I need to fix keybinds * more testing * update icons * oops * Fix spell icons not appearing properly * fixes some outstanding issues - Action button backgrounds now work properly - Fixes some runtimes on dropping - Fixes some misplaced icons * hmm * weh * again? * nah? * maybe this? * asdf * should finally fix CI * add client check * move the ? * add missing override causing runtimes * shift-clicking now doesn't trigger the button * better docs
21 lines
561 B
Plaintext
21 lines
561 B
Plaintext
/atom/movable/screen/screentip
|
|
icon = null
|
|
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
|
|
screen_loc = "TOP,LEFT"
|
|
maptext_height = 480
|
|
maptext_width = 480
|
|
maptext_y = -50
|
|
maptext = ""
|
|
|
|
/atom/movable/screen/screentip/Initialize(mapload, _hud)
|
|
. = ..()
|
|
hud = _hud
|
|
update_view()
|
|
|
|
/atom/movable/screen/screentip/proc/update_view(datum/source)
|
|
if(!hud?.mymob?.client) //Might not have been initialized by now
|
|
return
|
|
var/list/view_size = getviewsize(hud.mymob.client.view)
|
|
var/view = "[view_size[1]]x[view_size[2]]"
|
|
maptext_width = view_to_pixels(view)[1]
|