Added ChatBox to the window. Updated MainWin to handle setting Globals.main_win. Added code to handle ensuring the overlay is on the correct montior chosen by user. Added check for connecting to twitch automatically. Added Subscriptions, to setup subscriptions upon connection. Added ObsManager connection to scene changed. Added ObsManager connection on startup. Added handling of scene changed, adjusting ChatBox to dock to a specific location.
298 lines
12 KiB
Text
298 lines
12 KiB
Text
[gd_scene format=3 uid="uid://2t2hslaaewee"]
|
|
|
|
[ext_resource type="Script" uid="uid://be2000gog56qw" path="res://main_win.gd" id="1_bgu0c"]
|
|
[ext_resource type="Script" uid="uid://d003jb645nrji" path="res://lib/twitcher_extended/twitcher_extended.gd" id="2_x1kh3"]
|
|
[ext_resource type="Resource" uid="uid://dsde4iau3rlaw" path="res://tokens/streamer_token.tres" id="3_vhvw8"]
|
|
[ext_resource type="Resource" uid="uid://jqo15d6dhmkq" path="res://tokens/chatbot_token.tres" id="4_oe8se"]
|
|
[ext_resource type="Script" uid="uid://i8st3lv0lidh" path="res://addons/twitcher/twitch_service.gd" id="5_ma7y3"]
|
|
[ext_resource type="Resource" uid="uid://ry64ckbckh6m" path="res://addons/twitcher/twitch_oauth_setting.tres" id="6_m7rpr"]
|
|
[ext_resource type="Resource" uid="uid://fcmfkstye4bq" path="res://addons/twitcher/auth/preset_overlay_scopes.tres" id="7_0gi5c"]
|
|
[ext_resource type="Script" uid="uid://dcq1bvfrqimqq" path="res://addons/twitcher/chat/twitch_chat.gd" id="8_flv1a"]
|
|
[ext_resource type="Script" uid="uid://bf3mvh373suhc" path="res://addons/twitcher/chat/twitch_bot.gd" id="9_fuqxn"]
|
|
[ext_resource type="Resource" uid="uid://c4scwuk8q0r40" path="res://addons/twitcher/lib/oOuch/default_key_provider.tres" id="10_5puf8"]
|
|
[ext_resource type="Script" uid="uid://blmhj3j00yk45" path="res://addons/twitcher/eventsub/twitch_eventsub.gd" id="11_1ed2e"]
|
|
[ext_resource type="Script" uid="uid://b52xp7c23ucfk" path="res://addons/twitcher/lib/oOuch/oauth_token.gd" id="11_o2vln"]
|
|
[ext_resource type="Script" uid="uid://cw30cwveway65" path="res://addons/twitcher/generated/twitch_api.gd" id="12_1ed2e"]
|
|
[ext_resource type="Script" uid="uid://d4lyup0vy1wtu" path="res://addons/twitcher/media/twitch_media_loader.gd" id="12_7nx26"]
|
|
[ext_resource type="Script" uid="uid://00xbijwpi8xa" path="res://addons/twitcher/lib/oOuch/oauth_setting.gd" id="13_7nx26"]
|
|
[ext_resource type="Texture2D" uid="uid://g1dbcjksbotw" path="res://addons/twitcher/assets/fallback_texture.tres" id="13_l81bt"]
|
|
[ext_resource type="Script" uid="uid://6v8jnfjwbnhm" path="res://addons/twitcher/media/twitch_image_transformer.gd" id="14_dr7ot"]
|
|
[ext_resource type="Script" uid="uid://iv0mgv0lu8b0" path="res://addons/twitcher/auth/twitch_auth.gd" id="14_l81bt"]
|
|
[ext_resource type="Script" uid="uid://cjug64e3433g0" path="res://addons/twitcher/eventsub/twitch_eventsub_config.gd" id="14_vifpv"]
|
|
[ext_resource type="Resource" uid="uid://b8735fmqjt8up" path="res://addons/twitcher/chat/twitch_bot_scopes.tres" id="15_dr7ot"]
|
|
[ext_resource type="Script" uid="uid://bf0wi70haua35" path="res://addons/twitcher/lib/oOuch/oauth.gd" id="16_m7rpr"]
|
|
[ext_resource type="Script" uid="uid://blnbogtrshw4r" path="res://addons/twitcher/auth/twitch_token_handler.gd" id="17_lpeoe"]
|
|
[ext_resource type="Script" uid="uid://csq2hmf1bsgku" path="res://lib/twitcher_extended/chatbot_authorization.gd" id="18_vifpv"]
|
|
[ext_resource type="PackedScene" uid="uid://djdxpwrmlrsp8" path="res://ChatAvatars/CatSlimes/cat_world.tscn" id="23_7nx26"]
|
|
[ext_resource type="PackedScene" uid="uid://cstq30mjx0pch" path="res://UI/Controls/chat_box.tscn" id="23_lpeoe"]
|
|
[ext_resource type="Script" uid="uid://cv06lthuq2c2o" path="res://general_commands.gd" id="24_dr7ot"]
|
|
[ext_resource type="Script" uid="uid://bmluckfvgm1c2" path="res://addons/twitcher/chat/twitch_command.gd" id="24_l81bt"]
|
|
[ext_resource type="PackedScene" uid="uid://bndydwe6rrb6p" path="res://UI/floating_menu.tscn" id="26_m7rpr"]
|
|
|
|
[sub_resource type="Resource" id="Resource_1scbk"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 15
|
|
condition = {
|
|
&"broadcaster_user_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_dqy2v"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 17
|
|
condition = {
|
|
&"broadcaster_user_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_7ft7d"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 18
|
|
condition = {
|
|
&"broadcaster_user_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_84aqx"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 5
|
|
condition = {
|
|
&"broadcaster_user_id": "",
|
|
&"moderator_user_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_es602"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 20
|
|
condition = {
|
|
&"to_broadcaster_user_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_s0vyq"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 21
|
|
condition = {
|
|
&"broadcaster_user_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_vwie2"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 37
|
|
condition = {
|
|
&"broadcaster_user_id": "",
|
|
&"reward_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_qp6p1"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 38
|
|
condition = {
|
|
&"broadcaster_user_id": "",
|
|
&"reward_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_2a87i"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 64
|
|
condition = {
|
|
&"broadcaster_user_id": "",
|
|
&"moderator_user_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_do4qx"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 65
|
|
condition = {
|
|
&"broadcaster_user_id": "",
|
|
&"moderator_user_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_dgy7a"]
|
|
script = ExtResource("14_vifpv")
|
|
type = 6
|
|
condition = {
|
|
&"broadcaster_user_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_qh6mc"]
|
|
script = ExtResource("14_vifpv")
|
|
condition = {
|
|
&"broadcaster_user_id": "",
|
|
&"moderator_user_id": ""
|
|
}
|
|
metadata/_custom_type_script = "uid://cjug64e3433g0"
|
|
|
|
[sub_resource type="Resource" id="Resource_m7rpr"]
|
|
script = ExtResource("14_dr7ot")
|
|
|
|
[sub_resource type="Resource" id="Resource_lpeoe"]
|
|
script = ExtResource("11_o2vln")
|
|
_identifier = "Bot-Token"
|
|
|
|
[sub_resource type="Resource" id="Resource_vifpv"]
|
|
script = ExtResource("13_7nx26")
|
|
token_url = "https://id.twitch.tv/oauth2/token"
|
|
authorization_url = "https://id.twitch.tv/oauth2/authorize"
|
|
device_authorization_url = "https://id.twitch.tv/oauth2/device"
|
|
cache_file = "user://auth.conf"
|
|
client_id = "tlbzmtdy2itfeazyuumchynsez6pqv"
|
|
authorization_flow = 3
|
|
client_secret = "pEYuWgPdU5IXHiFA0tuBv8zVERrZguHEnhM1WU9/3Lo="
|
|
|
|
[node name="MainWin" type="Control" unique_id=395734301]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_bgu0c")
|
|
subscriptions = Array[ExtResource("14_vifpv")]([SubResource("Resource_1scbk"), SubResource("Resource_dqy2v"), SubResource("Resource_7ft7d"), SubResource("Resource_84aqx"), SubResource("Resource_es602"), SubResource("Resource_s0vyq"), SubResource("Resource_vwie2"), SubResource("Resource_qp6p1"), SubResource("Resource_2a87i"), SubResource("Resource_do4qx"), SubResource("Resource_dgy7a"), SubResource("Resource_qh6mc")])
|
|
|
|
[node name="ChatBox" parent="." unique_id=859214320 instance=ExtResource("23_lpeoe")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
|
|
[node name="TwitcherExtended" type="Node" parent="." unique_id=1225944144 node_paths=PackedStringArray("service", "chat", "bot", "chatbot_auth", "eventsub", "api", "auth", "media")]
|
|
script = ExtResource("2_x1kh3")
|
|
streamer_token = ExtResource("3_vhvw8")
|
|
chatbot_token = ExtResource("4_oe8se")
|
|
service = NodePath("Service")
|
|
chat = NodePath("Chat")
|
|
bot = NodePath("Bot")
|
|
chatbot_auth = NodePath("ChatbotAuth")
|
|
eventsub = NodePath("Service/Eventsub")
|
|
api = NodePath("Service/API")
|
|
auth = NodePath("Service/Auth")
|
|
media = NodePath("Service/Media")
|
|
metadata/_custom_type_script = "uid://d003jb645nrji"
|
|
|
|
[node name="Service" type="Node" parent="TwitcherExtended" unique_id=1349639042]
|
|
script = ExtResource("5_ma7y3")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
scopes = ExtResource("7_0gi5c")
|
|
token = ExtResource("3_vhvw8")
|
|
|
|
[node name="Auth" type="Node" parent="TwitcherExtended/Service" unique_id=1657722616]
|
|
script = ExtResource("14_l81bt")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
token = ExtResource("3_vhvw8")
|
|
scopes = ExtResource("7_0gi5c")
|
|
|
|
[node name="OAuth" type="Node" parent="TwitcherExtended/Service/Auth" unique_id=1285979164 node_paths=PackedStringArray("token_handler")]
|
|
script = ExtResource("16_m7rpr")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
scopes = ExtResource("7_0gi5c")
|
|
token_handler = NodePath("../TokenHandler")
|
|
|
|
[node name="TokenHandler" type="Node" parent="TwitcherExtended/Service/Auth" unique_id=176014831]
|
|
script = ExtResource("17_lpeoe")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
token = ExtResource("3_vhvw8")
|
|
|
|
[node name="API" type="Node" parent="TwitcherExtended/Service" unique_id=1862110264]
|
|
script = ExtResource("12_1ed2e")
|
|
token = ExtResource("3_vhvw8")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
|
|
[node name="Eventsub" type="Node" parent="TwitcherExtended/Service" unique_id=1013516914 node_paths=PackedStringArray("api")]
|
|
script = ExtResource("11_1ed2e")
|
|
api = NodePath("../API")
|
|
scopes = ExtResource("7_0gi5c")
|
|
|
|
[node name="Media" type="Node" parent="TwitcherExtended/Service" unique_id=1023021895 node_paths=PackedStringArray("api")]
|
|
script = ExtResource("12_7nx26")
|
|
api = NodePath("../API")
|
|
image_transformer = SubResource("Resource_m7rpr")
|
|
|
|
[node name="Chat" type="Node" parent="TwitcherExtended" unique_id=1372727250 node_paths=PackedStringArray("media_loader", "eventsub", "api")]
|
|
script = ExtResource("8_flv1a")
|
|
media_loader = NodePath("../Service/Media")
|
|
eventsub = NodePath("../Service/Eventsub")
|
|
api = NodePath("../Service/API")
|
|
subscribe_on_ready = false
|
|
|
|
[node name="Bot" type="Node" parent="TwitcherExtended" unique_id=1052569275]
|
|
script = ExtResource("9_fuqxn")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
bot_token = SubResource("Resource_lpeoe")
|
|
|
|
[node name="BotApi" type="Node" parent="TwitcherExtended/Bot" unique_id=357061728]
|
|
script = ExtResource("12_1ed2e")
|
|
token = SubResource("Resource_lpeoe")
|
|
oauth_setting = SubResource("Resource_vifpv")
|
|
|
|
[node name="BotAuth" type="Node" parent="TwitcherExtended/Bot" unique_id=1765548387]
|
|
script = ExtResource("14_l81bt")
|
|
oauth_setting = SubResource("Resource_vifpv")
|
|
token = SubResource("Resource_lpeoe")
|
|
scopes = ExtResource("15_dr7ot")
|
|
|
|
[node name="OAuth" type="Node" parent="TwitcherExtended/Bot/BotAuth" unique_id=753392258 node_paths=PackedStringArray("token_handler")]
|
|
script = ExtResource("16_m7rpr")
|
|
oauth_setting = SubResource("Resource_vifpv")
|
|
scopes = ExtResource("15_dr7ot")
|
|
token_handler = NodePath("../TokenHandler")
|
|
|
|
[node name="TokenHandler" type="Node" parent="TwitcherExtended/Bot/BotAuth" unique_id=1838561754]
|
|
script = ExtResource("17_lpeoe")
|
|
oauth_setting = SubResource("Resource_vifpv")
|
|
token = SubResource("Resource_lpeoe")
|
|
|
|
[node name="ChatbotAuth" type="Node" parent="TwitcherExtended" unique_id=1435619386]
|
|
script = ExtResource("18_vifpv")
|
|
token = ExtResource("4_oe8se")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
|
|
[node name="ChatbotAPI" type="Node" parent="TwitcherExtended/ChatbotAuth" unique_id=1515744664]
|
|
script = ExtResource("12_1ed2e")
|
|
token = ExtResource("4_oe8se")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
|
|
[node name="ChatbotAuth" type="Node" parent="TwitcherExtended/ChatbotAuth" unique_id=773762330]
|
|
script = ExtResource("14_l81bt")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
token = ExtResource("4_oe8se")
|
|
scopes = ExtResource("15_dr7ot")
|
|
|
|
[node name="OAuth" type="Node" parent="TwitcherExtended/ChatbotAuth/ChatbotAuth" unique_id=1565838954 node_paths=PackedStringArray("token_handler")]
|
|
script = ExtResource("16_m7rpr")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
scopes = ExtResource("15_dr7ot")
|
|
token_handler = NodePath("../TokenHandler")
|
|
|
|
[node name="TokenHandler" type="Node" parent="TwitcherExtended/ChatbotAuth/ChatbotAuth" unique_id=1460100941]
|
|
script = ExtResource("17_lpeoe")
|
|
oauth_setting = ExtResource("6_m7rpr")
|
|
token = ExtResource("4_oe8se")
|
|
|
|
[node name="CatWorld" parent="." unique_id=1301842669 instance=ExtResource("23_7nx26")]
|
|
|
|
[node name="GeneralCommands" type="Node" parent="." unique_id=1080713698]
|
|
script = ExtResource("24_dr7ot")
|
|
|
|
[node name="Test" type="Node" parent="GeneralCommands" unique_id=1399617447]
|
|
script = ExtResource("24_l81bt")
|
|
command = "test"
|
|
description = "Test command to see if everythingis working."
|
|
metadata/_custom_type_script = "uid://bmluckfvgm1c2"
|
|
|
|
[node name="FloatingMenu" parent="." unique_id=56646671 instance=ExtResource("26_m7rpr")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 0
|
|
anchors_preset = 0
|
|
anchor_left = 0.0
|
|
anchor_right = 0.0
|
|
offset_left = 1357.0
|
|
offset_top = 18.0
|
|
offset_right = 1421.0
|
|
offset_bottom = 82.0
|
|
grow_horizontal = 1
|