30 lines
711 B
GDScript
30 lines
711 B
GDScript
class_name MainMenuScene extends Node3D
|
|
|
|
var mapDropdown:OptionButton
|
|
|
|
func _ready() -> void:
|
|
# mapDropdown = $UI/VBoxContainer/HBoxContainer/MapDropdown;
|
|
# var i:int = 0;
|
|
# for map in OverworldSystem.MAPS.keys():
|
|
# mapDropdown.add_item(map, i);
|
|
# i = i + 1;
|
|
pass
|
|
|
|
func _on_Overworld_pressed():
|
|
# var keys:Array[String] = OverworldSystem.MAPS.keys()
|
|
# var key:String = keys[mapDropdown.selected]
|
|
# print("Overworld pressed" + OverworldSystem.MAPS[key])
|
|
print("Overworld pressed")
|
|
|
|
func _on_Quests_pressed():
|
|
print("Quests pressed")
|
|
|
|
func _on_Custscene_pressed():
|
|
print("Cutscene pressed")
|
|
|
|
func _on_Cooking_pressed():
|
|
print("Cooking pressed")
|
|
|
|
func _on_Battle_pressed():
|
|
print("Battle pressed")
|