mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
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:
@@ -79,7 +79,7 @@
|
||||
alien = 0
|
||||
|
||||
if(radio_action)
|
||||
radio_action.UpdateButtons()
|
||||
radio_action.build_all_button_icons()
|
||||
SSblackbox.record_feedback("amount", "mmis_filled", 1)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You can't drop [B]!</span>")
|
||||
@@ -178,7 +178,7 @@
|
||||
/obj/item/mmi/proc/become_occupied(new_icon)
|
||||
icon_state = new_icon
|
||||
if(radio)
|
||||
radio_action.UpdateButtons()
|
||||
radio_action.build_all_button_icons()
|
||||
|
||||
/obj/item/mmi/examine(mob/user)
|
||||
. = ..()
|
||||
@@ -212,8 +212,8 @@
|
||||
return ..()
|
||||
|
||||
/datum/action/generic/configure_mmi_radio/apply_button_overlay(atom/movable/screen/movable/action_button/current_button)
|
||||
button_overlay_icon = mmi.icon
|
||||
button_overlay_icon_state = mmi.icon_state
|
||||
button_icon = mmi.icon
|
||||
button_icon_state = mmi.icon_state
|
||||
..()
|
||||
|
||||
/obj/item/mmi/emp_act(severity)
|
||||
|
||||
Reference in New Issue
Block a user