Updated MainWin
Removed old UI, added new Floating Menu.
This commit is contained in:
parent
9b90f92aa6
commit
c8d4c6391b
2 changed files with 26 additions and 18 deletions
21
main_win.gd
21
main_win.gd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue