A Soundtracks / Songs switch in the statistics toolbar shows a list of every song with its soundtrack and how often it was played. It is searched on both song and soundtrack names, filtered and sorted like the cards, and clicking a song shows its soundtrack's popup. The server has tens of thousands of songs, so the list only makes the rows on screen and reuses them while scrolling, songs are sorted once per load, and searching waits for a pause in typing. Closes #47
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="res://statistics/song_stats_row.gd" id="row_script"]
|
|
|
|
[node name="SongStatsRow" type="PanelContainer"]
|
|
mouse_filter = 1
|
|
theme_type_variation = &"ListRowEven"
|
|
script = ExtResource("row_script")
|
|
|
|
[node name="Columns" type="HBoxContainer" parent="."]
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
theme_override_constants/separation = 16
|
|
|
|
[node name="SongLabel" type="RichTextLabel" parent="Columns"]
|
|
unique_name_in_owner = true
|
|
clip_contents = true
|
|
custom_minimum_size = Vector2(0, 28)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_stretch_ratio = 3.0
|
|
mouse_filter = 2
|
|
theme_type_variation = &"SongStatsText"
|
|
bbcode_enabled = true
|
|
scroll_active = false
|
|
autowrap_mode = 0
|
|
vertical_alignment = 1
|
|
|
|
[node name="SoundtrackLabel" type="RichTextLabel" parent="Columns"]
|
|
unique_name_in_owner = true
|
|
clip_contents = true
|
|
custom_minimum_size = Vector2(0, 28)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_stretch_ratio = 2.0
|
|
mouse_filter = 2
|
|
theme_type_variation = &"SongStatsSecondary"
|
|
bbcode_enabled = true
|
|
scroll_active = false
|
|
autowrap_mode = 0
|
|
vertical_alignment = 1
|
|
|
|
[node name="PlayedLabel" type="Label" parent="Columns"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
theme_type_variation = &"TextMedium"
|
|
horizontal_alignment = 2
|
|
vertical_alignment = 1
|