Completed profile meta save/load + legit check by hash
This commit is contained in:
parent
b13764f9a5
commit
94ee27472c
3 changed files with 52 additions and 19 deletions
|
|
@ -2,7 +2,7 @@ extends Button
|
|||
|
||||
@export var id = "Null"
|
||||
|
||||
@onready var сontroller = $"../.."
|
||||
@onready var controller = $"../.."
|
||||
|
||||
func _ready():
|
||||
button_up.connect(_on_button_up)
|
||||
|
|
@ -15,9 +15,16 @@ func _on_button_up():
|
|||
"CreateProfile":
|
||||
Game.profile_create("1")
|
||||
"LoadProfile":
|
||||
Game.profile_load("1")
|
||||
Game.profile_legit_check(Game.profile_load("1"))
|
||||
"DeleteProfile":
|
||||
Game.profile_delete("1")
|
||||
"ExitGame":
|
||||
get_tree().quit()
|
||||
"Profiles":
|
||||
controller.change_menu(1)
|
||||
"Back":
|
||||
var new_menu_id = 0
|
||||
controller.change_menu(new_menu_id)
|
||||
|
||||
func change_name():
|
||||
visible = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue