2026-01-01 07:36:54 -05:00
|
|
|
class_name ControlDisplay extends Control
|
|
|
|
|
|
|
|
|
|
@onready var range_attack_button : TextureButton = $RangedAttack
|
|
|
|
|
@onready var melee_attack_button : TextureButton = $MeleeAttack
|
2026-03-01 21:26:31 -05:00
|
|
|
@onready var hack_button : TextureButton = $Hack
|
2026-01-01 07:36:54 -05:00
|
|
|
@onready var detect_button : TextureButton = $Detect
|
|
|
|
|
@onready var switch_button : TextureButton = $Switch
|
|
|
|
|
|
|
|
|
|
func _on_melee_range_changed(melee : bool) -> void:
|
|
|
|
|
range_attack_button.visible = !melee
|
|
|
|
|
melee_attack_button.visible = melee
|
|
|
|
|
|
2026-03-19 23:50:29 -04:00
|
|
|
func _process(_delta: float) -> void:
|
2026-03-01 21:26:31 -05:00
|
|
|
hack_button.set_pressed_no_signal(Input.is_action_pressed("install"))
|
2026-01-01 07:36:54 -05:00
|
|
|
detect_button.set_pressed_no_signal(Input.is_action_pressed("detect"))
|
|
|
|
|
switch_button.set_pressed_no_signal(Input.is_action_pressed("detonate"))
|
|
|
|
|
melee_attack_button.set_pressed_no_signal(Input.is_action_pressed("attack"))
|
|
|
|
|
range_attack_button.set_pressed_no_signal(Input.is_action_pressed("attack"))
|