|
1 |
| -[gd_scene load_steps=3 format=3 uid="uid://b6nywv6aqxm3r"] |
| 1 | +[gd_scene load_steps=4 format=3 uid="uid://b6nywv6aqxm3r"] |
2 | 2 |
|
3 | 3 | [ext_resource type="Script" path="res://Main.gd" id="1_x5slr"]
|
4 | 4 | [ext_resource type="Texture2D" uid="uid://wbaqykif8euy" path="res://icon.svg" id="2_74yqq"]
|
| 5 | +[ext_resource type="Script" path="res://Settings.gd" id="2_b0jil"] |
5 | 6 |
|
6 |
| -[node name="Main" type="Control" node_paths=PackedStringArray("StatusLabel", "Progress", "LoadingScreen", "ConfigScreen", "CustomModDirLine")] |
| 7 | +[node name="Main" type="Control" node_paths=PackedStringArray("VersionLabel", "StatusLabel", "Progress", "LoadingScreen", "ConfigScreen", "SettingsPage")] |
7 | 8 | layout_mode = 3
|
8 | 9 | anchors_preset = 15
|
9 | 10 | anchor_right = 1.0
|
10 | 11 | anchor_bottom = 1.0
|
11 | 12 | grow_horizontal = 2
|
12 | 13 | grow_vertical = 2
|
13 | 14 | script = ExtResource("1_x5slr")
|
| 15 | +VersionLabel = NodePath("ConfigScreen/VBoxContainer2/CenterContainer/VBoxContainer/VersionLabel") |
14 | 16 | StatusLabel = NodePath("LoadingScreen/VBoxContainer/StatusLabel")
|
15 | 17 | Progress = NodePath("LoadingScreen/VBoxContainer/Progress")
|
16 | 18 | LoadingScreen = NodePath("LoadingScreen")
|
17 | 19 | ConfigScreen = NodePath("ConfigScreen")
|
18 |
| -CustomModDirLine = NodePath("ConfigScreen/TabContainer/Settings/VBoxContainer/GridContainer/HBoxContainer/CustomModDirLine") |
| 20 | +SettingsPage = NodePath("ConfigScreen/TabContainer/Settings") |
19 | 21 |
|
20 | 22 | [node name="LoadingScreen" type="CenterContainer" parent="."]
|
21 | 23 | visible = false
|
@@ -51,12 +53,15 @@ grow_vertical = 2
|
51 | 53 | [node name="TabContainer" type="TabContainer" parent="ConfigScreen"]
|
52 | 54 | layout_mode = 2
|
53 | 55 | size_flags_horizontal = 3
|
54 |
| -current_tab = 1 |
| 56 | +current_tab = 0 |
55 | 57 |
|
56 |
| -[node name="Settings" type="ScrollContainer" parent="ConfigScreen/TabContainer"] |
57 |
| -visible = false |
| 58 | +[node name="Settings" type="ScrollContainer" parent="ConfigScreen/TabContainer" node_paths=PackedStringArray("Main", "CustomModDirLine", "StartOnConfigCheckBox")] |
58 | 59 | layout_mode = 2
|
59 | 60 | size_flags_horizontal = 3
|
| 61 | +script = ExtResource("2_b0jil") |
| 62 | +Main = NodePath("../../..") |
| 63 | +CustomModDirLine = NodePath("VBoxContainer/GridContainer/HBoxContainer/CustomModDirLine") |
| 64 | +StartOnConfigCheckBox = NodePath("VBoxContainer/GridContainer/CheckBox") |
60 | 65 | metadata/_tab_index = 0
|
61 | 66 |
|
62 | 67 | [node name="VBoxContainer" type="VBoxContainer" parent="ConfigScreen/TabContainer/Settings"]
|
@@ -92,8 +97,10 @@ text = "Start on config screen"
|
92 | 97 |
|
93 | 98 | [node name="CheckBox" type="CheckBox" parent="ConfigScreen/TabContainer/Settings/VBoxContainer/GridContainer"]
|
94 | 99 | layout_mode = 2
|
| 100 | +size_flags_horizontal = 0 |
95 | 101 |
|
96 | 102 | [node name="Mods" type="ScrollContainer" parent="ConfigScreen/TabContainer"]
|
| 103 | +visible = false |
97 | 104 | layout_mode = 2
|
98 | 105 | metadata/_tab_index = 1
|
99 | 106 |
|
@@ -126,7 +133,7 @@ layout_mode = 2
|
126 | 133 | text = "VostokMods Injector"
|
127 | 134 | horizontal_alignment = 1
|
128 | 135 |
|
129 |
| -[node name="Label2" type="Label" parent="ConfigScreen/VBoxContainer2/CenterContainer/VBoxContainer"] |
| 136 | +[node name="VersionLabel" type="Label" parent="ConfigScreen/VBoxContainer2/CenterContainer/VBoxContainer"] |
130 | 137 | layout_mode = 2
|
131 | 138 | theme_override_colors/font_color = Color(1, 1, 1, 0.5)
|
132 | 139 | text = "Version x.x.x"
|
@@ -159,7 +166,7 @@ layout_mode = 2
|
159 | 166 | theme_override_font_sizes/font_size = 24
|
160 | 167 | text = "Launch"
|
161 | 168 |
|
162 |
| -[connection signal="pressed" from="ConfigScreen/TabContainer/Settings/VBoxContainer/GridContainer/HBoxContainer/Button" to="." method="openModDirDialog"] |
| 169 | +[connection signal="pressed" from="ConfigScreen/TabContainer/Settings/VBoxContainer/GridContainer/HBoxContainer/Button" to="ConfigScreen/TabContainer/Settings" method="openModDirDialog"] |
163 | 170 | [connection signal="pressed" from="ConfigScreen/VBoxContainer2/HBoxContainer/Button" to="." method="openMods"]
|
164 | 171 | [connection signal="pressed" from="ConfigScreen/VBoxContainer2/HBoxContainer/Button2" to="." method="openUser"]
|
165 | 172 | [connection signal="pressed" from="ConfigScreen/VBoxContainer2/Button3" to="." method="injectAndLaunch" binds= [false]]
|
|
0 commit comments