Updated MainWin

Removed old UI, added new Floating Menu.
This commit is contained in:
Mario Steele 2026-02-25 14:11:47 -06:00
parent 9b90f92aa6
commit c8d4c6391b
2 changed files with 26 additions and 18 deletions

View file

@ -1,14 +1,6 @@
extends Control
@onready var controls: VBoxContainer = %Controls
@onready var ui_bar: HBoxContainer = %UIBar
@onready var auth_twitch: Button = %AuthTwitch
@onready var auth_bot: Button = %AuthBot
@onready var bot_hello: Button = %BotHello
@onready var chat_history: ScrollContainer = %ChatHistory
@onready var chat_list: VBoxContainer = %ChatList
@onready var auto_connect: CheckBox = %AutoConnect
@onready var exit_overlay: Button = %ExitOverlay
@onready var floating_menu: GDFloatingMenu = %FloatingMenu
#region Twitch Nodes
@ -22,13 +14,16 @@ func _ready() -> void:
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
#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
#if twitcher.is_chatbot_authed():
#auth_bot.disabled = true