NowPlaying, QuizToolbar and SongControls become their own scenes, the auto repeat switch moves into the music player scene, and downloading songs moves into a SongLoader node. The quiz only wires the parts together. Every node keeps its place on screen. Screenshots of every UI state are pixel-identical to before, the layout test still matches the original baseline, and each new part has its own tests.
11 lines
401 B
GDScript
11 lines
401 B
GDScript
class_name NowPlaying
|
|
extends VBoxContainer
|
|
## The soundtrack and song that are playing, in large text at the top of the quiz.
|
|
|
|
|
|
## Shows [param soundtrack_title] and [param song_title]. The playlist hides them as
|
|
## question marks until the answer is shown.
|
|
func show_song(soundtrack_title: String, song_title: String) -> void:
|
|
$SoundtrackLabel.text = soundtrack_title
|
|
$SongLabel.text = song_title
|