blob: 67ebea7d45ebb5343c9165617cb9394df9a88bcd (
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
|
extends Control
signal pressed
func initialize_with_info(info: CharacterInformation):
%Head.texture = load(
"%s/%s/000.png" % [
"res://data/extracted/data/sprite",
Constants.FilePaths.get_player_head(info.gender, info.head),
]
)
%Body.texture = load(
"%s/%s/000.png" % [
"res://data/extracted/data/sprite",
Constants.FilePaths.get_player_body(info.gender, info.job),
]
)
%Name.text = info.name
func _on_gui_input(event: InputEvent) -> void:
if event.is_pressed():
pressed.emit()
|