Split settings into a quiz card and an application Settings popup
- A Quiz settings button under the player bar opens a small card above it with the quiz settings, including Auto repeat, which moves there from under the player bar. The card does not dim the quiz, so it can be changed during a song, and grows to fit its rows. - A Settings button in the top bar opens the application settings: server, fullscreen and songs to download ahead. Quick sync is gone, as the server no longer has it, and the server list is in Settings. - Labels use sentence case, and seconds to hide show as whole numbers. - Debug builds switch to the local server and a low winning score in the Settings autoload, before any scene asks the server for anything. The DEBUG label moves to the top bar, so it shows on every tab. - Search moves from the top bar back to the quiz toolbar, as the Statistics tab has its own search.
This commit is contained in:
1 parent
8d21b0617d
commit
b510aa47f2
34 files changed
+3074
-2525
No files matched your search
@@ -12,7 +12,7 @@ func before_test() -> void:
|
||||
|
||||
|
||||
func _stats_checkbox() -> CheckButton:
|
||||
return _quiz.get_node("SettingsPopup").get_node("%AddToDatabaseCheckButton")
|
||||
return _quiz.get_node("QuizSettingsCard").get_node("%AddToDatabaseCheckButton")
|
||||
|
||||
|
||||
func test_winning_turns_statistics_off() -> void:
|
||||
@@ -41,7 +41,7 @@ func test_statistics_turned_off_by_hand_stay_off_after_reset() -> void:
|
||||
func test_settings_checkbox_shows_statistics_off_after_win() -> void:
|
||||
await _give_point_with_keybind(1)
|
||||
|
||||
_press("QuizToolbar/SettingsButton")
|
||||
_press("QuizSettingsButton")
|
||||
|
||||
assert_bool(_stats_checkbox().button_pressed).is_false()
|
||||
|
||||
@@ -56,8 +56,8 @@ func test_songs_after_a_win_are_not_counted() -> void:
|
||||
|
||||
|
||||
func test_winning_score_cannot_go_below_one() -> void:
|
||||
_press("QuizToolbar/SettingsButton")
|
||||
var lower_button: Button = _quiz.get_node("SettingsPopup").get_node("%LowerButton")
|
||||
_press("QuizSettingsButton")
|
||||
var lower_button: Button = _quiz.get_node("QuizSettingsCard").get_node("%LowerButton")
|
||||
|
||||
for i: int in 3:
|
||||
lower_button.pressed.emit()
|
||||
|
||||
Reference in new issue
Block a user