Reach nodes by unique name instead of long paths
Nodes a script uses through a path of several nodes are marked unique in their scene and found with %Name. The search list is renamed SearchResults, and the player row's nodes get their real types.
This commit is contained in:
1 parent
390da577d7
commit
674604425f
17 files changed
+54
-24
No files matched your search
+5
-5
@@ -7,10 +7,10 @@ extends Control
|
||||
# LOC 12/6-24: 170
|
||||
|
||||
@onready
|
||||
var play_button: TextureButton = $PlayerBar/MusicPlayerContainer/PlayTextureButton
|
||||
var play_button: TextureButton = %PlayTextureButton
|
||||
|
||||
@onready
|
||||
var restart_button: TextureButton = $PlayerBar/MusicPlayerContainer/RestartTextureButton
|
||||
var restart_button: TextureButton = %RestartTextureButton
|
||||
|
||||
@onready
|
||||
var audio_player: AudioStreamPlayer = $AudioStreamPlayer
|
||||
@@ -22,13 +22,13 @@ var sound_player: AudioStreamPlayer = $AudioSoundPlayer
|
||||
var sound_effect_player: AudioStreamPlayer = $AudioSoundEffectPlayer
|
||||
|
||||
@onready
|
||||
var progress_slider: HSlider = $PlayerBar/MusicPlayerContainer/MusicPlayerSlider
|
||||
var progress_slider: HSlider = %MusicPlayerSlider
|
||||
|
||||
@onready
|
||||
var volume_slider: VolumeSlider = $PlayerBar/MusicPlayerContainer/VolumeSlider
|
||||
var volume_slider: VolumeSlider = %VolumeSlider
|
||||
|
||||
@onready
|
||||
var music_time_label: Label = $PlayerBar/MusicPlayerContainer/MusicTimeLabel
|
||||
var music_time_label: Label = %MusicTimeLabel
|
||||
|
||||
@onready
|
||||
var auto_repeat_button: CheckButton = $RepeatSongCheckButton
|
||||
|
||||
Reference in new issue
Block a user