Updated Twitcher Extended

Added instance static variable so that it can be fetched outside of the
normal Node.
This commit is contained in:
Mario Steele 2026-02-28 02:54:27 -06:00
parent 580a4725dc
commit 913fa6b190

View file

@ -10,6 +10,10 @@ signal _waiting_for_authentication
const POLL_TIMEOUT_MS: int = 30000
#endregion
#region Static Exports
static var instance: TwitcherExtended
#endregion
#region Exports
@export_group("Twitcher Settings")
@export var oauth_settings: OAuthSetting = preload("res://addons/twitcher/twitch_oauth_setting.tres")
@ -149,6 +153,8 @@ func _handle_child_exiting(child: Node) -> void:
#region Godot Overrides
func _ready() -> void:
if not instance:
instance = self
_log.d("is ready")
_ensure_nodes()
# Ensure Settings are properly setup