WIP checkpoint: Implement avatar loader and customization UI in Godot
This commit is contained in:
+7
-11
@@ -1,9 +1,8 @@
|
||||
## MainMenu - Main menu scene with navigation to avatar customization.
|
||||
##
|
||||
## Provides buttons for:
|
||||
## - Start Game
|
||||
## - Customize Avatar (opens avatar customization UI)
|
||||
## - Settings
|
||||
## - Play
|
||||
## - Quit
|
||||
|
||||
extends Control
|
||||
@@ -13,9 +12,9 @@ extends Control
|
||||
# UI References
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@onready var customize_button: Button = $VBoxContainer/CustomizeAvatar
|
||||
@onready var settings_button: Button = $VBoxContainer/Settings
|
||||
@onready var quit_button: Button = $VBoxContainer/Quit
|
||||
@onready var customize_button: Button = $CenterContainer/VBoxContainer/CustomizeButton
|
||||
@onready var play_button: Button = $CenterContainer/VBoxContainer/PlayButton
|
||||
@onready var quit_button: Button = $CenterContainer/VBoxContainer/QuitButton
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -28,9 +27,6 @@ signal open_customization
|
||||
## Emitted when the player requests to start the game.
|
||||
signal start_game
|
||||
|
||||
## Emitted when the player requests to open settings.
|
||||
signal open_settings
|
||||
|
||||
## Emitted when the player requests to quit.
|
||||
signal quit_requested
|
||||
|
||||
@@ -41,7 +37,7 @@ signal quit_requested
|
||||
|
||||
func _ready() -> void:
|
||||
customize_button.pressed.connect(_on_customize_pressed)
|
||||
settings_button.pressed.connect(_on_settings_pressed)
|
||||
play_button.pressed.connect(_on_play_pressed)
|
||||
quit_button.pressed.connect(_on_quit_pressed)
|
||||
|
||||
|
||||
@@ -53,8 +49,8 @@ func _on_customize_pressed() -> void:
|
||||
open_customization.emit()
|
||||
|
||||
|
||||
func _on_settings_pressed() -> void:
|
||||
open_settings.emit()
|
||||
func _on_play_pressed() -> void:
|
||||
start_game.emit()
|
||||
|
||||
|
||||
func _on_quit_pressed() -> void:
|
||||
|
||||
Reference in New Issue
Block a user