Files
MusicPlayer/quiz/PlayerRow.tscn
T
SansanandClaude Opus 5.5 ae231975bd
Build / test (push) Successful in 1m30s
Build / build (push) Successful in 1m14s
Show each player's picture first in the player list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 21:18:19 +02:00

85 lines
2.4 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="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