-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_window.tscn
144 lines (121 loc) · 4.42 KB
/
main_window.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[gd_scene load_steps=2 format=3 uid="uid://bhnn6y3dcyi3r"]
[ext_resource type="Script" path="res://Main.gd" id="1_1wb8u"]
[node name="MainWindow" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_1wb8u")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.14902, 0.14902, 0.14902, 1)
[node name="UiElements" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 20.0
offset_top = 20.0
offset_right = -20.0
offset_bottom = -20.0
grow_horizontal = 2
grow_vertical = 2
[node name="VerticalElements" type="VBoxContainer" parent="UiElements"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 2.0
grow_horizontal = 2
grow_vertical = 2
[node name="HeaderLabel" type="Label" parent="UiElements/VerticalElements"]
layout_mode = 2
text = "Atlas Generator"
horizontal_alignment = 1
[node name="Placeholder2" type="Control" parent="UiElements/VerticalElements"]
custom_minimum_size = Vector2(0, 10)
layout_mode = 2
[node name="FilepathContainer" type="HBoxContainer" parent="UiElements/VerticalElements"]
layout_mode = 2
[node name="LineEdit" type="LineEdit" parent="UiElements/VerticalElements/FilepathContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(440, 0)
layout_mode = 2
placeholder_text = "Please select a filepath which contains png files"
[node name="Button" type="Button" parent="UiElements/VerticalElements/FilepathContainer"]
layout_mode = 2
size_flags_horizontal = 8
text = "Select filepath"
[node name="OutputfileContainer" type="HBoxContainer" parent="UiElements/VerticalElements"]
layout_mode = 2
[node name="Label" type="Label" parent="UiElements/VerticalElements/OutputfileContainer"]
layout_mode = 2
text = "Output filename:"
[node name="LineEdit" type="LineEdit" parent="UiElements/VerticalElements/OutputfileContainer"]
custom_minimum_size = Vector2(426, 0)
layout_mode = 2
text = "Atlas"
[node name="ImagesizeContainer" type="HBoxContainer" parent="UiElements/VerticalElements"]
layout_mode = 2
[node name="Label2" type="Label" parent="UiElements/VerticalElements/ImagesizeContainer"]
layout_mode = 2
text = "Horizontal images:"
[node name="HorizontalImages" type="SpinBox" parent="UiElements/VerticalElements/ImagesizeContainer"]
unique_name_in_owner = true
layout_mode = 2
min_value = 1.0
max_value = 32.0
value = 2.0
rounded = true
[node name="SquareImage" type="CheckButton" parent="UiElements/VerticalElements/ImagesizeContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Square image"
[node name="Placeholder" type="Control" parent="UiElements/VerticalElements"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
[node name="GenerateAtlasButton" type="Button" parent="UiElements/VerticalElements"]
custom_minimum_size = Vector2(200, 30)
layout_mode = 2
size_flags_horizontal = 4
text = "Generate Atlas"
[node name="VersionLabel" type="Label" parent="UiElements"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -562.0
offset_top = -23.0
grow_horizontal = 0
grow_vertical = 0
size_flags_vertical = 8
text = "Version 0.0.2"
horizontal_alignment = 2
[node name="FileDialog" type="FileDialog" parent="."]
unique_name_in_owner = true
title = "Open a Directory"
position = Vector2i(80, 75)
size = Vector2i(454, 159)
ok_button_text = "Select Current Folder"
file_mode = 2
access = 2
use_native_dialog = true
[node name="AcceptDialog" type="AcceptDialog" parent="."]
unique_name_in_owner = true
title = "Notification"
initial_position = 1
[connection signal="text_changed" from="UiElements/VerticalElements/FilepathContainer/LineEdit" to="." method="setup_folder"]
[connection signal="pressed" from="UiElements/VerticalElements/FilepathContainer/Button" to="." method="select_folder"]
[connection signal="text_changed" from="UiElements/VerticalElements/OutputfileContainer/LineEdit" to="." method="update_filename"]
[connection signal="value_changed" from="UiElements/VerticalElements/ImagesizeContainer/HorizontalImages" to="." method="update_info"]
[connection signal="pressed" from="UiElements/VerticalElements/GenerateAtlasButton" to="." method="generate_atlas"]
[connection signal="dir_selected" from="FileDialog" to="." method="setup_folder"]