mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +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:
@@ -191,7 +191,7 @@
|
||||
// === SLIME ACTION DATUMS ====
|
||||
/datum/action/innate/slime_place
|
||||
name = "Place Slimes"
|
||||
button_overlay_icon_state = "slime_down"
|
||||
button_icon_state = "slime_down"
|
||||
|
||||
/datum/action/innate/slime_place/Activate()
|
||||
if(!target || !ishuman(owner))
|
||||
@@ -211,7 +211,7 @@
|
||||
|
||||
/datum/action/innate/slime_pick_up
|
||||
name = "Pick up Slime"
|
||||
button_overlay_icon_state = "slime_up"
|
||||
button_icon_state = "slime_up"
|
||||
|
||||
/datum/action/innate/slime_pick_up/Activate()
|
||||
if(!target || !ishuman(owner))
|
||||
@@ -233,7 +233,7 @@
|
||||
|
||||
/datum/action/innate/feed_slime
|
||||
name = "Feed Slimes"
|
||||
button_overlay_icon_state = "monkey_down"
|
||||
button_icon_state = "monkey_down"
|
||||
|
||||
/datum/action/innate/feed_slime/Activate()
|
||||
if(!target || !ishuman(owner))
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
/datum/action/innate/monkey_recycle
|
||||
name = "Recycle Monkeys"
|
||||
button_overlay_icon_state = "monkey_up"
|
||||
button_icon_state = "monkey_up"
|
||||
|
||||
/datum/action/innate/monkey_recycle/Activate()
|
||||
if(!target || !ishuman(owner))
|
||||
@@ -301,7 +301,7 @@
|
||||
|
||||
/datum/action/innate/slime_scan
|
||||
name = "Scan Slime"
|
||||
button_overlay_icon_state = "slime_scan"
|
||||
button_icon_state = "slime_scan"
|
||||
|
||||
/datum/action/innate/slime_scan/Activate()
|
||||
if(!target || !isliving(owner))
|
||||
@@ -317,7 +317,7 @@
|
||||
|
||||
/datum/action/innate/feed_potion
|
||||
name = "Apply Potion"
|
||||
button_overlay_icon_state = "slime_potion"
|
||||
button_icon_state = "slime_potion"
|
||||
|
||||
/datum/action/innate/feed_potion/Activate()
|
||||
if(!target || !ishuman(owner))
|
||||
@@ -340,7 +340,7 @@
|
||||
|
||||
/datum/action/innate/hotkey_help
|
||||
name = "Hotkey Help"
|
||||
button_overlay_icon_state = "hotkey_help"
|
||||
button_icon_state = "hotkey_help"
|
||||
|
||||
/datum/action/innate/hotkey_help/Activate()
|
||||
if(!target || !isliving(owner))
|
||||
|
||||
@@ -248,8 +248,8 @@
|
||||
/datum/spell/drake_breath/update_spell_icon()
|
||||
if(!action)
|
||||
return
|
||||
action.button_overlay_icon_state = "fireball[active]"
|
||||
action.UpdateButtons()
|
||||
action.button_icon_state = "fireball[active]"
|
||||
action.build_all_button_icons()
|
||||
|
||||
/datum/spell/drake_breath/cast(list/targets, mob/living/user)
|
||||
. = ..()
|
||||
@@ -1030,8 +1030,8 @@
|
||||
/datum/action/innate/migo_noise
|
||||
name = "Make some noise!"
|
||||
desc = "Your organ YEARNS to make noises of all kinds. Let it loose for a moment!"
|
||||
button_overlay_icon = 'icons/mob/animal.dmi'
|
||||
button_overlay_icon_state = "mi-go"
|
||||
button_icon = 'icons/mob/animal.dmi'
|
||||
button_icon_state = "mi-go"
|
||||
var/cooldown = 0
|
||||
|
||||
COOLDOWN_DECLARE(migo_cooldown)
|
||||
|
||||
Reference in New Issue
Block a user