Resource Pack Expansion Pt. 1

- Fixed Disclaimer Screen not playing Sound Effects loaded from the Resource Pack
- Fixed Quit Dialog not playing Beep.wav loaded from Resource Packs
- Fixed the Campaign Icons not loading the Resource Pack textures (in fairness the only icon applicable is the Custom Levels one)
This commit is contained in:
KirbyKidJ
2025-09-15 19:21:19 -07:00
parent 00fca0704a
commit 19c113ea57
5 changed files with 29 additions and 3 deletions

View File

@@ -11,6 +11,11 @@ func _enter_tree() -> void:
i.uppercase = true
func _ready() -> void:
var animation: Animation = $AnimationPlayer.get_animation_library("").get_animation(&"Go")
var track: int = animation.find_track("AudioStreamPlayer", Animation.TYPE_AUDIO)
for key in animation.track_get_key_count(track):
var resource_getter = ResourceGetter.new() #Why do I have to make a new one each time?
animation.audio_track_set_key_stream(track, key, resource_getter.get_resource(animation.audio_track_get_key_stream(track, key)))
Global.debugged_in = false
Global.get_node("GameHUD").hide()
await get_tree().create_timer(1, false).timeout