summaryrefslogtreecommitdiff
path: root/ui/login/character_selection_status.gd
blob: 5bbd2004e58005fb1c0d609da4c6054abd8408a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
extends PanelContainer


func set_info(info: CharacterInformation):
	%Name.text = info.name
	%Job.text = Constants.Job.find_key(info.job)
	%Level.text = str(info.level)
	%Exp.text = str(info.experience)
	%Hp.text = str(info.maximum_health_points)
	%Sp.text = str(info.maximum_spell_points)
	
	%Str.text = str(info.strength)
	%Agi.text = str(info.agility)
	%Vit.text = str(info.vitality)
	%Int.text = str(info.intelligence)
	%Dex.text = str(info.dexterity)
	%Luk.text = str(info.luck)
	
	%Map.text = info.map_name.substr(0, info.map_name.length() - 4)


func clear():
	%Name.text = ""
	%Job.text = ""
	%Level.text = ""
	%Exp.text = ""
	%Hp.text = ""
	%Sp.text = ""
	
	%Str.text = ""
	%Agi.text = ""
	%Vit.text = ""
	%Int.text = ""
	%Dex.text = ""
	%Luk.text = ""
	
	%Map.text = ""