New profiles system + auto version label
This commit is contained in:
parent
94ee27472c
commit
6ffa6e643b
7 changed files with 128 additions and 49 deletions
|
|
@ -8,30 +8,44 @@ var menu_id = 0
|
|||
@onready var b3 = $Control/MenuButton3
|
||||
@onready var b4 = $Control/MenuButton4
|
||||
@onready var b5 = $Control/MenuButton5
|
||||
@onready var profile_status = $Control/ProfileStatus
|
||||
@onready var input = $Control/Input
|
||||
|
||||
func _ready():
|
||||
change_menu(0)
|
||||
profile_status.text = "Current profile: [{profile}]".format({"profile": Game.profile.profile_meta['meta']['profile_name']})
|
||||
|
||||
func change_menu(id):
|
||||
input.visible = false
|
||||
match id:
|
||||
0:
|
||||
0: # Main
|
||||
b1.id = "NewGame"
|
||||
b2.id = "Profiles"
|
||||
b3.id = "Settings"
|
||||
b4.id = "Credits"
|
||||
b5.id = "ExitGame"
|
||||
1:
|
||||
1: # Profiles
|
||||
b1.id = "CreateProfile"
|
||||
b2.id = "LoadProfile"
|
||||
b3.id = "DeleteProfile"
|
||||
b4.id = "Back"
|
||||
b3.id = "Back"
|
||||
b4.id = "Null"
|
||||
b5.id = "Null"
|
||||
2:
|
||||
b1.id = ""
|
||||
b2.id = ""
|
||||
b3.id = ""
|
||||
b4.id = ""
|
||||
b5.id = ""
|
||||
2: # Create Profile
|
||||
b1.id = "Null"
|
||||
b2.id = "CreateProfileConfirm"
|
||||
b3.id = "Back"
|
||||
b4.id = "Null"
|
||||
b5.id = "Null"
|
||||
input.visible = true
|
||||
input.text = ""
|
||||
3: # Load Profile
|
||||
b1.id = "Null"
|
||||
b2.id = "LoadProfileConfirm"
|
||||
b3.id = "Back"
|
||||
b4.id = "Null"
|
||||
b5.id = "Null"
|
||||
input.visible = true
|
||||
input.text = ""
|
||||
b1.change_name()
|
||||
b2.change_name()
|
||||
b3.change_name()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue