restructure freeroam menu

This commit is contained in:
Persephone Bubblegum-Holiday 2025-08-14 19:46:21 -07:00
parent 3e9e732530
commit ae732f1ff7
13 changed files with 232 additions and 39 deletions

View file

@ -44,6 +44,8 @@ func _ready():
$ModsScreen/DialogPanel/ModList.add_item(modManifest.ModInfo["mod_name"], null, true)
tempLoadedList.append(modManifest.ModInfo["mod_name"])
print("Loaded Mod \"%s\"" % modManifest.ModInfo["mod_name"])
_on_map_selector_item_selected($FreeRoamChooseScreen/DialogPanel/MapSelector.selected)
func _on_button_pressed() -> void:
get_tree().change_scene_to_file("res://Scenes/GUI/EditorScreen.tscn")
@ -97,3 +99,8 @@ func _on_open_folder_button_pressed() -> void:
func _on_load_map_button_pressed() -> void:
get_tree().change_scene_to_file(FreeRoamMaps.MapIndex[$FreeRoamChooseScreen/DialogPanel/MapSelector.get_item_text($FreeRoamChooseScreen/DialogPanel/MapSelector.selected)]["scene"])
func _on_map_selector_item_selected(index: int) -> void:
$FreeRoamChooseScreen/DialogPanel/MapThumbnail.set_texture(load(FreeRoamMaps.MapIndex[$FreeRoamChooseScreen/DialogPanel/MapSelector.get_item_text(index)]["thumbnail"]))
$FreeRoamChooseScreen/DialogPanel/DescriptionLabel.text = FreeRoamMaps.MapIndex[$FreeRoamChooseScreen/DialogPanel/MapSelector.get_item_text(index)]["description"]