mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +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:
committed by
GitHub
parent
f9016e65ff
commit
56f4960ed4
@@ -331,7 +331,7 @@
|
||||
qdel(M)
|
||||
pinned_to = list()
|
||||
return
|
||||
var/datum/action/item_action/mod/pinned_module/new_action = new(Target = mod, custom_icon = src.icon, custom_icon_state = src.icon_state, linked_module = src, user = user)
|
||||
var/datum/action/item_action/mod/pinned_module/new_action = new(Target = mod, linked_module = src, user = user)
|
||||
to_chat(user, "[new_action] is now pinned to the UI!")
|
||||
|
||||
|
||||
|
||||
@@ -211,12 +211,11 @@
|
||||
/datum/action/item_action/mod_recall
|
||||
name = "Recall MOD"
|
||||
desc = "Recall a MODsuit anyplace, anytime."
|
||||
use_itemicon = FALSE
|
||||
check_flags = AB_CHECK_CONSCIOUS
|
||||
button_overlay_icon = 'icons/mob/actions/actions_mod.dmi'
|
||||
button_overlay_icon_state = "recall"
|
||||
button_background_icon = 'icons/mob/actions/actions_mod.dmi'
|
||||
button_background_icon_state = "bg_mod"
|
||||
button_icon = 'icons/mob/actions/actions_mod.dmi'
|
||||
button_icon_state = "recall"
|
||||
background_icon = 'icons/mob/actions/actions_mod.dmi'
|
||||
background_icon_state = "bg_mod"
|
||||
/// The cooldown for the recall.
|
||||
COOLDOWN_DECLARE(recall_cooldown)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user