Рефактор.

This commit is contained in:
sasha80
2023-09-29 11:28:40 +03:00
parent 06f8fd2eaf
commit ffd9ada73b
3 changed files with 84 additions and 74 deletions

View File

@@ -8,7 +8,7 @@
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_2bft1"]
size = Vector2(1600, 1200)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_pnsbm"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_47wgr"]
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_pnsbm")
material = SubResource("ShaderMaterial_47wgr")
position = Vector2(560, 560)
scale = Vector2(1100, 1100)

79
scenes/frm_ecm_list.tscn Normal file
View File

@@ -0,0 +1,79 @@
[gd_scene load_steps=4 format=3 uid="uid://7rvw671tlx2i"]
[ext_resource type="Texture2D" uid="uid://cs6i1xwx0pmdk" path="res://data/рамка-панели.png" id="1_rrqe5"]
[ext_resource type="Script" path="res://table/table.gd" id="2_jufhc"]
[ext_resource type="PackedScene" uid="uid://da7w3vkhadfwe" path="res://scenes/button-flat.tscn" id="3_o3p72"]
[node name="frm_ecm_list" type="NinePatchRect"]
offset_right = 480.0
offset_bottom = 288.0
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource("1_rrqe5")
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 = 8.0
offset_top = 57.0
offset_right = 472.0
offset_bottom = 237.0
[node name="table" type="GridContainer" parent="scroll"]
layout_mode = 2
script = ExtResource("2_jufhc")
[node name="grd_forced" type="GridContainer" parent="."]
layout_mode = 0
offset_left = 8.0
offset_top = 245.0
offset_right = 472.0
offset_bottom = 281.0
columns = 4
[node name="btn_srn" parent="grd_forced" groups=["группа-принудительно"] instance=ExtResource("3_o3p72")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "Включает принудительную помеху"
text = "СРН"
metadata/rfi_name = "ozp1"
[node name="btn_jtids" parent="grd_forced" groups=["группа-принудительно"] instance=ExtResource("3_o3p72")]
editor_description = "Кнопка для принудительного включения группы секторов в режим JTIDS"
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "JTIDS"
metadata/rfi_name = "ozp1"
[node name="btn_kupd" parent="grd_forced" groups=["группа-принудительно"] instance=ExtResource("3_o3p72")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "Кнопка для принудительного включения группы секторов в режим КУПД"
text = "КУПД"
metadata/rfi_name = "ozp1"
[node name="btn_cancel" parent="grd_forced" groups=["прин-секторы-срн"] instance=ExtResource("3_o3p72")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Отключить все"
pressed = true
metadata/rfi_name = "<off>"

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=3 uid="uid://b276iygic5itk"]
[gd_scene load_steps=12 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"]
@@ -6,6 +6,7 @@
[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://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"]
@@ -106,78 +107,8 @@ script = ExtResource("6_v4chn")
layout_mode = 2
script = ExtResource("5_0lwxu")
[node name="frm_ecm_list" type="NinePatchRect" parent="grd_side"]
[node name="frm_ecm_list" parent="grd_side" instance=ExtResource("7_gotr4")]
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_list"]
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_list"]
layout_mode = 0
offset_left = 8.0
offset_top = 57.0
offset_right = 472.0
offset_bottom = 237.0
[node name="table" type="GridContainer" parent="grd_side/frm_ecm_list/scroll"]
layout_mode = 2
script = ExtResource("5_0lwxu")
[node name="grd_forced" type="GridContainer" parent="grd_side/frm_ecm_list"]
layout_mode = 0
offset_left = 8.0
offset_top = 245.0
offset_right = 472.0
offset_bottom = 281.0
columns = 4
[node name="btn_srn" parent="grd_side/frm_ecm_list/grd_forced" groups=["группа-принудительно"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "Включает принудительную помеху"
text = "СРН"
metadata/rfi_name = "ozp1"
[node name="btn_jtids" parent="grd_side/frm_ecm_list/grd_forced" groups=["группа-принудительно"] instance=ExtResource("8_r2k1p")]
editor_description = "Кнопка для принудительного включения группы секторов в режим JTIDS"
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "JTIDS"
metadata/rfi_name = "ozp1"
[node name="btn_kupd" parent="grd_side/frm_ecm_list/grd_forced" groups=["группа-принудительно"] instance=ExtResource("8_r2k1p")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "Кнопка для принудительного включения группы секторов в режим КУПД"
text = "КУПД"
metadata/rfi_name = "ozp1"
[node name="btn_cancel" parent="grd_side/frm_ecm_list/grd_forced" 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="frm_ecm_params" type="NinePatchRect" parent="grd_side"]
layout_mode = 2