сохранение/загрузка в эмс-г на доработке

This commit is contained in:
2025-03-11 18:47:53 +03:00
parent 05143f6f45
commit 228d1dfd19
12 changed files with 257 additions and 220 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=72 format=3 uid="uid://cvor2jm4xk3ha"]
[gd_scene load_steps=73 format=3 uid="uid://cvor2jm4xk3ha"]
[ext_resource type="Script" path="res://scripts/PRD.gd" id="1_v273n"]
[ext_resource type="Texture2D" uid="uid://cdxdluvyb5uei" path="res://table/on.png" id="2_dv7xx"]
@@ -28,7 +28,7 @@
[ext_resource type="Texture2D" uid="uid://c8gfddmqnws7v" path="res://pictures/фс_pressed.png" id="14_0dei1"]
[ext_resource type="Script" path="res://scripts/modul_fs.gd" id="15_b4pr1"]
[ext_resource type="Shader" path="res://Shaders/loadead.gdshader" id="16_4osrw"]
[ext_resource type="Shader" path="res://ray_litera_1.gdshader" id="20_do1s5"]
[ext_resource type="Shader" path="res://Shaders/ray_litera_1.gdshader" id="20_do1s5"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_o0too"]
bg_color = Color(0.447059, 0.0784314, 0.192157, 1)
@@ -243,6 +243,13 @@ shader_parameter/turn = 0.785
[sub_resource type="Theme" id="Theme_yblys"]
CheckBox/font_sizes/font_size = 14
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ei3d4"]
bg_color = Color(0.362983, 0.685867, 0.396516, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[node name="Node2D" type="Node2D"]
script = ExtResource("1_v273n")
@@ -335,6 +342,14 @@ theme_override_font_sizes/font_size = 14
theme_override_styles/pressed = SubResource("StyleBoxFlat_p247y")
text = "Сохранить"
[node name="notice" type="Label" parent="Background/switch_panel/save_config"]
self_modulate = Color(1, 1, 0.941176, 1)
layout_mode = 0
offset_left = 234.0
offset_top = 88.0
offset_right = 418.0
offset_bottom = 111.0
[node name="load_config" type="Button" parent="Background/switch_panel" groups=["select_grp"]]
layout_mode = 0
offset_left = 16.0
@@ -347,6 +362,13 @@ theme_override_font_sizes/font_size = 14
theme_override_styles/pressed = SubResource("StyleBoxFlat_p247y")
text = "Загрузить"
[node name="notice" type="Label" parent="Background/switch_panel/load_config"]
layout_mode = 0
offset_left = 239.0
offset_top = 77.0
offset_right = 417.0
offset_bottom = 100.0
[node name="burgerButton" type="TextureButton" parent="Background/switch_panel"]
self_modulate = Color(1, 1, 0.941176, 1)
layout_mode = 0
@@ -428,28 +450,12 @@ stretch_mode = 0
[node name="lbl_commit" type="Label" parent="Background"]
layout_mode = 0
offset_left = 1482.0
offset_top = 10.0
offset_right = 1658.0
offset_bottom = 34.0
offset_left = 1490.0
offset_top = 957.0
offset_right = 1666.0
offset_bottom = 981.0
theme_override_colors/font_color = Color(1, 1, 0.941176, 1)
[node name="ISA" type="Label" parent="."]
offset_left = 273.0
offset_top = 11.0
offset_right = 457.0
offset_bottom = 48.0
autowrap_mode = 3
[node name="read_isa" type="Button" parent="."]
visible = false
offset_left = 85.0
offset_top = 7.0
offset_right = 210.0
offset_bottom = 38.0
text = "Прочитать ISA"
metadata/_edit_lock_ = true
[node name="TabContainer" type="TabContainer" parent="."]
offset_left = 216.0
offset_top = 39.0
@@ -1226,24 +1232,13 @@ offset_bottom = 461.0
texture_normal = SubResource("GradientTexture2D_2sr0p")
[node name="load" type="Sprite2D" parent="TabContainer/EMS_G/load_boadr"]
visible = false
material = SubResource("ShaderMaterial_slcfo")
position = Vector2(785.001, 361.5)
scale = Vector2(24.5313, 11.2656)
texture = SubResource("GradientTexture2D_0pk2o")
metadata/_edit_lock_ = true
[node name="Load_text" type="Label" parent="TabContainer/EMS_G/load_boadr"]
visible = false
layout_mode = 0
offset_left = 693.0
offset_top = 341.0
offset_right = 849.0
offset_bottom = 380.0
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_shadow_color = Color(0.427493, 0.427493, 0.427493, 1)
theme_override_font_sizes/font_size = 28
text = "Загрузка ..."
[node name="Modul_fs" type="Panel" parent="TabContainer"]
visible = false
layout_mode = 2
@@ -1333,12 +1328,24 @@ offset_bottom = 827.0
theme = SubResource("Theme_yblys")
text = "Сохранить все настройки"
[node name="load_status_yau" type="ProgressBar" parent="."]
offset_left = 490.0
offset_top = 19.0
offset_right = 1560.0
offset_bottom = 24.0
theme_override_font_sizes/font_size = 13
theme_override_styles/fill = SubResource("StyleBoxFlat_ei3d4")
max_value = 32.0
step = 1.0
show_percentage = false
metadata/_edit_lock_ = true
[connection signal="pressed" from="Background/switch_panel/select_prd" to="." method="_on_prd_select"]
[connection signal="pressed" from="Background/switch_panel/select_control" to="." method="_on_control_button"]
[connection signal="pressed" from="Background/switch_panel/select_ems_g" to="." method="_on_emsg_select"]
[connection signal="pressed" from="Background/switch_panel/select_fs" to="." method="_on_mfs_select"]
[connection signal="pressed" from="Background/switch_panel/save_config" to="." method="save_settings"]
[connection signal="pressed" from="Background/switch_panel/load_config" to="." method="read_file"]
[connection signal="pressed" from="Background/switch_panel/save_config" to="." method="_on_save_config"]
[connection signal="pressed" from="Background/switch_panel/load_config" to="." method="_load_selected_file"]
[connection signal="toggled" from="Background/switch_panel/burgerButton" to="." method="_on_burger_button"]
[connection signal="pressed" from="Background/switch_panel/texture_prd" to="." method="_on_prd_select"]
[connection signal="pressed" from="Background/switch_panel/texture_control" to="." method="_on_control_button"]