From 913fa6b190219dcf9cb3e6c32104fdd6b7e59bd8 Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Sat, 28 Feb 2026 02:54:27 -0600 Subject: [PATCH] Updated Twitcher Extended Added instance static variable so that it can be fetched outside of the normal Node. --- lib/twitcher_extended/twitcher_extended.gd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/twitcher_extended/twitcher_extended.gd b/lib/twitcher_extended/twitcher_extended.gd index afed2927..a22329dc 100644 --- a/lib/twitcher_extended/twitcher_extended.gd +++ b/lib/twitcher_extended/twitcher_extended.gd @@ -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