mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] The final action buttons PR (#9324)
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
196770e16f
commit
09f82b6fff
@@ -63,7 +63,9 @@
|
||||
|
||||
/datum/action/innate/mecha
|
||||
check_flags = AB_CHECK_RESTRAINED | AB_CHECK_STUNNED | AB_CHECK_CONSCIOUS
|
||||
background_icon = 'icons/effects/actions_mecha.dmi'
|
||||
button_icon = 'icons/effects/actions_mecha.dmi'
|
||||
overlay_icon = 'icons/effects/actions_mecha.dmi'
|
||||
var/obj/mecha/chassis
|
||||
|
||||
/datum/action/innate/mecha/Destroy()
|
||||
@@ -82,7 +84,7 @@
|
||||
|
||||
/datum/action/innate/mecha/mech_toggle_lights/Activate()
|
||||
button_icon_state = "mech_lights_[chassis.lights ? "off" : "on"]"
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
chassis.lights()
|
||||
|
||||
|
||||
@@ -93,7 +95,7 @@
|
||||
|
||||
/datum/action/innate/mecha/mech_toggle_internals/Activate()
|
||||
button_icon_state = "mech_internals_[chassis.use_internal_tank ? "off" : "on"]"
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
chassis.internal_tank()
|
||||
|
||||
|
||||
@@ -122,7 +124,7 @@
|
||||
|
||||
/datum/action/innate/mecha/strafe/Activate()
|
||||
button_icon_state = "mech_strafe_[chassis.strafing ? "off" : "on"]"
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
chassis.strafing()
|
||||
|
||||
|
||||
@@ -133,7 +135,7 @@
|
||||
|
||||
/datum/action/innate/mecha/mech_defence_mode/Activate()
|
||||
button_icon_state = "mech_defense_mode_[chassis.defence_mode ? "off" : "on"]"
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
chassis.defence_mode()
|
||||
|
||||
|
||||
@@ -144,7 +146,7 @@
|
||||
|
||||
/datum/action/innate/mecha/mech_overload_mode/Activate()
|
||||
button_icon_state = "mech_overload_[chassis.overload ? "off" : "on"]"
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
chassis.overload()
|
||||
|
||||
|
||||
@@ -155,7 +157,7 @@
|
||||
|
||||
/datum/action/innate/mecha/mech_smoke/Activate()
|
||||
//button_icon_state = "mech_smoke_[chassis.smoke ? "off" : "on"]"
|
||||
//UpdateButtonIcon() //Dual colors notneeded ATM
|
||||
//build_all_button_icons() //Dual colors notneeded ATM
|
||||
chassis.smoke()
|
||||
|
||||
|
||||
@@ -166,7 +168,7 @@
|
||||
|
||||
/datum/action/innate/mecha/mech_zoom/Activate()
|
||||
button_icon_state = "mech_zoom_[chassis.zoom ? "off" : "on"]"
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
chassis.zoom()
|
||||
|
||||
|
||||
@@ -177,7 +179,7 @@
|
||||
|
||||
/datum/action/innate/mecha/mech_toggle_thrusters/Activate()
|
||||
button_icon_state = "mech_thrusters_[chassis.thrusters ? "off" : "on"]"
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
chassis.thrusters()
|
||||
|
||||
|
||||
@@ -202,7 +204,7 @@
|
||||
chassis.occupant_message("You select [chassis.selected]")
|
||||
send_byjax(chassis.occupant,"exosuit.browser","eq_list",chassis.get_equipment_list())
|
||||
button_icon_state = "mech_cycle_equip_on"
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
return
|
||||
var/number = 0
|
||||
for(var/A in available_equipment)
|
||||
@@ -217,7 +219,7 @@
|
||||
chassis.occupant_message("You switch to [chassis.selected]")
|
||||
button_icon_state = "mech_cycle_equip_on"
|
||||
send_byjax(chassis.occupant,"exosuit.browser","eq_list",chassis.get_equipment_list())
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
return
|
||||
|
||||
|
||||
@@ -232,7 +234,7 @@
|
||||
|
||||
button_icon_state = "mech_damtype_[chassis.damtype]"
|
||||
playsound(src, 'sound/mecha/mechmove01.ogg', 50, 1)
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
chassis.query_damtype()
|
||||
|
||||
|
||||
@@ -243,7 +245,7 @@
|
||||
|
||||
/datum/action/innate/mecha/mech_toggle_phasing/Activate()
|
||||
button_icon_state = "mech_phasing_[chassis.phasing ? "off" : "on"]"
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
chassis.phasing()
|
||||
|
||||
|
||||
@@ -254,7 +256,7 @@
|
||||
|
||||
/datum/action/innate/mecha/mech_toggle_cloaking/Activate()
|
||||
button_icon_state = "mech_phasing_[chassis.cloaked ? "off" : "on"]"
|
||||
UpdateButtonIcon()
|
||||
build_all_button_icons()
|
||||
chassis.toggle_cloaking()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user