mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
b8e65edcef
This handles adding the functionality for saving the Token and Channel for Twitch, as well as the Port and Password for OBS when handling connections. Co-authored-by: Eroax <eroaxe.business@gmail.com> Reviewed-on: https://codeberg.org/Eroax/StreamGraph/pulls/38
67 lines
2 KiB
Text
67 lines
2 KiB
Text
[gd_scene load_steps=2 format=3 uid="uid://bq2lxmbnic4lc"]
|
|
|
|
[ext_resource type="Script" path="res://graph_node_renderer/twitch_setup_dialog.gd" id="1_xx7my"]
|
|
|
|
[node name="twitch_setup_dialog" type="ConfirmationDialog"]
|
|
title = "Twitch Connection Setup"
|
|
initial_position = 2
|
|
size = Vector2i(465, 158)
|
|
min_size = Vector2i(375, 150)
|
|
script = ExtResource("1_xx7my")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -224.5
|
|
offset_top = 8.0
|
|
offset_right = 224.5
|
|
offset_bottom = 109.0
|
|
grow_horizontal = 2
|
|
size_flags_horizontal = 4
|
|
|
|
[node name="Authentication" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Client_ID" type="LineEdit" parent="VBoxContainer/Authentication"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
tooltip_text = "The Twitch Client ID used by this Connection for it's Authentication. Defaults to the built in Client ID that the program ships with."
|
|
placeholder_text = "Custom Client ID (Optional)"
|
|
|
|
[node name="Authenticate" type="Button" parent="VBoxContainer/Authentication"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_stretch_ratio = 0.25
|
|
text = "Connect"
|
|
|
|
[node name="CopyURLButton" type="Button" parent="VBoxContainer/Authentication"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_stretch_ratio = 0.25
|
|
text = "Copy"
|
|
|
|
[node name="CheckBox" type="CheckBox" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
disabled = true
|
|
button_pressed = true
|
|
text = "Extra Chat Info"
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Default_Chat" type="LineEdit" parent="VBoxContainer/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
placeholder_text = "Default Channel/New Channel"
|
|
|
|
[node name="Join_Chat" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_stretch_ratio = 0.24
|
|
text = "Join"
|