ready for kira
This commit is contained in:
211
PRD_MP550.tscn
211
PRD_MP550.tscn
@@ -216,6 +216,26 @@ theme_override_styles/pressed = SubResource("StyleBoxFlat_p247y")
|
||||
toggle_mode = true
|
||||
text = "Модуль ФС"
|
||||
|
||||
[node name="save_config" type="Button" parent="Background/side_panel"]
|
||||
offset_top = 832.0
|
||||
offset_right = 216.0
|
||||
offset_bottom = 868.0
|
||||
focus_mode = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_font_sizes/font_size = 14
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_p247y")
|
||||
text = "Сохранить"
|
||||
|
||||
[node name="load_config" type="Button" parent="Background/side_panel"]
|
||||
offset_top = 872.0
|
||||
offset_right = 216.0
|
||||
offset_bottom = 908.0
|
||||
focus_mode = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_font_sizes/font_size = 14
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_p247y")
|
||||
text = "Загрузить"
|
||||
|
||||
[node name="Litera_3_5_7" type="ColorRect" parent="Background"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
@@ -273,18 +293,72 @@ metadata/_edit_lock_ = true
|
||||
|
||||
[node name="body_grid" type="GridContainer" parent="TabContainer/PRD"]
|
||||
layout_mode = 0
|
||||
offset_left = 827.0
|
||||
offset_left = 651.0
|
||||
offset_top = -14.0
|
||||
offset_right = 1633.0
|
||||
offset_right = 1664.0
|
||||
offset_bottom = 690.0
|
||||
|
||||
[node name="litera_2_4_6" type="GridContainer" parent="TabContainer/PRD/body_grid"]
|
||||
clip_contents = true
|
||||
custom_minimum_size = Vector2(500, 300)
|
||||
custom_minimum_size = Vector2(700, 300)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
columns = 3
|
||||
|
||||
[node name="module_fs" type="GridContainer" parent="TabContainer/PRD/body_grid/litera_2_4_6"]
|
||||
custom_minimum_size = Vector2(250, 250)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="LABEL" type="Label" parent="TabContainer/PRD/body_grid/litera_2_4_6/module_fs"]
|
||||
layout_mode = 2
|
||||
text = "ЛИТЕРА 2! ПРД-Н!"
|
||||
|
||||
[node name="con" type="Button" parent="TabContainer/PRD/body_grid/litera_2_4_6/module_fs"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 4
|
||||
text = " Подключение "
|
||||
|
||||
[node name="ip_connect" type="Label" parent="TabContainer/PRD/body_grid/litera_2_4_6/module_fs/con"]
|
||||
layout_mode = 0
|
||||
offset_top = 32.0
|
||||
offset_right = 118.0
|
||||
offset_bottom = 55.0
|
||||
|
||||
[node name="get_freq" type="Button" parent="TabContainer/PRD/body_grid/litera_2_4_6/module_fs"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = " Получить н/ч "
|
||||
|
||||
[node name="freq_ind" type="Label" parent="TabContainer/PRD/body_grid/litera_2_4_6/module_fs/get_freq"]
|
||||
layout_mode = 0
|
||||
offset_top = 32.0
|
||||
offset_right = 106.0
|
||||
offset_bottom = 55.0
|
||||
|
||||
[node name="get_att" type="Button" parent="TabContainer/PRD/body_grid/litera_2_4_6/module_fs"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = " Получить att "
|
||||
|
||||
[node name="att_ind" type="Label" parent="TabContainer/PRD/body_grid/litera_2_4_6/module_fs/get_att"]
|
||||
layout_mode = 0
|
||||
offset_top = 32.0
|
||||
offset_right = 105.0
|
||||
offset_bottom = 55.0
|
||||
|
||||
[node name="get_gen_status" type="Button" parent="TabContainer/PRD/body_grid/litera_2_4_6/module_fs"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
toggle_mode = true
|
||||
text = "Переключатель генератора "
|
||||
|
||||
[node name="status_ind" type="Label" parent="TabContainer/PRD/body_grid/litera_2_4_6/module_fs/get_gen_status"]
|
||||
layout_mode = 0
|
||||
offset_top = 33.0
|
||||
offset_right = 84.0
|
||||
offset_bottom = 56.0
|
||||
|
||||
[node name="yau_07b" type="GridContainer" parent="TabContainer/PRD/body_grid/litera_2_4_6"]
|
||||
custom_minimum_size = Vector2(250, 200)
|
||||
layout_mode = 2
|
||||
@@ -294,6 +368,7 @@ layout_mode = 2
|
||||
text = "ЛИТЕРА 2! ПРД-Н!"
|
||||
|
||||
[node name="Zapret" type="Button" parent="TabContainer/PRD/body_grid/litera_2_4_6/yau_07b"]
|
||||
custom_minimum_size = Vector2(180, 25)
|
||||
layout_mode = 2
|
||||
focus_mode = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
@@ -311,20 +386,12 @@ toggle_mode = true
|
||||
text = " Модуляция УМ 2"
|
||||
metadata/dev_num = 51
|
||||
|
||||
[node name="Label_ray" type="Label" parent="TabContainer/PRD/body_grid/litera_2_4_6/yau_07b"]
|
||||
layout_mode = 2
|
||||
text = "Номер и направление луча"
|
||||
|
||||
[node name="Ray_set_1" type="OptionButton" parent="TabContainer/PRD/body_grid/litera_2_4_6/yau_07b"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="att_set_1" type="OptionButton" parent="TabContainer/PRD/body_grid/litera_2_4_6/yau_07b"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DKM2" type="Label" parent="TabContainer/PRD/body_grid/litera_2_4_6/yau_07b"]
|
||||
layout_mode = 2
|
||||
text = "ДКМ ДОУ 2"
|
||||
|
||||
[node name="table_ukp_1" type="GridContainer" parent="TabContainer/PRD/body_grid/litera_2_4_6"]
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_vmbyo")
|
||||
@@ -332,7 +399,7 @@ metadata/_edit_lock_ = true
|
||||
|
||||
[node name="PSK" type="Sprite2D" parent="TabContainer/PRD/body_grid/litera_2_4_6"]
|
||||
material = ExtResource("3_3syd3")
|
||||
position = Vector2(367, 11)
|
||||
position = Vector2(664, 11)
|
||||
scale = Vector2(0.247968, 0.234167)
|
||||
texture = SubResource("PlaceholderTexture2D_723du")
|
||||
offset = Vector2(800, 600)
|
||||
@@ -351,25 +418,79 @@ metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ray_1" type="Sprite2D" parent="TabContainer/PRD/body_grid/litera_2_4_6/PSK"]
|
||||
material = SubResource("ShaderMaterial_dgiai")
|
||||
position = Vector2(549.221, 560.705)
|
||||
position = Vector2(549.221, 543.623)
|
||||
scale = Vector2(21.8765, 21.6782)
|
||||
texture = SubResource("GradientTexture2D_0pk2o")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="litera_3_5_7_1" type="GridContainer" parent="TabContainer/PRD/body_grid"]
|
||||
[node name="litera_3_5_7" type="GridContainer" parent="TabContainer/PRD/body_grid"]
|
||||
custom_minimum_size = Vector2(500, 350)
|
||||
layout_mode = 2
|
||||
columns = 3
|
||||
|
||||
[node name="yau_07b" type="GridContainer" parent="TabContainer/PRD/body_grid/litera_3_5_7_1"]
|
||||
[node name="module_fs" type="GridContainer" parent="TabContainer/PRD/body_grid/litera_3_5_7"]
|
||||
custom_minimum_size = Vector2(250, 250)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="LABEL" type="Label" parent="TabContainer/PRD/body_grid/litera_3_5_7/module_fs"]
|
||||
layout_mode = 2
|
||||
text = "ЛИТЕРА 2! ПРД-Н!"
|
||||
|
||||
[node name="con" type="Button" parent="TabContainer/PRD/body_grid/litera_3_5_7/module_fs"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = " Подключение "
|
||||
|
||||
[node name="ip_connect" type="Label" parent="TabContainer/PRD/body_grid/litera_3_5_7/module_fs/con"]
|
||||
layout_mode = 0
|
||||
offset_top = 32.0
|
||||
offset_right = 118.0
|
||||
offset_bottom = 55.0
|
||||
|
||||
[node name="get_freq" type="Button" parent="TabContainer/PRD/body_grid/litera_3_5_7/module_fs"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = " Получить н/ч "
|
||||
|
||||
[node name="freq_ind" type="Label" parent="TabContainer/PRD/body_grid/litera_3_5_7/module_fs/get_freq"]
|
||||
layout_mode = 0
|
||||
offset_top = 32.0
|
||||
offset_right = 106.0
|
||||
offset_bottom = 55.0
|
||||
|
||||
[node name="get_att" type="Button" parent="TabContainer/PRD/body_grid/litera_3_5_7/module_fs"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = " Получить att "
|
||||
|
||||
[node name="att_ind" type="Label" parent="TabContainer/PRD/body_grid/litera_3_5_7/module_fs/get_att"]
|
||||
layout_mode = 0
|
||||
offset_top = 32.0
|
||||
offset_right = 105.0
|
||||
offset_bottom = 55.0
|
||||
|
||||
[node name="get_gen_status" type="Button" parent="TabContainer/PRD/body_grid/litera_3_5_7/module_fs"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
toggle_mode = true
|
||||
text = "Переключатель генератора "
|
||||
|
||||
[node name="status_ind" type="Label" parent="TabContainer/PRD/body_grid/litera_3_5_7/module_fs/get_gen_status"]
|
||||
layout_mode = 0
|
||||
offset_top = 33.0
|
||||
offset_right = 84.0
|
||||
offset_bottom = 56.0
|
||||
|
||||
[node name="yau_07b" type="GridContainer" parent="TabContainer/PRD/body_grid/litera_3_5_7"]
|
||||
custom_minimum_size = Vector2(250, 200)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="LABEL2" type="Label" parent="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b"]
|
||||
[node name="LABEL2" type="Label" parent="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b"]
|
||||
layout_mode = 2
|
||||
text = "ЛИТЕРА 3! ПРД-Н!"
|
||||
|
||||
[node name="Zapret2" type="Button" parent="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b"]
|
||||
[node name="Zapret2" type="Button" parent="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b"]
|
||||
custom_minimum_size = Vector2(180, 25)
|
||||
layout_mode = 2
|
||||
focus_mode = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
@@ -378,7 +499,7 @@ toggle_mode = true
|
||||
text = " Запрет СИ3"
|
||||
metadata/dev_num = 49
|
||||
|
||||
[node name="Modul_um_2" type="Button" parent="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b"]
|
||||
[node name="Modul_um_2" type="Button" parent="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b"]
|
||||
layout_mode = 2
|
||||
focus_mode = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
@@ -387,7 +508,7 @@ toggle_mode = true
|
||||
text = " Модуляция УМ 3"
|
||||
metadata/dev_num = 52
|
||||
|
||||
[node name="fgos_2" type="Button" parent="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b"]
|
||||
[node name="fgos_2" type="Button" parent="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b"]
|
||||
layout_mode = 2
|
||||
focus_mode = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
@@ -396,30 +517,26 @@ toggle_mode = true
|
||||
text = "ФГОЗ 3"
|
||||
metadata/dev_num = 56
|
||||
|
||||
[node name="DKM3" type="Label" parent="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b"]
|
||||
layout_mode = 2
|
||||
text = "ДКМ ДОУ 3"
|
||||
|
||||
[node name="Ray_set_2" type="OptionButton" parent="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b"]
|
||||
[node name="Ray_set_2" type="OptionButton" parent="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="att_set_2" type="OptionButton" parent="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b"]
|
||||
[node name="att_set_2" type="OptionButton" parent="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="table_ukp_2" type="GridContainer" parent="TabContainer/PRD/body_grid/litera_3_5_7_1"]
|
||||
[node name="table_ukp_2" type="GridContainer" parent="TabContainer/PRD/body_grid/litera_3_5_7"]
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_vmbyo")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="PSK2" type="Sprite2D" parent="TabContainer/PRD/body_grid/litera_3_5_7_1"]
|
||||
[node name="PSK2" type="Sprite2D" parent="TabContainer/PRD/body_grid/litera_3_5_7"]
|
||||
material = ExtResource("3_3syd3")
|
||||
position = Vector2(368, 10)
|
||||
position = Vector2(665, 10)
|
||||
scale = Vector2(0.247968, 0.234167)
|
||||
texture = SubResource("PlaceholderTexture2D_723du")
|
||||
offset = Vector2(800, 600)
|
||||
script = SubResource("GDScript_0sobq")
|
||||
|
||||
[node name="PSK grad" type="TextureRect" parent="TabContainer/PRD/body_grid/litera_3_5_7_1/PSK2"]
|
||||
[node name="PSK grad" type="TextureRect" parent="TabContainer/PRD/body_grid/litera_3_5_7/PSK2"]
|
||||
modulate = Color(1, 1, 0.941176, 0.784314)
|
||||
show_behind_parent = true
|
||||
material = SubResource("ShaderMaterial_o7txs")
|
||||
@@ -431,19 +548,25 @@ texture = ExtResource("5_i3nvb")
|
||||
expand_mode = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ray_2" type="Sprite2D" parent="TabContainer/PRD/body_grid/litera_3_5_7_1/PSK2"]
|
||||
[node name="ray_2" type="Sprite2D" parent="TabContainer/PRD/body_grid/litera_3_5_7/PSK2"]
|
||||
material = SubResource("ShaderMaterial_2pxu2")
|
||||
position = Vector2(549.221, 560.705)
|
||||
position = Vector2(549.221, 539.353)
|
||||
scale = Vector2(21.8765, 21.6782)
|
||||
texture = SubResource("GradientTexture2D_0pk2o")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="litera_1" type="GridContainer" parent="TabContainer/PRD/body_grid"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="select_dev" type="GridContainer" parent="TabContainer/PRD"]
|
||||
layout_mode = 2
|
||||
offset_top = 195.0
|
||||
offset_bottom = 195.0
|
||||
offset_left = 16.0
|
||||
offset_top = 11.0
|
||||
offset_right = 16.0
|
||||
offset_bottom = 11.0
|
||||
script = ExtResource("2_vmbyo")
|
||||
metadata/_edit_lock_ = true
|
||||
node_gap = Vector2(100, 50)
|
||||
|
||||
[node name="ControlPanel" type="Panel" parent="TabContainer"]
|
||||
visible = false
|
||||
@@ -1011,16 +1134,26 @@ text = "Темп"
|
||||
[connection signal="pressed" from="Background/side_panel/select_control" to="." method="_on_control_button"]
|
||||
[connection signal="pressed" from="Background/side_panel/select_ems_g" to="." method="_on_emsg_select"]
|
||||
[connection signal="pressed" from="Background/side_panel/select_fs" to="." method="_on_mfs_select"]
|
||||
[connection signal="pressed" from="Background/side_panel/save_config" to="." method="_on_save_config"]
|
||||
[connection signal="pressed" from="Background/side_panel/load_config" to="." method="_on_load_config"]
|
||||
[connection signal="pressed" from="read_isa" to="." method="_on_read_isa_pressed"]
|
||||
[connection signal="pressed" from="TabContainer/PRD/body_grid/litera_2_4_6/module_fs/con" to="TabContainer/Modul_fs" method="_on_start"]
|
||||
[connection signal="pressed" from="TabContainer/PRD/body_grid/litera_2_4_6/module_fs/get_freq" to="TabContainer/Modul_fs" method="_on_send_pressed"]
|
||||
[connection signal="pressed" from="TabContainer/PRD/body_grid/litera_2_4_6/module_fs/get_att" to="TabContainer/Modul_fs" method="_on_get_att"]
|
||||
[connection signal="toggled" from="TabContainer/PRD/body_grid/litera_2_4_6/module_fs/get_gen_status" to="TabContainer/Modul_fs" method="_on_get_status"]
|
||||
[connection signal="toggled" from="TabContainer/PRD/body_grid/litera_2_4_6/yau_07b/Zapret" to="." method="_on_zapret1"]
|
||||
[connection signal="toggled" from="TabContainer/PRD/body_grid/litera_2_4_6/yau_07b/Modul_um_1" to="." method="_on_modul_um_1"]
|
||||
[connection signal="item_selected" from="TabContainer/PRD/body_grid/litera_2_4_6/yau_07b/Ray_set_1" to="." method="_on_btn_ray_1"]
|
||||
[connection signal="item_selected" from="TabContainer/PRD/body_grid/litera_2_4_6/yau_07b/att_set_1" to="." method="_on_attenuator_1"]
|
||||
[connection signal="toggled" from="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/Zapret2" to="." method="_on_zapret2"]
|
||||
[connection signal="toggled" from="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/Modul_um_2" to="." method="_on_modul_um_2"]
|
||||
[connection signal="toggled" from="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/fgos_2" to="." method="_on_fgos_2"]
|
||||
[connection signal="item_selected" from="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/Ray_set_2" to="." method="_on_btn_ray_2"]
|
||||
[connection signal="item_selected" from="TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/att_set_2" to="." method="_on_attenuator_2"]
|
||||
[connection signal="pressed" from="TabContainer/PRD/body_grid/litera_3_5_7/module_fs/con" to="TabContainer/Modul_fs" method="_on_start"]
|
||||
[connection signal="pressed" from="TabContainer/PRD/body_grid/litera_3_5_7/module_fs/get_freq" to="TabContainer/Modul_fs" method="_on_send_pressed"]
|
||||
[connection signal="pressed" from="TabContainer/PRD/body_grid/litera_3_5_7/module_fs/get_att" to="TabContainer/Modul_fs" method="_on_get_att"]
|
||||
[connection signal="toggled" from="TabContainer/PRD/body_grid/litera_3_5_7/module_fs/get_gen_status" to="TabContainer/Modul_fs" method="_on_get_status"]
|
||||
[connection signal="toggled" from="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/Zapret2" to="." method="_on_zapret2"]
|
||||
[connection signal="toggled" from="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/Modul_um_2" to="." method="_on_modul_um_2"]
|
||||
[connection signal="toggled" from="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/fgos_2" to="." method="_on_fgos_2"]
|
||||
[connection signal="item_selected" from="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/Ray_set_2" to="." method="_on_btn_ray_2"]
|
||||
[connection signal="item_selected" from="TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/att_set_2" to="." method="_on_attenuator_2"]
|
||||
[connection signal="pressed" from="TabContainer/Modul_fs/set_space/set_ferq" to="TabContainer/Modul_fs" method="_on_set_ferq"]
|
||||
[connection signal="pressed" from="TabContainer/Modul_fs/set_space/set_att2" to="TabContainer/Modul_fs" method="_on_set_att"]
|
||||
[connection signal="pressed" from="TabContainer/Modul_fs/manage_panel/con" to="TabContainer/Modul_fs" method="_on_start"]
|
||||
|
||||
@@ -21,7 +21,7 @@ func _ready() -> void:
|
||||
node_select1.set_node_text(1, 0, 'Температура')
|
||||
|
||||
# Таблица УКП_2
|
||||
node_select2 = $TabContainer/PRD/body_grid/litera_3_5_7_1/table_ukp_2
|
||||
node_select2 = $TabContainer/PRD/body_grid/litera_3_5_7/table_ukp_2
|
||||
draw_tabl(node_select2, Constants.ROWS_UKP2_DATA, Constants.ROWS_UKP2_DATA.size())
|
||||
node_select2.set_columns_min_size([120, 120])
|
||||
node_select2.set_node_text(0, 0, 'Мощность')
|
||||
@@ -43,12 +43,12 @@ func _ready() -> void:
|
||||
## Заполненение списка направления луча
|
||||
for key in Constants.RAY_DICT:
|
||||
$TabContainer/PRD/body_grid/litera_2_4_6/yau_07b/Ray_set_1.add_item(key)
|
||||
$TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/Ray_set_2.add_item(key)
|
||||
$TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/Ray_set_2.add_item(key)
|
||||
|
||||
## Заполненение списка аттенюатора
|
||||
for key in Constants.ATT_DICT:
|
||||
$TabContainer/PRD/body_grid/litera_2_4_6/yau_07b/att_set_1.add_item(key)
|
||||
$TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/att_set_2.add_item(key)
|
||||
$TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/att_set_2.add_item(key)
|
||||
|
||||
draw_control_panel_prd(Constants.ADDRESSES[0][3])
|
||||
|
||||
@@ -99,7 +99,7 @@ func _on_read_isa(unit_isa_ports: Dictionary) -> void:
|
||||
if isa_data.has(Constants.BASE_PORTS.UG+6):
|
||||
$TabContainer/PRD/body_grid/litera_2_4_6/PSK/ray_1.material.set('shader_parameter/turn', 0.735 + 0.025 * (isa_data[0x106] & 0x7))
|
||||
if isa_data.has(Constants.BASE_PORTS.UG+8):
|
||||
$TabContainer/PRD/body_grid/litera_3_5_7_1/PSK2/ray_2.material.set('shader_parameter/turn', 0.735 + 0.025 * (isa_data[0x108] & 0x7))
|
||||
$TabContainer/PRD/body_grid/litera_3_5_7/PSK2/ray_2.material.set('shader_parameter/turn', 0.735 + 0.025 * (isa_data[0x108] & 0x7))
|
||||
|
||||
|
||||
## Рисует таблицу
|
||||
@@ -165,6 +165,15 @@ func _on_mfs_select() -> void:
|
||||
set_tab_and_buttons(3, 'select_fs')
|
||||
|
||||
|
||||
func _on_save_config():
|
||||
print('Тебе сюда')
|
||||
|
||||
|
||||
func _on_load_config():
|
||||
print('тебе сюда')
|
||||
|
||||
|
||||
|
||||
func set_tab_and_buttons(tab_index: int, button_name: String) -> void:
|
||||
$TabContainer.current_tab = tab_index
|
||||
var side_panel = $Background/side_panel
|
||||
@@ -200,7 +209,7 @@ func _on_zapret1(toggled_on: bool) -> void:
|
||||
|
||||
|
||||
func _on_zapret2(toggled_on: bool) -> void:
|
||||
var meta = $TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/Zapret2.get_meta('dev_num')
|
||||
var meta = $TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/Zapret2.get_meta('dev_num')
|
||||
Network.write_port_isa(Constants.BASE_PORTS.EMS_G+2, meta)
|
||||
var zapret_mode = 0x4000 if toggled_on else 0x0
|
||||
Network.write_port_isa(Constants.BASE_PORTS.EMS_G+8, zapret_mode)
|
||||
@@ -214,14 +223,14 @@ func _on_modul_um_1(toggled_on: bool):
|
||||
|
||||
|
||||
func _on_modul_um_2(toggled_on: bool):
|
||||
var meta = $TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/Modul_um_2.get_meta('dev_num')
|
||||
var meta = $TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/Modul_um_2.get_meta('dev_num')
|
||||
Network.write_port_isa(Constants.BASE_PORTS.EMS_G+2, meta)
|
||||
var modul_um = 0x2000 if toggled_on else 0x0
|
||||
Network.write_port_isa(Constants.BASE_PORTS.EMS_G+8, modul_um)
|
||||
|
||||
|
||||
func _on_fgos_2(toggled_on: bool):
|
||||
var meta = $TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/fgos_2.get_meta('dev_num')
|
||||
var meta = $TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/fgos_2.get_meta('dev_num')
|
||||
Network.write_port_isa(Constants.BASE_PORTS.EMS_G+2, meta)
|
||||
var modul_um = 0x2000 if toggled_on else 0x0
|
||||
Network.write_port_isa(Constants.BASE_PORTS.EMS_G+8, modul_um)
|
||||
@@ -236,25 +245,35 @@ func _on_fgos_2(toggled_on: bool):
|
||||
|
||||
## Регулировка положением луча 1
|
||||
func _on_btn_ray_1(item_from_ray_1: int) -> void:
|
||||
Network.write_port_isa(Constants.BASE_PORTS.UG+6, set_bits(isa_from_yau07b[Constants.BASE_PORTS.UG+6], item_from_ray_1, 7))
|
||||
Network.read_port_isa([Constants.BASE_PORTS.UG+6])
|
||||
if isa_from_yau07b.has(Constants.BASE_PORTS.UG+6):
|
||||
Network.write_port_isa(Constants.BASE_PORTS.UG+6, set_bits(isa_from_yau07b[Constants.BASE_PORTS.UG+6], item_from_ray_1, 7))
|
||||
Network.read_port_isa([Constants.BASE_PORTS.UG+6])
|
||||
else:
|
||||
print_debug('В ISA отсутствует данные в \"%x\" порту' % (Constants.BASE_PORTS.UG+0x6))
|
||||
|
||||
|
||||
## Регулировка положением луча 2
|
||||
func _on_btn_ray_2(item_from_ray_2: int) -> void:
|
||||
Network.write_port_isa(Constants.BASE_PORTS.UG+8, set_bits(isa_from_yau07b[Constants.BASE_PORTS.UG+8], item_from_ray_2, 7))
|
||||
Network.read_port_isa([Constants.BASE_PORTS.UG+8])
|
||||
if isa_from_yau07b.has(Constants.BASE_PORTS.UG+8):
|
||||
Network.write_port_isa(Constants.BASE_PORTS.UG+8, set_bits(isa_from_yau07b[Constants.BASE_PORTS.UG+8], item_from_ray_2, 7))
|
||||
Network.read_port_isa([Constants.BASE_PORTS.UG+8])
|
||||
else:
|
||||
print_debug('В ISA отсутствует данные в \"%x\" порту' % (Constants.BASE_PORTS.UG+0x8))
|
||||
|
||||
|
||||
func _on_attenuator_1(item_from_att_1: int) -> void:
|
||||
Network.write_port_isa(Constants.BASE_PORTS.UG+6, set_bits(isa_from_yau07b[Constants.BASE_PORTS.UG+6], item_from_att_1 << 3, 0x38))
|
||||
Network.read_port_isa([Constants.BASE_PORTS.UG+6])
|
||||
|
||||
if isa_from_yau07b.has(Constants.BASE_PORTS.UG+6):
|
||||
Network.write_port_isa(Constants.BASE_PORTS.UG+6, set_bits(isa_from_yau07b[Constants.BASE_PORTS.UG+6], item_from_att_1 << 3, 0x38))
|
||||
Network.read_port_isa([Constants.BASE_PORTS.UG+6])
|
||||
else:
|
||||
print_debug('В ISA отсутствует данные в \"%x\" порту' % (Constants.BASE_PORTS.UG+0x6))
|
||||
|
||||
func _on_attenuator_2(item_from_att_1: int) -> void:
|
||||
Network.write_port_isa(Constants.BASE_PORTS.UG+8, set_bits(isa_from_yau07b[Constants.BASE_PORTS.UG+8], item_from_att_1 << 3, 0x38))
|
||||
Network.read_port_isa([Constants.BASE_PORTS.UG+8])
|
||||
|
||||
if isa_from_yau07b.has(Constants.BASE_PORTS.UG+8):
|
||||
Network.write_port_isa(Constants.BASE_PORTS.UG+8, set_bits(isa_from_yau07b[Constants.BASE_PORTS.UG+8], item_from_att_1 << 3, 0x38))
|
||||
Network.read_port_isa([Constants.BASE_PORTS.UG+8])
|
||||
else:
|
||||
print_debug('В ISA отсутствует данные в \"%x\" порту' % (Constants.BASE_PORTS.UG+0x8))
|
||||
|
||||
func _on_read_isa_pressed() -> void:
|
||||
Network.read_port_isa([Constants.BASE_PORTS.EMS_G+2, Constants.BASE_PORTS.EMS_G+4, Constants.BASE_PORTS.EMS_G+8])
|
||||
|
||||
@@ -186,9 +186,9 @@ const SIGNS_PRD: Array = [
|
||||
]
|
||||
var NODE_MAP = {
|
||||
'TabContainer/PRD/body_grid/litera_2_4_6/yau_07b/Zapret': 0,
|
||||
'TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/Zapret2': 1,
|
||||
'TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/Zapret2': 1,
|
||||
'TabContainer/PRD/body_grid/litera_2_4_6/yau_07b/LABEL': 3,
|
||||
'TabContainer/PRD/body_grid/litera_3_5_7_1/yau_07b/LABEL2': 4,
|
||||
'TabContainer/PRD/body_grid/litera_3_5_7/yau_07b/LABEL2': 4,
|
||||
'TabContainer/ControlPanel/Signal_EMS_G/ref_A22': 5,
|
||||
'TabContainer/ControlPanel/Signal_EMS_G/ref_A23': 6,
|
||||
'TabContainer/ControlPanel/Signal_EMS_G/ref_A26': 7,
|
||||
|
||||
Reference in New Issue
Block a user