Settings has a Music folder row. A folder with subfolders is played as soundtracks: Next picks a random subfolder and a random song in it, the subfolder is the answer's soundtrack and the file name without its type the song. The inspiration list and Search show the subfolders. A folder with songs and no subfolders is a prepared quiz, played once in order (natural sort) or at random, showing only the song title. It has no winning score: after the last song Next becomes Show winner, and the players with the most points win, ties included. While a folder is used nothing but the characters is asked from the server: Sync, QR, Statistics, the update check and play counting are off. Characters fall back to the cached pictures when the server can't be reached. mp3, ogg and wav play; other files and broken ones are skipped. The old local playback code, the hidden Open button and the hidden Local toggle are removed. Next now waits for the song to start before preparing the next one.
171 lines
4.6 KiB
Plaintext
171 lines
4.6 KiB
Plaintext
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="res://quiz/quiz_settings_card.gd" id="1_card_script"]
|
|
|
|
[node name="QuizSettingsCard" type="Control" node_paths=PackedStringArray("panel")]
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
mouse_filter = 2
|
|
script = ExtResource("1_card_script")
|
|
panel = NodePath("CardPanel")
|
|
|
|
[node name="CardPanel" type="Panel" parent="."]
|
|
unique_name_in_owner = true
|
|
layout_mode = 0
|
|
offset_top = -470.0
|
|
offset_right = 440.0
|
|
theme_type_variation = &"PopupBackground"
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="CardPanel"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 0
|
|
offset_left = 16.0
|
|
offset_top = 12.0
|
|
offset_right = 424.0
|
|
|
|
[node name="TitleLabel" type="Label" parent="CardPanel/VBox"]
|
|
layout_mode = 2
|
|
theme_type_variation = &"Title"
|
|
text = "Quiz settings"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="AutoRepeatCheckButton" type="CheckButton" parent="CardPanel/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "Auto repeat"
|
|
|
|
[node name="StopAfterCurrentCheckButton" type="CheckButton" parent="CardPanel/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "Stop after current"
|
|
|
|
[node name="HideNextTrackCheckButton" type="CheckButton" parent="CardPanel/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "Hide next track"
|
|
|
|
[node name="HideBeginningCheckButton" type="CheckButton" parent="CardPanel/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "Hide the beginning of songs"
|
|
|
|
[node name="HideForSecondsRow" type="HBoxContainer" parent="CardPanel/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="Title" type="Label" parent="CardPanel/VBox/HideForSecondsRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_type_variation = &"SettingsRowLabel"
|
|
text = "Seconds to hide"
|
|
|
|
[node name="HideForSecondsLabel" type="Label" parent="CardPanel/VBox/HideForSecondsRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(48, 0)
|
|
layout_mode = 2
|
|
text = "5"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LowerHideForSecondsButton" type="Button" parent="CardPanel/VBox/HideForSecondsRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(30, 0)
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "-1"
|
|
|
|
[node name="IncreaseHideForSecondsButton" type="Button" parent="CardPanel/VBox/HideForSecondsRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(30, 0)
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "+1"
|
|
|
|
[node name="HideLengthCheckButton" type="CheckButton" parent="CardPanel/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "Hide song length"
|
|
|
|
[node name="HideTicksCheckButton" type="CheckButton" parent="CardPanel/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "Hide ticks in the playbar"
|
|
|
|
[node name="WinningScoreRow" type="HBoxContainer" parent="CardPanel/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="Title" type="Label" parent="CardPanel/VBox/WinningScoreRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_type_variation = &"SettingsRowLabel"
|
|
text = "Winning score"
|
|
|
|
[node name="ScoreLabel" type="Label" parent="CardPanel/VBox/WinningScoreRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(48, 0)
|
|
layout_mode = 2
|
|
text = "20"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LowerButton" type="Button" parent="CardPanel/VBox/WinningScoreRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(30, 0)
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "-1"
|
|
|
|
[node name="IncreaseButton" type="Button" parent="CardPanel/VBox/WinningScoreRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(30, 0)
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "+1"
|
|
|
|
[node name="InspirationRow" type="HBoxContainer" parent="CardPanel/VBox"]
|
|
layout_mode = 2
|
|
|
|
[node name="Title" type="Label" parent="CardPanel/VBox/InspirationRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_type_variation = &"SettingsRowLabel"
|
|
text = "Inspiration list speed"
|
|
|
|
[node name="InspirationListSpeedLabel" type="Label" parent="CardPanel/VBox/InspirationRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(48, 0)
|
|
layout_mode = 2
|
|
text = "1"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LowerInspirationSpeedButton" type="Button" parent="CardPanel/VBox/InspirationRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(30, 0)
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "-1"
|
|
|
|
[node name="IncreaseInspirationSpeedButton" type="Button" parent="CardPanel/VBox/InspirationRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(30, 0)
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
action_mode = 0
|
|
text = "+1"
|