feat(ui): wire M8 social, M9 economy, and M10 discovery into main menu and in-game HUD
checkpoint / checkpoint (push) Successful in 5m54s

This commit is contained in:
2026-09-17 18:04:47 +00:00
parent ea6948a9ba
commit e05e18c384
10 changed files with 382 additions and 23 deletions
+9 -1
View File
@@ -10,6 +10,7 @@ signal worlds_loaded(count: int)
@onready var back_button: Button = $VBox/Header/BackButton
@onready var refresh_button: Button = $VBox/Header/RefreshButton
@onready var world_list_button: Button = $VBox/Header.get_node_or_null("WorldListButton")
@onready var status_label: Label = $VBox/StatusLabel
# Filter Controls
@@ -94,6 +95,8 @@ func _wire_signals() -> void:
prev_button.pressed.connect(_on_prev_page_pressed)
if next_button and not next_button.pressed.is_connected(_on_next_page_pressed):
next_button.pressed.connect(_on_next_page_pressed)
if world_list_button and not world_list_button.pressed.is_connected(_on_world_list_pressed):
world_list_button.pressed.connect(_on_world_list_pressed)
func load_categories() -> void:
@@ -372,5 +375,10 @@ func _on_next_page_pressed() -> void:
func _on_back_pressed() -> void:
back_requested.emit()
if get_tree():
if get_tree() and get_tree().current_scene == self:
get_tree().change_scene_to_file("res://scenes/main_menu.tscn")
func _on_world_list_pressed() -> void:
if get_tree():
get_tree().change_scene_to_file("res://scenes/world_list.tscn")