WIP checkpoint: Implementation: Browse worlds screen wired to GET /api/worlds

This commit is contained in:
2026-08-19 16:41:18 +00:00
parent 55a65bb7b1
commit 03da22aa9e
2 changed files with 17 additions and 3 deletions
+16 -2
View File
@@ -45,13 +45,27 @@ size_flags_vertical = 4
horizontal_mode = 2 horizontal_mode = 2
vertical_mode = 2 vertical_mode = 2
[node name="ScrollVBox" type="VBoxContainer" parent="VBoxContainer/ScrollContainer"] [node name="WorldList" type="VBoxContainer" parent="VBoxContainer/ScrollContainer"]
layout_mode = 3 layout_mode = 3
size_flags_horizontal = 4 size_flags_horizontal = 4
size_flags_vertical = 4 size_flags_vertical = 4
theme_override_constants/separation = 8 theme_override_constants/separation = 8
[node name="StatusLabel" type="Label" parent="VBoxContainer"] [node name="LoadingLabel" type="Label" parent="VBoxContainer"]
layout_mode = 3
text = "Loading worlds..."
visible = false
horizontal_alignment = 1
theme_override_font_sizes/font_size = 18
[node name="ErrorLabel" type="Label" parent="VBoxContainer"]
layout_mode = 3
text = ""
visible = false
horizontal_alignment = 1
theme_override_font_sizes/font_size = 18
[node name="EmptyLabel" type="Label" parent="VBoxContainer"]
layout_mode = 3 layout_mode = 3
text = "" text = ""
visible = false visible = false
+1 -1
View File
@@ -11,7 +11,7 @@ func _on_play_button_pressed():
func _on_browse_button_pressed(): func _on_browse_button_pressed():
# Same as Play — browse worlds screen. # Same as Play — browse worlds is the primary action.
get_tree().change_scene_to_file("res://scenes/world_list.tscn") get_tree().change_scene_to_file("res://scenes/world_list.tscn")