added action button ability to lock or unlock them in place

This commit is contained in:
Arkatos1
2019-05-21 22:44:54 +02:00
parent 4846a17bcf
commit fb8313308e
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()