Рефактор. Режим "Работа". Группы элементов объединены в сцены.

This commit is contained in:
sasha80
2023-09-29 14:16:14 +03:00
parent aeaedc6256
commit ea8c68fa9e
12 changed files with 355 additions and 295 deletions

View File

@@ -196,11 +196,11 @@ func message(level: int, text: String) -> void:
msg["level"] = level
msg["level_name"] = _names[level]
msg["text"] = " " + text
_msg_array.append(msg)
if (_flt_msg(msg)):
logged.emit(msg)
if _file_write_enabled:
_file.store_line(format_file(msg))
@@ -228,8 +228,8 @@ func _open_file() -> void:
return print_debug(error_string(err))
var read = _file.get_as_text()
_file.seek_end(0)
func _close_file() -> void:
if is_instance_valid(_file) and _file.is_open():
_file = null
@@ -259,8 +259,8 @@ func _flt_msg(msg):
if msg['level_name'] in flt_arr:
return true
return false
func add_msgs():
for msg in _msg_array:
if (_flt_msg(msg)):

24
scenes/btn_scale.tscn Normal file
View File

@@ -0,0 +1,24 @@
[gd_scene load_steps=2 format=3 uid="uid://0uqi1ghf7sma"]
[ext_resource type="Texture2D" uid="uid://c1maea6yhd3k7" path="res://data/кнопка-масштаб.png" id="1_yxc3k"]
[node name="btn_scale" type="TextureButton"]
self_modulate = Color(1, 1, 1, 0.509804)
offset_right = 152.0
offset_bottom = 18.0
tooltip_text = "Измененяет масштаб"
action_mode = 0
texture_normal = ExtResource("1_yxc3k")
ignore_texture_size = true
stretch_mode = 0
metadata/i_scale = 0
metadata/prefix = "Масштаб:"
metadata/scales = [10.0, 20.0, 50.0, 100.0, 250.0]
[node name="lbl" type="Label" parent="."]
layout_mode = 0
offset_top = -18.0
offset_right = 152.0
offset_bottom = 1.0
text = "Масштаб: 200 км"
vertical_alignment = 1

View File

@@ -8,7 +8,7 @@
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_2bft1"]
size = Vector2(1600, 1200)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_47wgr"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_vm0v1"]
resource_local_to_scene = true
shader = ExtResource("4_gb4a1")
shader_parameter/color = Color(1, 1, 1, 0.168627)
@@ -26,6 +26,6 @@ centered = false
script = ExtResource("2_vkwmy")
[node name="строб" parent="." instance=ExtResource("3_uhdvc")]
material = SubResource("ShaderMaterial_47wgr")
material = SubResource("ShaderMaterial_vm0v1")
position = Vector2(560, 560)
scale = Vector2(1100, 1100)

21
scenes/count_all_pad.tscn Normal file
View File

@@ -0,0 +1,21 @@
[gd_scene load_steps=2 format=3 uid="uid://dymo732qc2doa"]
[ext_resource type="FontFile" uid="uid://befva8r034a4v" path="res://data/DSEG7Classic-Regular.ttf" id="1_di0yu"]
[node name="count_all_pad" type="Label"]
self_modulate = Color(0.403922, 0.403922, 0.403922, 1)
offset_right = 33.0
offset_bottom = 23.0
theme_override_fonts/font = ExtResource("1_di0yu")
theme_override_font_sizes/font_size = 20
text = "88"
vertical_alignment = 1
[node name="count_all" type="Label" parent="."]
layout_mode = 0
offset_right = 33.0
offset_bottom = 23.0
theme_override_fonts/font = ExtResource("1_di0yu")
theme_override_font_sizes/font_size = 20
text = "00"
vertical_alignment = 1

View File

@@ -0,0 +1,24 @@
[gd_scene load_steps=2 format=3 uid="uid://bwti82byphl68"]
[ext_resource type="FontFile" uid="uid://befva8r034a4v" path="res://data/DSEG7Classic-Regular.ttf" id="1_1blw4"]
[node name="count_danger_pad" type="Label"]
self_modulate = Color(0.403922, 0.403922, 0.403922, 1)
offset_right = 92.0
offset_bottom = 63.0
theme_override_fonts/font = ExtResource("1_1blw4")
theme_override_font_sizes/font_size = 56
text = "88"
horizontal_alignment = 1
vertical_alignment = 1
[node name="count_danger" type="Label" parent="."]
modulate = Color(0.8, 0.533333, 0.27451, 1)
layout_mode = 0
offset_right = 92.0
offset_bottom = 63.0
theme_override_fonts/font = ExtResource("1_1blw4")
theme_override_font_sizes/font_size = 56
text = "00"
horizontal_alignment = 1
vertical_alignment = 1

View File

@@ -0,0 +1,36 @@
[gd_scene load_steps=3 format=3 uid="uid://b1o10yvgjpb0j"]
[ext_resource type="Texture2D" uid="uid://cs6i1xwx0pmdk" path="res://data/рамка-панели.png" id="1_wpofl"]
[ext_resource type="Script" path="res://table/table.gd" id="2_0mbgy"]
[node name="frm_ecm_params" type="NinePatchRect"]
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource("1_wpofl")
patch_margin_left = 15
patch_margin_top = 30
patch_margin_right = 15
patch_margin_bottom = 10
[node name="header" type="Label" parent="."]
clip_contents = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 22.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Параметры сеанса"
horizontal_alignment = 1
vertical_alignment = 1
[node name="scroll" type="ScrollContainer" parent="."]
layout_mode = 0
offset_left = 4.0
offset_top = 51.0
offset_right = 476.0
offset_bottom = 282.0
[node name="table" type="GridContainer" parent="scroll"]
layout_mode = 2
script = ExtResource("2_0mbgy")

38
scenes/frm_params.tscn Normal file
View File

@@ -0,0 +1,38 @@
[gd_scene load_steps=4 format=3 uid="uid://t54wukutvmjq"]
[ext_resource type="Texture2D" uid="uid://cs6i1xwx0pmdk" path="res://data/рамка-панели.png" id="1_3vj3c"]
[ext_resource type="Script" path="res://scenes/scroll-params.gd" id="2_go6hj"]
[ext_resource type="Script" path="res://table/table.gd" id="3_07em2"]
[node name="frm_params" type="NinePatchRect"]
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource("1_3vj3c")
patch_margin_left = 15
patch_margin_top = 30
patch_margin_right = 15
patch_margin_bottom = 10
[node name="header" type="Label" parent="."]
clip_contents = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 22.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Параметры цели"
horizontal_alignment = 1
vertical_alignment = 1
[node name="scroll" type="ScrollContainer" parent="."]
layout_mode = 0
offset_left = 4.0
offset_top = 27.0
offset_right = 476.0
offset_bottom = 282.0
script = ExtResource("2_go6hj")
[node name="table" type="GridContainer" parent="scroll"]
layout_mode = 2
script = ExtResource("3_07em2")

39
scenes/frm_threats.tscn Normal file
View File

@@ -0,0 +1,39 @@
[gd_scene load_steps=4 format=3 uid="uid://bsd67ktk8xp5a"]
[ext_resource type="Texture2D" uid="uid://cs6i1xwx0pmdk" path="res://data/рамка-панели.png" id="1_sbj4k"]
[ext_resource type="Script" path="res://scenes/scroll-threats.gd" id="2_7amn7"]
[ext_resource type="Script" path="res://table/table.gd" id="3_u1k3o"]
[node name="frm_threats" type="NinePatchRect"]
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource("1_sbj4k")
patch_margin_left = 15
patch_margin_top = 30
patch_margin_right = 15
patch_margin_bottom = 10
[node name="header" type="Label" parent="."]
clip_contents = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 22.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Список целей"
horizontal_alignment = 1
vertical_alignment = 1
[node name="scroll" type="ScrollContainer" parent="."]
layout_mode = 0
offset_left = 4.0
offset_top = 51.0
offset_right = 476.0
offset_bottom = 282.0
script = ExtResource("2_7amn7")
[node name="table" type="GridContainer" parent="scroll"]
layout_mode = 2
columns = 4
script = ExtResource("3_u1k3o")

107
scenes/grd_btns.tscn Normal file
View File

@@ -0,0 +1,107 @@
[gd_scene load_steps=2 format=3 uid="uid://cnkbk53mi7viu"]
[ext_resource type="PackedScene" uid="uid://da7w3vkhadfwe" path="res://scenes/button-flat.tscn" id="1_ufj4t"]
[node name="grd_btns" type="GridContainer"]
offset_right = 1096.0
offset_bottom = 54.0
columns = 14
[node name="btn_off" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Откл."
pressed = true
metadata/rfi_name = "<off>"
[node name="btn_auto_rfi" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Автомат"
metadata/rfi_name = "<auto>"
[node name="btn_p12" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "МЧМ-1"
metadata/rfi_name = "mchm1"
[node name="btn_p16" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "СРН-И1"
metadata/rfi_name = "srni1"
[node name="btn_p15" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "СРН-М2"
metadata/rfi_name = "srnm2"
[node name="btn_p14" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ПД-М4"
metadata/rfi_name = "pdm4"
[node name="btn_p13" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ПД-М2"
metadata/rfi_name = "pdm2"
[node name="btn_p11" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ЛЧМ-1"
metadata/rfi_name = "lchm1"
[node name="btn_p10" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ПД-М4С"
metadata/rfi_name = "pdm4s"
[node name="btn_p9" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ПД-ЧМ"
metadata/rfi_name = "pdchm"
[node name="btn_p8" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "СВ-И1"
metadata/rfi_name = "svi1"
[node name="btn_p7" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "K1"
metadata/rfi_name = "k1"
[node name="btn_p6" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "СВ-М2"
metadata/rfi_name = "svm2"
[node name="btn_p5" parent="." groups=["группа-режим-помехи"] instance=ExtResource("1_ufj4t")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ОЗП-1"
metadata/rfi_name = "ozp1"

24
scenes/grd_side.tscn Normal file
View File

@@ -0,0 +1,24 @@
[gd_scene load_steps=5 format=3 uid="uid://dem3fcec25awh"]
[ext_resource type="PackedScene" uid="uid://bsd67ktk8xp5a" path="res://scenes/frm_threats.tscn" id="1_fxbx3"]
[ext_resource type="PackedScene" uid="uid://t54wukutvmjq" path="res://scenes/frm_params.tscn" id="2_2jld7"]
[ext_resource type="PackedScene" uid="uid://7rvw671tlx2i" path="res://scenes/frm_ecm_list.tscn" id="3_lrpuw"]
[ext_resource type="PackedScene" uid="uid://b1o10yvgjpb0j" path="res://scenes/frm_ecm_params.tscn" id="4_tqj2i"]
[node name="grd_side" type="GridContainer"]
offset_left = 1112.0
offset_top = 6.0
offset_right = 1592.0
offset_bottom = 1169.0
[node name="frm_threats" parent="." instance=ExtResource("1_fxbx3")]
layout_mode = 2
[node name="frm_params" parent="." instance=ExtResource("2_2jld7")]
layout_mode = 2
[node name="frm_ecm_list" parent="." instance=ExtResource("3_lrpuw")]
layout_mode = 2
[node name="frm_ecm_params" parent="." instance=ExtResource("4_tqj2i")]
layout_mode = 2

View File

@@ -46,8 +46,8 @@ text = "Очистить"
[node name="dlg_file" type="FileDialog" parent="."]
gui_embed_subwindows = true
initial_position = 2
title = "Сохранить журнал работы в файл"
initial_position = 2
size = Vector2i(900, 900)
borderless = true
ok_button_text = "Да"

View File

@@ -1,16 +1,14 @@
[gd_scene load_steps=12 format=3 uid="uid://b276iygic5itk"]
[gd_scene load_steps=10 format=3 uid="uid://b276iygic5itk"]
[ext_resource type="Script" path="res://scenes/работа.gd" id="1_vmjjl"]
[ext_resource type="PackedScene" uid="uid://nl1vklubr5kr" path="res://scenes/bip.tscn" id="2_ew6j4"]
[ext_resource type="Texture2D" uid="uid://cs6i1xwx0pmdk" path="res://data/рамка-панели.png" id="3_38cyn"]
[ext_resource type="Script" path="res://scenes/scroll-threats.gd" id="4_6pit6"]
[ext_resource type="Script" path="res://table/table.gd" id="5_0lwxu"]
[ext_resource type="Script" path="res://scenes/scroll-params.gd" id="6_v4chn"]
[ext_resource type="PackedScene" uid="uid://7rvw671tlx2i" path="res://scenes/frm_ecm_list.tscn" id="7_gotr4"]
[ext_resource type="PackedScene" uid="uid://dem3fcec25awh" path="res://scenes/grd_side.tscn" id="3_7lxgd"]
[ext_resource type="PackedScene" uid="uid://cnkbk53mi7viu" path="res://scenes/grd_btns.tscn" id="5_0a5o3"]
[ext_resource type="PackedScene" uid="uid://dymo732qc2doa" path="res://scenes/count_all_pad.tscn" id="6_l7wyl"]
[ext_resource type="PackedScene" uid="uid://bwti82byphl68" path="res://scenes/count_danger_pad.tscn" id="7_f41cy"]
[ext_resource type="PackedScene" uid="uid://b5kjdyxuwsot5" path="res://scenes/canvas.tscn" id="7_pvt8f"]
[ext_resource type="PackedScene" uid="uid://da7w3vkhadfwe" path="res://scenes/button-flat.tscn" id="8_r2k1p"]
[ext_resource type="FontFile" uid="uid://befva8r034a4v" path="res://data/DSEG7Classic-Regular.ttf" id="9_lr4kl"]
[ext_resource type="Texture2D" uid="uid://c1maea6yhd3k7" path="res://data/кнопка-масштаб.png" id="10_7gljt"]
[ext_resource type="PackedScene" uid="uid://0uqi1ghf7sma" path="res://scenes/btn_scale.tscn" id="8_xddop"]
[node name="Работа" type="Panel"]
script = ExtResource("1_vmjjl")
@@ -31,276 +29,43 @@ strob_min_width = 5.0
metadata/_edit_vertical_guides_ = []
metadata/_edit_lock_ = true
[node name="grd_side" type="GridContainer" parent="."]
layout_mode = 1
offset_left = 1112.0
offset_top = 6.0
offset_right = 1592.0
offset_bottom = 1169.0
[node name="frm_threats" type="NinePatchRect" parent="grd_side"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource("3_38cyn")
patch_margin_left = 15
patch_margin_top = 30
patch_margin_right = 15
patch_margin_bottom = 10
[node name="header" type="Label" parent="grd_side/frm_threats"]
clip_contents = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 22.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Список целей"
horizontal_alignment = 1
vertical_alignment = 1
[node name="scroll" type="ScrollContainer" parent="grd_side/frm_threats"]
[node name="grd_side" parent="." instance=ExtResource("3_7lxgd")]
layout_mode = 0
offset_left = 4.0
offset_top = 51.0
offset_right = 476.0
offset_bottom = 282.0
script = ExtResource("4_6pit6")
[node name="table" type="GridContainer" parent="grd_side/frm_threats/scroll"]
layout_mode = 2
columns = 4
script = ExtResource("5_0lwxu")
[node name="frm_params" type="NinePatchRect" parent="grd_side"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource("3_38cyn")
patch_margin_left = 15
patch_margin_top = 30
patch_margin_right = 15
patch_margin_bottom = 10
[node name="header" type="Label" parent="grd_side/frm_params"]
clip_contents = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 22.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Параметры цели"
horizontal_alignment = 1
vertical_alignment = 1
[node name="scroll" type="ScrollContainer" parent="grd_side/frm_params"]
layout_mode = 0
offset_left = 4.0
offset_top = 27.0
offset_right = 476.0
offset_bottom = 282.0
script = ExtResource("6_v4chn")
[node name="table" type="GridContainer" parent="grd_side/frm_params/scroll"]
layout_mode = 2
script = ExtResource("5_0lwxu")
[node name="frm_ecm_list" parent="grd_side" instance=ExtResource("7_gotr4")]
layout_mode = 2
[node name="frm_ecm_params" type="NinePatchRect" parent="grd_side"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource("3_38cyn")
patch_margin_left = 15
patch_margin_top = 30
patch_margin_right = 15
patch_margin_bottom = 10
[node name="header" type="Label" parent="grd_side/frm_ecm_params"]
clip_contents = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 22.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Параметры сеанса"
horizontal_alignment = 1
vertical_alignment = 1
[node name="scroll" type="ScrollContainer" parent="grd_side/frm_ecm_params"]
layout_mode = 0
offset_left = 4.0
offset_top = 51.0
offset_right = 476.0
offset_bottom = 282.0
[node name="table" type="GridContainer" parent="grd_side/frm_ecm_params/scroll"]
layout_mode = 2
script = ExtResource("5_0lwxu")
offset_left = 1114.0
offset_top = 7.0
offset_right = 1594.0
offset_bottom = 1170.0
[node name="canvas" parent="." instance=ExtResource("7_pvt8f")]
metadata/_edit_lock_ = true
[node name="grd_btns" type="GridContainer" parent="."]
[node name="grd_btns" parent="." instance=ExtResource("5_0a5o3")]
layout_mode = 0
offset_left = 8.0
offset_left = 10.0
offset_top = 1116.0
offset_right = 1104.0
offset_right = 1106.0
offset_bottom = 1170.0
columns = 14
[node name="btn_off" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Откл."
pressed = true
metadata/rfi_name = "<off>"
[node name="btn_auto_rfi" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Автомат"
metadata/rfi_name = "<auto>"
[node name="btn_p12" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "МЧМ-1"
metadata/rfi_name = "mchm1"
[node name="btn_p16" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "СРН-И1"
metadata/rfi_name = "srni1"
[node name="btn_p15" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "СРН-М2"
metadata/rfi_name = "srnm2"
[node name="btn_p14" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ПД-М4"
metadata/rfi_name = "pdm4"
[node name="btn_p13" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ПД-М2"
metadata/rfi_name = "pdm2"
[node name="btn_p11" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ЛЧМ-1"
metadata/rfi_name = "lchm1"
[node name="btn_p10" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ПД-М4С"
metadata/rfi_name = "pdm4s"
[node name="btn_p9" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ПД-ЧМ"
metadata/rfi_name = "pdchm"
[node name="btn_p8" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "СВ-И1"
metadata/rfi_name = "svi1"
[node name="btn_p7" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "K1"
metadata/rfi_name = "k1"
[node name="btn_p6" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "СВ-М2"
metadata/rfi_name = "svm2"
[node name="btn_p5" parent="grd_btns" groups=["группа-режим-помехи"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "ОЗП-1"
metadata/rfi_name = "ozp1"
[node name="count_all_pad" type="Label" parent="."]
self_modulate = Color(0.403922, 0.403922, 0.403922, 1)
[node name="count_all_pad" parent="." instance=ExtResource("6_l7wyl")]
layout_mode = 0
offset_left = 96.0
offset_top = 109.0
offset_right = 164.0
offset_bottom = 142.0
theme_override_fonts/font = ExtResource("9_lr4kl")
theme_override_font_sizes/font_size = 20
text = "88"
vertical_alignment = 1
offset_left = 100.0
offset_top = 117.0
offset_right = 133.0
offset_bottom = 140.0
[node name="count_all" type="Label" parent="count_all_pad"]
layout_mode = 0
offset_right = 68.0
offset_bottom = 33.0
theme_override_fonts/font = ExtResource("9_lr4kl")
theme_override_font_sizes/font_size = 20
text = "00"
vertical_alignment = 1
[node name="count_danger_pad" type="Label" parent="."]
self_modulate = Color(0.403922, 0.403922, 0.403922, 1)
[node name="count_danger_pad" parent="." instance=ExtResource("7_f41cy")]
layout_mode = 0
offset_left = 96.0
offset_top = 29.0
offset_right = 188.0
offset_bottom = 88.0
theme_override_fonts/font = ExtResource("9_lr4kl")
theme_override_font_sizes/font_size = 56
text = "88"
[node name="count_danger" type="Label" parent="count_danger_pad"]
modulate = Color(0.8, 0.533333, 0.27451, 1)
layout_mode = 0
offset_right = 92.0
offset_bottom = 59.0
theme_override_fonts/font = ExtResource("9_lr4kl")
theme_override_font_sizes/font_size = 56
text = "00"
offset_bottom = 92.0
[node name="Label2" type="Label" parent="."]
layout_mode = 0
offset_left = 18.0
offset_top = 6.0
offset_right = 153.0
offset_bottom = 34.0
text = "Цели"
offset_right = 146.0
offset_bottom = 23.0
text = "Счётчики целей"
vertical_alignment = 1
[node name="Label3" type="Label" parent="."]
@@ -322,20 +87,20 @@ text = "Опасных:"
[node name="btn_auto_threat" parent="." instance=ExtResource("8_r2k1p")]
layout_mode = 0
offset_left = 1022.0
offset_top = 6.0
offset_right = 1096.0
offset_bottom = 60.0
offset_left = 1034.0
offset_top = 7.0
offset_right = 1108.0
offset_bottom = 61.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Автомат"
[node name="btn_strob" parent="." instance=ExtResource("8_r2k1p")]
layout_mode = 2
offset_left = 1022.0
offset_top = 66.0
offset_right = 1096.0
offset_bottom = 120.0
offset_left = 1034.0
offset_top = 67.0
offset_right = 1108.0
offset_bottom = 121.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "Кнопка для выбора сектора при помощи клика мышкой"
@@ -351,30 +116,12 @@ size_flags_horizontal = 3
size_flags_vertical = 3
text = "Вид"
[node name="btn_scale" type="TextureButton" parent="."]
self_modulate = Color(1, 1, 1, 0.509804)
[node name="btn_scale" parent="." instance=ExtResource("8_xddop")]
layout_mode = 0
offset_left = 952.0
offset_top = 1038.0
offset_right = 1104.0
offset_bottom = 1056.0
tooltip_text = "Измененяет масштаб"
action_mode = 0
texture_normal = ExtResource("10_7gljt")
ignore_texture_size = true
stretch_mode = 0
metadata/i_scale = 0
metadata/prefix = "Масштаб:"
metadata/scales = [10.0, 20.0, 50.0, 100.0, 250.0]
[node name="lbl" type="Label" parent="btn_scale"]
layout_mode = 0
offset_top = -18.0
offset_right = 152.0
offset_bottom = 1.0
text = "Масштаб: 200 км"
vertical_alignment = 1
[connection signal="drag_begin" from="." to="." method="_on_drag_begin"]
[connection signal="drag_continue" from="." to="." method="_on_drag_continue"]
[connection signal="pressed" from="btn_scale" to="." method="_on_btn_scale_pressed"]