refactor action buttons (#29416)

* refactor action buttons

* fix cult spell charge overlay

* lewc review

* update for a/mhelp buttons and xenobio organs

* update for minebot

* properly create button each time

* directly add/remove unavail overlay for reasons

* lewc review
This commit is contained in:
warriorstar-orion
2025-07-28 19:13:28 +00:00
committed by GitHub
parent f9016e65ff
commit 56f4960ed4
115 changed files with 815 additions and 584 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
if(recharge_time > world.time)
return FALSE
current_charges++
spell_parent.action.UpdateButtons()
spell_parent.action.build_all_button_icons()
if(current_charges < max_charges) // we have more recharges to go
recharge_time = world.time + recharge_duration
return FALSE
+2 -2
View File
@@ -33,7 +33,7 @@
if(!spell_parent.action)
stack_trace("[spell_parent.type] ended up with a null action")
return PROCESS_KILL
spell_parent.action.UpdateButtons()
spell_parent.action.build_all_button_icons()
if(should_end_cooldown())
return PROCESS_KILL
@@ -58,7 +58,7 @@
else
recharge_time = get_recharge_time()
if(spell_parent.action)
spell_parent.action.UpdateButtons()
spell_parent.action.build_all_button_icons()
START_PROCESSING(SSfastprocess, src)
/datum/spell_cooldown/proc/revert_cast()