asingcrow/godot/Components/MastoConfig.tscn

111 lines
3.2 KiB
Plaintext

[gd_scene load_steps=3 format=2]
[ext_resource path="res://Components/MastoConfig.gd" type="Script" id=1]
[ext_resource path="res://Components/MastoAuthCode.tscn" type="PackedScene" id=2]
[node name="MastoConfig" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 5.0
margin_top = 5.0
margin_right = -5.0
margin_bottom = -5.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_right = 1014.0
margin_bottom = 24.0
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
margin_top = 5.0
margin_right = 328.0
margin_bottom = 19.0
text = "Mastodon root url (e.g. https://toot.martyn.berlin) : "
[node name="TextEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer"]
margin_left = 332.0
margin_right = 1014.0
margin_bottom = 24.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="AuthUser" type="Button" parent="VBoxContainer"]
margin_top = 28.0
margin_right = 1014.0
margin_bottom = 48.0
text = "Authenticate as user..."
[node name="CodeEntry" parent="VBoxContainer" instance=ExtResource( 2 )]
visible = false
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 100.0
margin_right = 1014.0
margin_bottom = 400.0
rect_min_size = Vector2( 0, 300 )
[node name="TestToot" type="Button" parent="VBoxContainer"]
margin_top = 52.0
margin_right = 1014.0
margin_bottom = 72.0
text = "Test Post"
[node name="Panel" type="Panel" parent="VBoxContainer"]
margin_top = 76.0
margin_right = 1014.0
margin_bottom = 76.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="VBoxContainer/Panel"]
margin_right = 122.0
margin_bottom = 14.0
text = "Mastodon settings:"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GridContainer" type="GridContainer" parent="VBoxContainer/Panel"]
anchor_right = 1.0
margin_top = 20.0
margin_bottom = 20.0
size_flags_horizontal = 3
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CheckBox" type="CheckBox" parent="VBoxContainer/Panel/GridContainer"]
margin_right = 741.0
margin_bottom = 24.0
text = "Attach Audio to Toot (Mastodon Admins may not like this, audio takes up a fair amount of space and bandwidth)"
[node name="CheckBox2" type="CheckBox" parent="VBoxContainer/Panel/GridContainer"]
margin_top = 28.0
margin_right = 741.0
margin_bottom = 52.0
text = "Send Audio to binary pastebin paste.c-net.org - again, might upset their admins..."
[node name="Label" type="Label" parent="VBoxContainer/Panel/GridContainer"]
margin_top = 56.0
margin_right = 741.0
margin_bottom = 70.0
text = "We'll add more options as time goes on."
[node name="HTTPRequest" type="HTTPRequest" parent="."]
[connection signal="text_changed" from="VBoxContainer/HBoxContainer/TextEdit" to="." method="_on_TextEdit_text_changed"]
[connection signal="pressed" from="VBoxContainer/AuthUser" to="." method="_on_Login_pressed"]
[connection signal="on_authorize" from="VBoxContainer/CodeEntry" to="." method="_on_CodeEntry_on_authorize"]
[connection signal="pressed" from="VBoxContainer/TestToot" to="." method="_on_Button3_pressed"]