-
Notifications
You must be signed in to change notification settings - Fork 2
/
splitter.tscn
104 lines (83 loc) · 3.59 KB
/
splitter.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
[gd_scene load_steps=4 format=3 uid="uid://o2mxwwmp5i4e"]
[ext_resource type="Script" path="res://splitter.gd" id="1_wt31d"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_x6t1o"]
bg_color = Color(0.443137, 0.443137, 0.443137, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ow5vr"]
bg_color = Color(0.105882, 0.105882, 0.105882, 1)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.0102081, 0, 0.821122, 1)
[node name="Splitter" 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_wt31d")
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 15
theme_override_constants/margin_top = 15
theme_override_constants/margin_right = 15
theme_override_constants/margin_bottom = 15
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 11
[node name="Choose file" type="Button" parent="MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Choose file"
[node name="Split" type="Button" parent="MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
disabled = true
text = "split"
[node name="Merge" type="Button" parent="MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Merge"
[node name="VBoxContainer2" type="VBoxContainer" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/VBoxContainer2"]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/VBoxContainer2/HBoxContainer"]
layout_mode = 2
text = "Brick name: "
[node name="BrickName" type="LineEdit" parent="MarginContainer/HBoxContainer/VBoxContainer2/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/HBoxContainer/VBoxContainer2"]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/VBoxContainer2/HBoxContainer2"]
layout_mode = 2
text = "Merge dest file name:"
[node name="MergeDest" type="LineEdit" parent="MarginContainer/HBoxContainer/VBoxContainer2/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Filename" type="Label" parent="MarginContainer/HBoxContainer/VBoxContainer2"]
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxFlat_x6t1o")
[node name="Msgr" type="RichTextLabel" parent="MarginContainer/HBoxContainer/VBoxContainer2"]
layout_mode = 2
size_flags_vertical = 3
theme_override_font_sizes/normal_font_size = 12
theme_override_styles/normal = SubResource("StyleBoxFlat_ow5vr")
[node name="Chooser" type="FileDialog" parent="."]
title = "Open a File"
position = Vector2i(223, 162)
size = Vector2i(455, 393)
ok_button_text = "Open"
file_mode = 0
access = 2
[connection signal="pressed" from="MarginContainer/HBoxContainer/VBoxContainer/Choose file" to="." method="_on_choose_file_pressed"]
[connection signal="pressed" from="MarginContainer/HBoxContainer/VBoxContainer/Split" to="." method="_on_split_pressed"]
[connection signal="pressed" from="MarginContainer/HBoxContainer/VBoxContainer/Merge" to="." method="_on_merge_pressed"]
[connection signal="file_selected" from="Chooser" to="." method="_on_chooser_file_selected"]