-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.tscn
111 lines (88 loc) · 3.71 KB
/
Main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[gd_scene load_steps=5 format=3 uid="uid://cku5gxud6hwxm"]
[ext_resource type="Script" path="res://Main.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://dchi5jdy44234" path="res://TerminalPreviewer.tscn" id="2"]
[ext_resource type="Theme" uid="uid://dcognrshqsax3" path="res://Terminal.tres" id="3"]
[ext_resource type="Script" path="res://Toolbar.gd" id="5"]
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("3")
script = ExtResource("1")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0, 0, 0, 1)
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer"]
layout_mode = 2
[node name="Toolbar" type="HBoxContainer" parent="VBoxContainer/PanelContainer"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
script = ExtResource("5")
[node name="Control2" type="Control" parent="VBoxContainer/PanelContainer/Toolbar"]
layout_mode = 2
[node name="File" type="MenuButton" parent="VBoxContainer/PanelContainer/Toolbar"]
layout_mode = 2
text = "File"
switch_on_hover = true
[node name="Control" type="Control" parent="VBoxContainer/PanelContainer/Toolbar"]
layout_mode = 2
[node name="About" type="MenuButton" parent="VBoxContainer/PanelContainer/Toolbar"]
layout_mode = 2
text = "About"
switch_on_hover = true
[node name="HBoxContainer" type="HSplitContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="SplitContainer" type="VSplitContainer" parent="VBoxContainer/HBoxContainer"]
layout_mode = 2
[node name="Previewer" parent="VBoxContainer/HBoxContainer/SplitContainer" instance=ExtResource("2")]
layout_mode = 2
[node name="Editor" type="VBoxContainer" parent="VBoxContainer/HBoxContainer/SplitContainer"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HBoxContainer/SplitContainer/Editor"]
layout_mode = 2
[node name="Update" type="Button" parent="VBoxContainer/HBoxContainer/SplitContainer/Editor/HBoxContainer"]
layout_mode = 2
text = "Update preview"
[node name="Inline" type="TextEdit" parent="VBoxContainer/HBoxContainer/SplitContainer/Editor"]
layout_mode = 2
size_flags_vertical = 3
draw_tabs = true
draw_spaces = true
[node name="SaveDialog" type="FileDialog" parent="."]
position = Vector2i(0, 36)
size = Vector2i(401, 157)
visible = true
access = 2
filters = PackedStringArray("*.txt, *.bbcode")
[node name="OpenDialog" type="FileDialog" parent="."]
position = Vector2i(0, 36)
size = Vector2i(401, 157)
visible = true
access = 2
filters = PackedStringArray("*.txt")
[node name="About" type="AcceptDialog" parent="."]
dialog_text = "Coded by 810-dude
All code under MIT License
Created to allow and simpify translations,
special thanks to exepa and Leviatan.
You can contribute to the code at
https://github.com/RiseRobotRise/Terminal-Viewer"
dialog_autowrap = true
[connection signal="about_option_selected" from="VBoxContainer/PanelContainer/Toolbar" to="." method="_on_Toolbar_about_option_selected"]
[connection signal="file_option_selected" from="VBoxContainer/PanelContainer/Toolbar" to="." method="_on_Toolbar_file_option_selected"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/SplitContainer/Editor/HBoxContainer/Update" to="." method="_on_Update_pressed"]
[connection signal="file_selected" from="SaveDialog" to="." method="_on_SaveDialog_file_selected"]
[connection signal="file_selected" from="OpenDialog" to="." method="_on_FileDialog_file_selected"]