Give every script a class name and use it for typed references
The popups, the volume slider, the player name field and the main window get a class_name, so the main window and the quiz hold them by their real type instead of Control. The classes already use the names the files will get.
This commit is contained in:
1 parent
5831e1e73d
commit
b7d67b573e
15 files changed
+23
-10
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ var sound_effect_player: AudioStreamPlayer = $AudioSoundEffectPlayer
|
||||
var progress_slider: HSlider = $PlayerBar/MusicPlayerContainer/MusicPlayerSlider
|
||||
|
||||
@onready
|
||||
var volume_slider: HSlider = $PlayerBar/MusicPlayerContainer/VolumeSlider
|
||||
var volume_slider: VolumeSlider = $PlayerBar/MusicPlayerContainer/VolumeSlider
|
||||
|
||||
@onready
|
||||
var music_time_label: Label = $PlayerBar/MusicPlayerContainer/MusicTimeLabel
|
||||
|
||||
Reference in new issue
Block a user