-
Notifications
You must be signed in to change notification settings - Fork 0
/
new_game.gd
21 lines (17 loc) · 1.03 KB
/
new_game.gd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
extends Control
func _on_draw():
var startGame = preload("res://start_game.gd")
if startGame.newGame == true:
get_node("PanelContainer/MarginContainer/HSplitContainer/InfoLineContainer").hide()
else:
get_node("PanelContainer/MarginContainer/HSplitContainer/InfoLineContainer").show()
func _on_ready():
var userStats = get_node("/root/Stats")
var strLbl = get_node("PanelContainer/MarginContainer/HSplitContainer/InfoLineContainer/InfoPanel/VBoxContainer/HBoxContainer/StrLbl")
var dexLbl = get_node("PanelContainer/MarginContainer/HSplitContainer/InfoLineContainer/InfoPanel/VBoxContainer/HBoxContainer2/DexLbl")
var intLbl = get_node("PanelContainer/MarginContainer/HSplitContainer/InfoLineContainer/InfoPanel/VBoxContainer/HBoxContainer3/IntLbl")
var chrLbl = get_node("PanelContainer/MarginContainer/HSplitContainer/InfoLineContainer/InfoPanel/VBoxContainer/HBoxContainer4/ChrLbl")
strLbl.text = str(userStats.userStr)
dexLbl.text = str(userStats.userDex)
intLbl.text = str(userStats.userInt)
chrLbl.text = str(userStats.userChr)