Ports Hover Overlays (#8870)

* HUD Overlay

* finishes up the port

* fixes
This commit is contained in:
Geeves
2020-05-19 00:28:23 +02:00
committed by GitHub
parent d7231e6ee5
commit 3ec99c8d64
13 changed files with 144 additions and 45 deletions
@@ -1056,6 +1056,11 @@ There are several things that need to be remembered:
if(hud_used)
hud_used.hidden_inventory_update() //Updates the screenloc of the items on the 'other' inventory bar
//update whether handcuffs appears on our hud.
/mob/living/carbon/proc/update_hud_handcuffed()
if(hud_used && hud_used.l_hand_hud_object && hud_used.r_hand_hud_object)
hud_used.l_hand_hud_object.update_icon()
hud_used.r_hand_hud_object.update_icon()
/mob/living/carbon/human/update_inv_handcuffed(var/update_icons=1)
if (QDELING(src))
@@ -1077,6 +1082,7 @@ There are several things that need to be remembered:
else
overlays_raw[HANDCUFF_LAYER] = null
update_hud_handcuffed()
if(update_icons)
update_icons()