Character selector populates character name

This commit is contained in:
Rob Kelly 2024-12-17 15:55:15 -07:00
parent 70c199acd2
commit 384992e935
4 changed files with 11 additions and 9 deletions

View File

@ -135,3 +135,5 @@ BALL_BEACH,"Beach Ball"
BALL_POWER,Powerball
,
MAP_DEBUG,"Debug Island"
,
CHARACTER_DEBUG,"Debug Girl"

1 keys en
135 BALL_POWER Powerball
136
137 MAP_DEBUG Debug Island
138
139 CHARACTER_DEBUG Debug Girl

View File

@ -6,4 +6,4 @@
[resource]
script = ExtResource("2_rx8x8")
controller_scene = ExtResource("1_m8n4f")
name = "Debug Girl"
name = "CHARACTER_DEBUG"

View File

@ -82,6 +82,7 @@ func _set_selected_character_index(value: int) -> void:
character_container.add_child(character_controller)
character_controller.set_color(player_color)
char_name.text = get_selected_character().name
func get_selected_character() -> Character:

View File

@ -1235,7 +1235,7 @@ grow_horizontal = 2
grow_vertical = 2
[node name="PressStart" type="Label" parent="Menu"]
visible = false
modulate = Color(1, 1, 1, 0.997297)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
@ -1253,12 +1253,11 @@ text = "TITLE_START"
[node name="MainMenu" type="VBoxContainer" parent="Menu"]
visible = false
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = -1
anchor_left = -0.5
anchor_left = 0.5
anchor_top = 0.5
anchor_right = -0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
@ -1338,9 +1337,9 @@ text = "UI_BACK"
[node name="MultiplayerMenu" type="VBoxContainer" parent="Menu"]
layout_mode = 1
anchors_preset = -1
anchor_left = -0.5
anchor_left = 1.5
anchor_top = 0.5
anchor_right = -0.5
anchor_right = 1.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
@ -1363,9 +1362,9 @@ text = "UI_BACK"
[node name="LocalMultiplayerMenu" type="VBoxContainer" parent="Menu"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.5
anchor_left = 1.5
anchor_top = 0.5
anchor_right = 0.5
anchor_right = 1.5
anchor_bottom = 0.5
offset_left = -157.5
offset_top = -52.0