StreamOverlay/main_win.gd
Mario Steele c8d4c6391b Updated MainWin
Removed old UI, added new Floating Menu.
2026-02-25 14:11:47 -06:00

29 lines
752 B
GDScript

extends Control
@onready var floating_menu: GDFloatingMenu = %FloatingMenu
#region Twitch Nodes
@onready var twitcher: TwitcherExtended = $TwitcherExtended
#endregion
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
Globals.twitcher = twitcher
var res := twitcher.load_streamer_token()
if res == TwitcherExtended.AuthStatus.UNAUTHORIZED:
return
Globals.add_to_passthrough_exception(floating_menu)
Globals.enable_mouse_passthrough()
func _handle_twitch_auth() -> void:
await twitcher.setup_streamer()
#if twitcher.is_streamer_authed():
#auth_twitch.disabled = true
func _handle_bot_auth() -> void:
await twitcher.setup_chatbot()
#if twitcher.is_chatbot_authed():
#auth_bot.disabled = true