The players' pictures sit on the right in even lines of at most four, each ending at the row's right edge, so five pictures are 3 + 2 and seven 4 + 3. The text takes the room they leave and wraps only when it does not fit, and the row is as tall as the taller of the two, instead of a width fixed by the number of pictures. Rows are rounded and alternate like the other lists, are highlighted under the mouse, and the playing song has an orange edge. Clicking a picture clicks its song.
30 lines
844 B
Plaintext
30 lines
844 B
Plaintext
[gd_scene format=3 uid="uid://1jbtmhbqolqe"]
|
|
|
|
[ext_resource type="Script" uid="uid://cjo13wixip8mq" path="res://quiz/song_row.gd" id="1_lspki"]
|
|
|
|
[node name="SongRow" type="PanelContainer"]
|
|
theme_type_variation = &"SongRow"
|
|
script = ExtResource("1_lspki")
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
theme_override_constants/separation = 12
|
|
|
|
[node name="SongListLabel" type="Label" parent="HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_filter = 1
|
|
theme_type_variation = &"SongRowLabel"
|
|
vertical_alignment = 1
|
|
autowrap_mode = 3
|
|
|
|
[node name="SongListPlayers" type="VBoxContainer" parent="HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
mouse_filter = 2
|
|
theme_type_variation = &"SongRowPictureLines"
|