add game menu

This commit was merged in pull request #19.
This commit is contained in:
2026-05-15 20:33:21 +00:00
parent 22877bffbe
commit 0e56a84a95
173 changed files with 3529 additions and 317 deletions

View File

@@ -0,0 +1,18 @@
extends Control
@onready var photo: Photo = $%Photo
@onready var panel: Panel = $%Panel
func _ready() -> void:
GameState.on_photo_highlighted.connect(_on_photo_highlighted)
func _on_photo_highlighted(texture: Texture) -> void:
if texture != photo.texture_rect.texture:
show()
photo.setup(texture)
func _on_panel_gui_input(event: InputEvent) -> void:
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
photo.texture_rect.texture = null
hide()