Add exit feedback and restyle pressed button state
This commit is contained in:
parent
49988ae674
commit
e3f2be7e4d
3 changed files with 39 additions and 25 deletions
|
|
@ -61,12 +61,12 @@ polygon = PackedVector2Array(-30, -10, -30, 10, 1172, 10, 1172, -10)
|
|||
|
||||
[node name="Paddle-0" parent="." node_paths=PackedStringArray("score_label") instance=ExtResource("1_80nbo")]
|
||||
position = Vector2(40, 273)
|
||||
score_label = NodePath("../HBoxContainer/Score-0")
|
||||
score_label = NodePath("../VBoxContainer/HBoxContainer/Score-0")
|
||||
|
||||
[node name="Paddle-1" parent="." node_paths=PackedStringArray("score_label") instance=ExtResource("1_80nbo")]
|
||||
position = Vector2(1078, 273)
|
||||
player_id = 1
|
||||
score_label = NodePath("../HBoxContainer/Score-1")
|
||||
score_label = NodePath("../VBoxContainer/HBoxContainer/Score-1")
|
||||
|
||||
[node name="Ball" type="CharacterBody2D" parent="." node_paths=PackedStringArray("paddle_0", "paddle_1")]
|
||||
position = Vector2(134, 72)
|
||||
|
|
@ -85,22 +85,37 @@ shape = SubResource("RectangleShape2D_feb5d")
|
|||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="Ball"]
|
||||
position = Vector2(110, 85)
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_top = 20.0
|
||||
offset_bottom = 75.0
|
||||
grow_horizontal = 2
|
||||
[node name="message_exit" type="RichTextLabel" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 28.0
|
||||
offset_top = 25.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 48.0
|
||||
fit_content = true
|
||||
scroll_active = false
|
||||
autowrap_trim_flags = 0
|
||||
vertical_alignment = 2
|
||||
|
||||
[node name="Score-0" type="Label" parent="HBoxContainer"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
offset_top = 25.0
|
||||
offset_bottom = 107.0
|
||||
grow_horizontal = 2
|
||||
theme_override_constants/separation = -10
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Score-0" type="Label" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "00"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Score-1" type="Label" parent="HBoxContainer"]
|
||||
[node name="Score-1" type="Label" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 40
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue