update ai, audio, menu

This commit is contained in:
2026-05-28 23:08:19 +02:00
parent a47088f161
commit 12d93a9bfb
26 changed files with 601 additions and 35 deletions

View File

@@ -0,0 +1,22 @@
@tool
extends Control
class_name IconButton
signal on_pressed
@export var image: Texture:
set(value):
image = value
if is_inside_tree() and has_node("%Texture"):
$%Texture.texture = image
func _ready():
if image != null and has_node("%Texture"):
$%Texture.texture = image
func _on_gui_input(event: InputEvent) -> void:
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
on_pressed.emit()