The quiz card's settings are saved to quiz_settings.cfg in OS.get_config_dir() on every change and loaded at start. Debug builds use their own file, and MUSICPLAYER_CONFIG_DIR moves the file elsewhere so tests never touch it. Count plays in statistics and Prefer less played soundtracks are not saved and move from the quiz card to the Settings popup.
170 lines
4.6 KiB
Plaintext
170 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"]
|
|
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"
|