Popups fade in while growing and close the reverse way, with the backdrop fading along. The winner gets confetti, bouncing pictures and a score graph that draws itself from the left. Filtered statistics cards and search rows fade in, the tabs slide in from their side, and every button bounces on hover and click (ButtonBounce, now added to all buttons). In the player list the score pops on every point, the first point flashes the row, and a player on match point glows with a "Match point!" tag. A song starting fades in the title, flashes its row (kept across list rebuilds) and pops the play button. Common/anim.gd holds the helpers. A saved "Reduce animations" switch in Settings turns all movement off; the tests use it. The flash colours are theme colours (Palette first_point, match_point, flash) in every theme. Closes #48 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
93 lines
2.6 KiB
Plaintext
93 lines
2.6 KiB
Plaintext
[gd_scene format=3 uid="uid://cslogy2csnd7a"]
|
|
|
|
[ext_resource type="Script" uid="uid://dl6no2wr2c86y" path="res://quiz/player_row.gd" id="1_if4kc"]
|
|
[ext_resource type="Texture2D" uid="uid://r4as0nmtoa7p" path="res://noCharacter.png" id="2_hpj3s"]
|
|
[ext_resource type="Texture2D" uid="uid://b2kj6m8qpsgb1" path="res://icons/person_remove_light.svg" id="3_j3uxe"]
|
|
|
|
[node name="PlayerRow" type="PanelContainer"]
|
|
custom_minimum_size = Vector2(0, 40)
|
|
size_flags_horizontal = 3
|
|
theme_type_variation = &"ListRowEven"
|
|
script = ExtResource("1_if4kc")
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="CharacterFrame" type="PanelContainer" parent="HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_type_variation = &"PlayerCharacter"
|
|
|
|
[node name="Character" type="TextureButton" parent="HBoxContainer/CharacterFrame"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(64, 32)
|
|
layout_mode = 2
|
|
tooltip_text = "Change character"
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
texture_normal = ExtResource("2_hpj3s")
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|
|
|
|
[node name="Name" type="Label" parent="HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_filter = 1
|
|
theme_type_variation = &"TextMedium"
|
|
vertical_alignment = 1
|
|
clip_text = true
|
|
text_overrun_behavior = 3
|
|
|
|
[node name="MatchPointTag" type="Label" parent="HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
theme_type_variation = &"HighlightMedium"
|
|
text = "Match point!"
|
|
vertical_alignment = 1
|
|
|
|
[node name="Score" type="Label" parent="HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(40, 0)
|
|
layout_mode = 2
|
|
theme_type_variation = &"PlayerScore"
|
|
text = "0"
|
|
horizontal_alignment = 2
|
|
vertical_alignment = 1
|
|
|
|
[node name="AddPoint" type="Button" parent="HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(40, 36)
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
theme_type_variation = &"StepButton"
|
|
text = "+1"
|
|
|
|
[node name="RemovePoint" type="Button" parent="HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(40, 36)
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
theme_type_variation = &"StepButton"
|
|
text = "-1"
|
|
|
|
[node name="RemovePlayer" type="TextureButton" parent="HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
custom_minimum_size = Vector2(36, 36)
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
tooltip_text = "Remove player"
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
texture_normal = ExtResource("3_j3uxe")
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|