generated from krampus/template-godot4
Character selector populates character name
This commit is contained in:
parent
70c199acd2
commit
384992e935
|
@ -135,3 +135,5 @@ BALL_BEACH,"Beach Ball"
|
|||
BALL_POWER,Powerball
|
||||
,
|
||||
MAP_DEBUG,"Debug Island"
|
||||
,
|
||||
CHARACTER_DEBUG,"Debug Girl"
|
||||
|
|
|
|
@ -6,4 +6,4 @@
|
|||
[resource]
|
||||
script = ExtResource("2_rx8x8")
|
||||
controller_scene = ExtResource("1_m8n4f")
|
||||
name = "Debug Girl"
|
||||
name = "CHARACTER_DEBUG"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue