Merge pull request #11566 from Arkatos1/locked

Action Buttons - Lockdown
This commit is contained in:
variableundefined
2019-07-09 18:22:40 +08:00
committed by GitHub
3 changed files with 27 additions and 13 deletions
+2
View File
@@ -43,6 +43,7 @@
M.actions += src
if(M.client)
M.client.screen += button
button.locked = TRUE
M.update_action_buttons()
/datum/action/proc/Remove(mob/M)
@@ -52,6 +53,7 @@
if(M.client)
M.client.screen -= button
button.moved = FALSE //so the button appears in its normal position when given to another owner.
button.locked = FALSE
M.actions -= src
M.update_action_buttons()