mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-26 09:32:21 +00:00
* Rewrites how action buttons icons are generated, makes them layer nicer. Allows observers to see a mob's action buttons. * conflicts * Modular! * update modular * icon icon icon icon icon Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com> Co-authored-by: Funce <funce.973@gmail.com>
64 lines
1.6 KiB
Plaintext
64 lines
1.6 KiB
Plaintext
/datum/action/innate/pai
|
|
name = "PAI Action"
|
|
button_icon = 'icons/mob/actions/actions_silicon.dmi'
|
|
var/mob/living/silicon/pai/pai_owner
|
|
|
|
/datum/action/innate/pai/Trigger(trigger_flags)
|
|
if(!ispAI(owner))
|
|
return FALSE
|
|
pai_owner = owner
|
|
|
|
/datum/action/innate/pai/software
|
|
name = "Software Interface"
|
|
button_icon_state = "pai"
|
|
background_icon_state = "bg_tech"
|
|
overlay_icon_state = "bg_tech_border"
|
|
|
|
/datum/action/innate/pai/software/Trigger(trigger_flags)
|
|
..()
|
|
pai_owner.ui_act()
|
|
|
|
/datum/action/innate/pai/shell
|
|
name = "Toggle Holoform"
|
|
button_icon_state = "pai_holoform"
|
|
background_icon_state = "bg_tech"
|
|
overlay_icon_state = "bg_tech_border"
|
|
|
|
/datum/action/innate/pai/shell/Trigger(trigger_flags)
|
|
..()
|
|
if(pai_owner.holoform)
|
|
pai_owner.fold_in(0)
|
|
else
|
|
pai_owner.fold_out()
|
|
|
|
/datum/action/innate/pai/chassis
|
|
name = "Holochassis Appearance Composite"
|
|
button_icon_state = "pai_chassis"
|
|
background_icon_state = "bg_tech"
|
|
overlay_icon_state = "bg_tech_border"
|
|
|
|
/datum/action/innate/pai/chassis/Trigger(trigger_flags)
|
|
..()
|
|
pai_owner.choose_chassis()
|
|
|
|
/datum/action/innate/pai/rest
|
|
name = "Rest"
|
|
button_icon_state = "pai_rest"
|
|
background_icon_state = "bg_tech"
|
|
overlay_icon_state = "bg_tech_border"
|
|
|
|
/datum/action/innate/pai/rest/Trigger(trigger_flags)
|
|
..()
|
|
pai_owner.toggle_resting()
|
|
|
|
/datum/action/innate/pai/light
|
|
name = "Toggle Integrated Lights"
|
|
button_icon = 'icons/mob/actions/actions_spells.dmi'
|
|
button_icon_state = "emp"
|
|
background_icon_state = "bg_tech"
|
|
overlay_icon_state = "bg_tech_border"
|
|
|
|
/datum/action/innate/pai/light/Trigger(trigger_flags)
|
|
..()
|
|
pai_owner.toggle_integrated_light()
|