Merge pull request #196 from KirbyKid256/pulls/resource-pack-expansion

Resource Pack Expansion Pt.1 - Campaign Icons and Audio
This commit is contained in:
Joe H
2025-09-19 16:07:18 +01:00
committed by GitHub
11 changed files with 72 additions and 11 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