ai and game menu

This commit was merged in pull request #23.
This commit is contained in:
2026-05-30 14:56:28 +00:00
parent 6cb5104729
commit 55aea7bdc4
92 changed files with 32771 additions and 118 deletions

View File

@@ -0,0 +1,23 @@
@tool
extends Control
class_name IconButton
signal on_pressed
@export var data: String
@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()