2026-02-23 18:38:03 -06:00
|
|
|
extends Control
|
2026-02-28 02:57:20 -06:00
|
|
|
class_name OverlayWindow
|
2026-02-23 18:38:03 -06:00
|
|
|
|
2026-02-25 14:11:47 -06:00
|
|
|
@onready var floating_menu: GDFloatingMenu = %FloatingMenu
|
2026-02-23 18:38:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Twitch Nodes
|
|
|
|
|
@onready var twitcher: TwitcherExtended = $TwitcherExtended
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
|
func _ready() -> void:
|
2026-02-26 14:37:44 -06:00
|
|
|
Globals.add_children_to_passthrough_exception(floating_menu, [floating_menu.indicators])
|
|
|
|
|
Globals.enable_mouse_passthrough()
|
|
|
|
|
floating_menu.start()
|
2026-02-23 18:38:03 -06:00
|
|
|
Globals.twitcher = twitcher
|
|
|
|
|
|
|
|
|
|
var res := twitcher.load_streamer_token()
|
|
|
|
|
if res == TwitcherExtended.AuthStatus.UNAUTHORIZED:
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
func _handle_twitch_auth() -> void:
|
|
|
|
|
await twitcher.setup_streamer()
|
2026-02-25 14:11:47 -06:00
|
|
|
#if twitcher.is_streamer_authed():
|
|
|
|
|
#auth_twitch.disabled = true
|
2026-02-23 18:38:03 -06:00
|
|
|
|
|
|
|
|
func _handle_bot_auth() -> void:
|
|
|
|
|
await twitcher.setup_chatbot()
|
2026-02-25 14:11:47 -06:00
|
|
|
#if twitcher.is_chatbot_authed():
|
|
|
|
|
#auth_bot.disabled = true
|