diff --git a/code/_onclick/hud/hud.dm b/code/_onclick/hud/hud.dm index bdde739d83..98c187fc97 100644 --- a/code/_onclick/hud/hud.dm +++ b/code/_onclick/hud/hud.dm @@ -177,7 +177,10 @@ var/list/global_huds = list( var/obj/screen/move_intent var/list/adding + /// Misc hud elements that are hidden when the hud is minimized var/list/other + /// Same, but always shown even when the hud is minimized + var/list/other_important var/list/miniobjs var/list/obj/screen/hotkeybuttons @@ -214,6 +217,7 @@ var/list/global_huds = list( move_intent = null adding = null other = null + other_important = null hotkeybuttons = null // item_action_list = null // ? mymob = null @@ -367,12 +371,16 @@ var/list/global_huds = list( client.screen -= hud_used.other if(hud_used.hotkeybuttons) client.screen -= hud_used.hotkeybuttons + if(hud_used.other_important) + client.screen -= hud_used.other_important else hud_used.hud_shown = 1 if(hud_used.adding) client.screen += hud_used.adding if(hud_used.other && hud_used.inventory_shown) client.screen += hud_used.other + if(hud_used.other_important) + client.screen += hud_used.other_important if(hud_used.hotkeybuttons && !hud_used.hotkey_ui_hidden) client.screen += hud_used.hotkeybuttons if(healths) diff --git a/code/datums/components/crafting/crafting.dm b/code/datums/components/crafting/crafting.dm index e823199af3..db22dda296 100644 --- a/code/datums/components/crafting/crafting.dm +++ b/code/datums/components/crafting/crafting.dm @@ -8,7 +8,7 @@ var/datum/hud/H = user.hud_used var/obj/screen/craft/C = new() C.icon = H.ui_style - H.other += C + LAZYADD(H.other_important, C) CL.screen += C RegisterSignal(C, COMSIG_CLICK, .proc/component_ui_interact) diff --git a/code/modules/nifsoft/nif_tgui.dm b/code/modules/nifsoft/nif_tgui.dm index b5978242c4..f24f475baf 100644 --- a/code/modules/nifsoft/nif_tgui.dm +++ b/code/modules/nifsoft/nif_tgui.dm @@ -55,7 +55,7 @@ screen_icon = new() RegisterSignal(screen_icon, COMSIG_CLICK, .proc/nif_menu_click) screen_icon.icon = HUD.ui_style - HUD.other += screen_icon + LAZYADD(HUD.other_important, screen_icon) user.client?.screen += screen_icon user.verbs |= /mob/living/carbon/human/proc/nif_menu