Now the character's button in the menu will be selected by default. (Its still a button for now.)

This commit is contained in:
Relintai 2020-03-24 02:22:01 +01:00
parent e92890c61f
commit 6c4a808baa
2 changed files with 1 additions and 4 deletions

View File

@ -9,11 +9,7 @@ margin_bottom = 88.0
rect_min_size = Vector2( 80, 80 )
size_flags_horizontal = 3
theme = ExtResource( 1 )
toggle_mode = true
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
name_label_path = NodePath("MarginContainer/HBoxContainer/VBoxContainer/name")
class_label_path = NodePath("MarginContainer/HBoxContainer/VBoxContainer/class")
level_label_path = NodePath("MarginContainer/HBoxContainer/VBoxContainer/HBoxContainer/level")

View File

@ -94,6 +94,7 @@ func refresh():
container.add_child(centry)
centry.owner = container
centry.group = character_button_group
centry.pressed = true
centry.connect("pressed", self, "character_selection_changed")