StreamOverlay/main_win.gd
Mario Steele 76ba9536b7 Updated MainWin and Project Settings.
Added class name to Main window, calling it OverlayWindow.
Re-Enabled Always-On-Top, and Fullscreen settings back to the Main
Window.
2026-02-28 02:57:20 -06:00

30 lines
835 B
GDScript

extends Control
class_name OverlayWindow
@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.add_children_to_passthrough_exception(floating_menu, [floating_menu.indicators])
Globals.enable_mouse_passthrough()
floating_menu.start()
Globals.twitcher = twitcher
var res := twitcher.load_streamer_token()
if res == TwitcherExtended.AuthStatus.UNAUTHORIZED:
return
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