fix constructs follow-up pr
This commit is contained in:
@@ -340,6 +340,11 @@ GLOBAL_LIST_INIT(available_ui_styles, list(
|
||||
return
|
||||
|
||||
/datum/hud/proc/position_action(atom/movable/screen/movable/action_button/button, position)
|
||||
// This is kinda a hack, I'm sorry.
|
||||
// Basically, FLOATING is never a valid position to pass into this proc. It exists as a generic marker for manually positioned buttons
|
||||
// Not as a position to target
|
||||
if(position == SCRN_OBJ_FLOATING)
|
||||
return
|
||||
if(button.location != SCRN_OBJ_DEFAULT)
|
||||
hide_action(button)
|
||||
switch(position)
|
||||
@@ -429,7 +434,8 @@ GLOBAL_LIST_INIT(available_ui_styles, list(
|
||||
if(!button)
|
||||
action.ShowTo(mymob)
|
||||
button = action.viewers[src]
|
||||
position_action(button, button.location)
|
||||
else
|
||||
position_action(button, button.location)
|
||||
|
||||
/datum/action_group
|
||||
/// The hud we're owned by
|
||||
|
||||
Reference in New Issue
Block a user