Динамическое изменение цвета схемы Э2. Изменение значков в ЭМС ТГ и Контроль

This commit is contained in:
lepshiy
2025-12-24 11:17:05 +03:00
parent 7e3f1bfb81
commit 8d3b80cf4c
26 changed files with 1437 additions and 604 deletions

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cwfdur4we51wo"
path="res://.godot/imported/2разъединение.png-a5736ca86ce553a4d764d6fc09130f8a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/2разъединение.png"
dest_files=["res://.godot/imported/2разъединение.png-a5736ca86ce553a4d764d6fc09130f8a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bajrbvv7twq7m"
path="res://.godot/imported/2соединение.png-b014241f07700023165f09936094354c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/2соединение.png"
dest_files=["res://.godot/imported/2соединение.png-b014241f07700023165f09936094354c.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c73tjrn8gr00o"
path="res://.godot/imported/Передатчик.png-a9919ed2f6d748be55f63a536bcda2ff.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/Передатчик.png"
dest_files=["res://.godot/imported/Передатчик.png-a9919ed2f6d748be55f63a536bcda2ff.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
data/Приёмник.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c6etralq2tvxg"
path="res://.godot/imported/Приёмник.png-37dec39ffb59b71e3909414fe8f5fd1e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/Приёмник.png"
dest_files=["res://.godot/imported/Приёмник.png-37dec39ffb59b71e3909414fe8f5fd1e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://6ar7sux3vcv1"
path="res://.godot/imported/Состояние РЭС 2.png-7acd4e8d9bd67ea07a3eadee4b22c22d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/Состояние РЭС 2.png"
dest_files=["res://.godot/imported/Состояние РЭС 2.png-7acd4e8d9bd67ea07a3eadee4b22c22d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b85f1ne2wrwhg"
path="res://.godot/imported/Состояние РЭС 4.png-d46f69e8c351fe747cf68bce4af4b8eb.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/Состояние РЭС 4.png"
dest_files=["res://.godot/imported/Состояние РЭС 4.png-d46f69e8c351fe747cf68bce4af4b8eb.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://docnrxrm2f022"
path="res://.godot/imported/Угловой квадрат3.png-7973b0c96861e98d72e8e1ea32d59204.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/Угловой квадрат3.png"
dest_files=["res://.godot/imported/Угловой квадрат3.png-7973b0c96861e98d72e8e1ea32d59204.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0wa068b6gl1y"
path="res://.godot/imported/разъединение.png-285b8ee2e2b500484829beae0ee4e16b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/разъединение.png"
dest_files=["res://.godot/imported/разъединение.png-285b8ee2e2b500484829beae0ee4e16b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
data/связь.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://blx6c1o1nogks"
path="res://.godot/imported/связь.png-dc3eae4c11f71101d4ba94487cecfaaa.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/связь.png"
dest_files=["res://.godot/imported/связь.png-dc3eae4c11f71101d4ba94487cecfaaa.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bf1e2xlk3x1aw"
path="res://.godot/imported/соединение.png-aac09e55b0c5d57ef3c31c34daaf336b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/соединение.png"
dest_files=["res://.godot/imported/соединение.png-aac09e55b0c5d57ef3c31c34daaf336b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -38,6 +38,64 @@ config/settings_path="user://settings.json"
config/unit_bpo_request_period=20.0
interfer/emit_color=Color(0.9, 0.1, 0.25, 0.5)
interfer/closed_sectors=Color(0, 0, 0, 1)
"config/Адрес АФСП левого борта"=""
"config/Адрес АФСП правого борта"=""
"config/Адрес БПО левого борта"=""
"config/Адрес БПО правого борта"=""
"config/Виртуальная клавиатура"=false
"config/Включить работу по своим целям"=true
"config/Внешнее указание Трасса"=false
"config/Внешнее управление"=false
"config/Кнопка «JTIDS»"=false
"config/Кнопка «К1»"=false
"config/Кнопка «КУПД»"=false
"config/Кнопка «ЛЧМ-1»"=false
"config/Кнопка «МЧМ-1»"=false
"config/Кнопка «ОЗП-1»"=false
"config/Кнопка «ОРН-И1»"=false
"config/Кнопка «ОРН-М2»"=false
"config/Кнопка «ОРН»"=false
"config/Кнопка «ПД-М2»"=false
"config/Кнопка «ПД-М4»"=false
"config/Кнопка «ПД-М4С»"=false
"config/Кнопка «ПД-ЧМ»"=false
"config/Кнопка «Подавление»"=false
"config/Кнопка «СВ-И1»"=false
"config/Кнопка «СВ-М2»"=false
"config/Ограниченный режим"=false
"config/Отладка контроля"=false
"config/Период опроса состояния АФСП, секунды"=""
"config/Период опроса состояния БПО, секунды"=""
"config/Скрыть вкладку ЭМС 2"=true
"config/Список своих протоколов"=""
"config/Текущая версия ПО УАРЭП"="master 3bff1cd Tue Nov 4 15:33:24 2025 +0300"
"config/Цвет кнопки \"Подавление\""="[0.972549021244049,0.0117647061124444,0.423529416322708,1.0]"
"config/Цвет схемы"="[0.972549021244049,0.0117647061124444,0.0274509806185961,1.0]"
"config/Цвет фона схемы"="[0.0941176488995552,0.149019613862038,1.0,1.0]"
"config/Шаблон адреса сервера карт"="https://tile.openstreetmap.org/{z}/{x}/{y}.png"
"config/навигация"=["*", 60000, true, true]
"config/уарэп-5п28"=["127.0.0.1", 50777]
"config/уарэп-капсрпб"=["127.0.0.1", "127.0.0.1", 42023, 42022, false, true]
"config/уарэп-спт25-1"=["/home/user/tty0", 0, 19200, "N", 8, 1]
"config/уарэп-спт25-2"=["/home/user/tty1", 0, 19200, "N", 8, 1]
"config/уарэп-трасса"=["192.168.11.34", "192.168.11.105", 50200, 10004, false, true]
"config/уарэп-щ3"=["/home/user/tty3", 7, 19200, "N", 8, 1, 50000]
"config/уарэп-эмс"=["10.1.1.52", 50052, false, false]
"config/уарэп-яу07-1в"=["10.1.1.12", 50012, false, false]
"config/уарэп-яу07-1к"=["10.1.1.13", 50013, false, false]
"config/уарэп-яу07-1н"=["10.1.1.11", 50011, false, false]
"config/уарэп-яу07-2в"=["10.1.1.22", 50022, false, false]
"config/уарэп-яу07-2к"=["10.1.1.23", 50023, false, false]
"config/уарэп-яу07-2н"=["10.1.1.21", 50021, false, false]
"config/уарэп-яу07-3в"=["10.1.1.32", 50032, false, false]
"config/уарэп-яу07-3к"=["10.1.1.33", 50033, false, false]
"config/уарэп-яу07-3н"=["10.1.1.31", 50031, false, false]
"config/уарэп-яу07-4в"=["10.1.1.42", 50042, false, false]
"config/уарэп-яу07-4к"=["10.1.1.43", 50043, false, false]
"config/уарэп-яу07-4н"=["10.1.1.41", 50041, false, false]
"config/уарэп-яу07-общий"=["*", 50000, true, true]
"config/уарэп-яу07-частный"=["10.1.1.253", 50253, false, true]
config/="[0.215686276555061,0.976470589637756,1.0,1.0]"
[autoload]

View File

@@ -3,5 +3,7 @@ extends AnimatedSprite2D
## Изменяет состояние значка "прибор на связи"
func set_val(val: bool):
set_frame(val)
if val: modulate = Color(0.3, 1.0, 0.3, 1)
else: modulate = Color(0.5, 0.5, 0.5, 1)
if val:
modulate = Color(0.3, 1.0, 0.3, 1)
else:
modulate = Color(0.5, 0.5, 0.5, 1)

View File

@@ -0,0 +1,11 @@
extends PanelContainer
## Изменяет состояние значка "прибор на связи"
func set_val(val: bool):
$connect_pribor.set_frame(val)
if val:
$connect_pribor.modulate = Color(0.3, 1.0, 0.3, 1) # зелёный
set_tooltip_text("Есть связь")
else:
$connect_pribor.modulate = modulate # изначальный
set_tooltip_text("Нет связи")

View File

@@ -0,0 +1 @@
uid://j16hg3u2uvu5

View File

@@ -9,4 +9,4 @@ func _ready() -> void:
func on_line_changed(unit_instance: unit.Unit):
$connect_pribor.set_val(unit_instance.online)
$panel_pribor.set_val(unit_instance.online)

View File

@@ -10,6 +10,8 @@ func _ready():
focus_mode = Control.FOCUS_ALL
connect('focus_entered', _on_focus_entered)
connect('focus_exited', _on_focus_exited)
ProjectSettings.connect("settings_changed", Callable(self, "_on_settings_changed"))
_on_settings_changed()
func _enter_tree() -> void:
@@ -47,8 +49,17 @@ func enter_press():
func _on_settings_changed():
if not is_inside_tree(): return
var white_color = ProjectSettings.get_setting('Схема прибора. Белый цвет', Color.LIGHT_GRAY)
var black_color = ProjectSettings.get_setting('Схема прибора. Чёрный цвет', Color.BLACK)
var white_color = ProjectSettings.get_setting('application/config/%s' % 'Цвет фона схемы', Color.DIM_GRAY)
var json_col_w = ProjectSettings.get_setting('application/config/%s' % 'Цвет фона схемы', '[0.0, 0.0, 0.0, 0.0]')
var arr_col_w = JSON.parse_string(json_col_w)
white_color = Color(arr_col_w[0], arr_col_w[1], arr_col_w[2], arr_col_w[3]) if arr_col_w else Color.DIM_GRAY
var black_color = ProjectSettings.get_setting('application/config/%s' % 'Цвет схемы', Color.WHITE_SMOKE)
var json_col_b = ProjectSettings.get_setting('application/config/%s' % 'Цвет схемы', '[1.0, 1.0, 1.0, 1.0]')
var arr_col_b = JSON.parse_string(json_col_b)
black_color = Color(arr_col_b[0], arr_col_b[1], arr_col_b[2], arr_col_b[3]) if arr_col_b else Color.WHITE_SMOKE
$pic_functional.material.set('shader_parameter/white', white_color)
$pic_functional.material.set('shader_parameter/black', black_color)

View File

@@ -1,16 +1,15 @@
[gd_scene load_steps=33 format=3 uid="uid://lwmw4egynmd1"]
[gd_scene load_steps=34 format=3 uid="uid://lwmw4egynmd1"]
[ext_resource type="Texture2D" uid="uid://bar8k5qef7kch" path="res://data/УФ.png" id="2_0nvm1"]
[ext_resource type="Script" uid="uid://q3gmpsqspjfp" path="res://scenes/контроль/внешний.gd" id="2_8r80x"]
[ext_resource type="Texture2D" uid="uid://bb80aigvv648i" path="res://data/кнопка-внешние-0.png" id="2_oysma"]
[ext_resource type="Script" uid="uid://bj4nndrurbunl" path="res://scenes/контроль/кнопка-прибора.gd" id="3_4pt7j"]
[ext_resource type="Texture2D" uid="uid://blx6c1o1nogks" path="res://data/связь.png" id="3_8tygn"]
[ext_resource type="Texture2D" uid="uid://dkqlvd750pplc" path="res://data/СПТ.png" id="3_hhadv"]
[ext_resource type="Texture2D" uid="uid://b0o8jhb5jbrev" path="res://data/рамка-1.png" id="4_rasbe"]
[ext_resource type="Texture2D" uid="uid://bdlbqs88bki8x" path="res://data/connect-a.png" id="5_c621m"]
[ext_resource type="Texture2D" uid="uid://d2jxmtd6n5jd1" path="res://data/Щ3.png" id="5_kvnex"]
[ext_resource type="Texture2D" uid="uid://bos68thpqqvn" path="res://data/ПРД.png" id="6_i1yfn"]
[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="7_6j01w"]
[ext_resource type="Texture2D" uid="uid://u3tnejvpm8it" path="res://data/disconnect-a.png" id="8_gs2be"]
[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="8_isjua"]
[ext_resource type="Shader" uid="uid://83fx15q1xlid" path="res://shaders/two-color.gdshader" id="9_71ec4"]
[ext_resource type="Texture2D" uid="uid://b4isaggma6q3" path="res://data/Грани22.png" id="9_iqgf5"]
@@ -25,6 +24,7 @@
[ext_resource type="Texture2D" uid="uid://c3cyog3gy24ft" path="res://data/У-ЭП.png" id="16_gjf0t"]
[ext_resource type="Script" uid="uid://xjs7owe2iexn" path="res://scenes/контроль/control_prd.gd" id="18_lbx5w"]
[ext_resource type="Texture2D" uid="uid://b2vf7en1jj8dv" path="res://data/У-РЭП-РПД-В.png" id="20_l5wui"]
[ext_resource type="Script" uid="uid://j16hg3u2uvu5" path="res://scenes/контроль/panel_container.gd" id="21_l5wui"]
[ext_resource type="Texture2D" uid="uid://cllxcfa130vqu" path="res://data/УА-РЭП.png" id="22_1s34a"]
[sub_resource type="GDScript" id="GDScript_iqgf5"]
@@ -88,7 +88,7 @@ func _ready():
var header_text = PRIBORS_RES[k][1]
pribor_node.set_button_group(group)
pribor_node.connect('button_down', Callable(self, 'on_pribor_press').bind(pribor_path, header_text, pribor_node))
var conn_node = pribor_node.get_node('connect_pribor')
var conn_node = pribor_node.get_node('panel_pribor')
var unit_names = pribor_node.get_meta('unit_name', [])
var pribor_proc = pribor_node.get_meta('online_proc', '')
if pribor_proc == '':
@@ -114,7 +114,7 @@ func _ready():
for pribor_node in get_tree().get_nodes_in_group('pribor_pics'):
var unit_name = pribor_node.get_meta('unit_name')
var unit_instance: = network.get_unit_instance(unit_name)
var conn_node: = pribor_node.get_node('connect_pribor')
var conn_node: = pribor_node.get_node('panel_pribor')
unit_instance.connect('line_changed', on_line_changed.bind(conn_node, unit_name))
@@ -255,14 +255,17 @@ func _on_gui_input(event: InputEvent) -> void:
$frame_button/chk_show_functional.disabled = true
"
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4plr2"]
bg_color = Color(0.176471, 0.176471, 0.176471, 0)
[sub_resource type="SpriteFrames" id="SpriteFrames_foasq"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("8_gs2be")
"texture": ExtResource("3_8tygn")
}, {
"duration": 1.0,
"texture": ExtResource("5_c621m")
"texture": ExtResource("3_8tygn")
}],
"loop": true,
"name": &"default",
@@ -271,8 +274,8 @@ animations = [{
[sub_resource type="ShaderMaterial" id="ShaderMaterial_71ec4"]
shader = ExtResource("9_71ec4")
shader_parameter/white = Vector3(0, 0, 0)
shader_parameter/black = Vector3(1, 1, 1)
shader_parameter/white = Vector3(0.14, 0.13, 0.13)
shader_parameter/black = Vector3(0.95, 0.55, 0.05)
shader_parameter/gamma = 2.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6hcgs"]
@@ -336,12 +339,24 @@ text = "КАПС РПБ"
horizontal_alignment = 1
vertical_alignment = 1
[node name="connect_pribor" type="AnimatedSprite2D" parent="capsrpb"]
[node name="panel_pribor" type="PanelContainer" parent="capsrpb"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 16.0
offset_top = -36.0
offset_right = 107.0
offset_bottom = 55.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="capsrpb/panel_pribor"]
light_mask = 3
position = Vector2(56, -4)
scale = Vector2(2.6, 2.6)
position = Vector2(45.7142, 45.7143)
scale = Vector2(2.113, 2.1)
sprite_frames = SubResource("SpriteFrames_foasq")
script = ExtResource("11_u7tym")
frame_progress = 0.72355
[node name="5p28" type="TextureRect" parent="." groups=["pribor_pics"]]
editor_description = "Кнопка для отображения внешних соединений."
@@ -370,13 +385,24 @@ text = "5П28"
horizontal_alignment = 1
vertical_alignment = 1
[node name="connect_pribor" type="AnimatedSprite2D" parent="5p28"]
[node name="panel_pribor" type="PanelContainer" parent="5p28"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 16.0
offset_top = -36.0
offset_right = 107.0
offset_bottom = 55.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="5p28/panel_pribor"]
light_mask = 3
position = Vector2(52, -4)
scale = Vector2(2.6, 2.6)
position = Vector2(45.7142, 45.7143)
scale = Vector2(2.113, 2.1)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="akng" type="TextureRect" parent="." groups=["pribor_pics"]]
editor_description = "Кнопка для отображения внешних соединений."
@@ -405,13 +431,24 @@ text = "АКНГ"
horizontal_alignment = 1
vertical_alignment = 1
[node name="connect_pribor" type="AnimatedSprite2D" parent="akng"]
[node name="panel_pribor" type="PanelContainer" parent="akng"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 16.0
offset_top = -36.0
offset_right = 107.0
offset_bottom = 55.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="akng/panel_pribor"]
light_mask = 3
position = Vector2(47.9999, -4)
scale = Vector2(2.6, 2.6)
position = Vector2(45.7142, 45.7143)
scale = Vector2(2.113, 2.1)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="maps" type="TextureRect" parent="." groups=["pribor_pics"]]
editor_description = "Кнопка для отображения внешних соединений."
@@ -440,13 +477,24 @@ text = "Карты"
horizontal_alignment = 1
vertical_alignment = 1
[node name="connect_pribor" type="AnimatedSprite2D" parent="maps"]
[node name="panel_pribor" type="PanelContainer" parent="maps"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 16.0
offset_top = -36.0
offset_right = 107.0
offset_bottom = 55.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="maps/panel_pribor"]
light_mask = 3
position = Vector2(47.9999, -4)
scale = Vector2(2.6, 2.6)
position = Vector2(45.7142, 45.7143)
scale = Vector2(2.113, 2.1)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="trassa" type="TextureRect" parent="." groups=["pribor_pics"]]
editor_description = "Кнопка для отображения внешних соединений."
@@ -475,13 +523,24 @@ text = "Трасса"
horizontal_alignment = 1
vertical_alignment = 1
[node name="connect_pribor" type="AnimatedSprite2D" parent="trassa"]
[node name="panel_pribor" type="PanelContainer" parent="trassa"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 16.0
offset_top = -36.0
offset_right = 107.0
offset_bottom = 55.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="trassa/panel_pribor"]
light_mask = 3
position = Vector2(47.9999, -4)
scale = Vector2(2.6, 2.6)
position = Vector2(45.7142, 45.7143)
scale = Vector2(2.113, 2.1)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="pribor_prd_n_1" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
@@ -527,14 +586,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_1"]
light_mask = 3
position = Vector2(35, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_n_1"]
visible = false
layout_mode = 0
@@ -570,6 +621,25 @@ offset_bottom = 830.0
scale = Vector2(0.97094, 0.97094)
texture = ExtResource("9_qe1go")
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_n_1"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 27.0
offset_top = -19.0
offset_right = 50.0
offset_bottom = 5.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_1/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_uf" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -613,14 +683,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_uf"]
light_mask = 3
position = Vector2(52, -6)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="pic_functional" type="TextureRect" parent="pribor_uf"]
visible = false
z_index = 1
@@ -656,6 +718,25 @@ texture_progress = ExtResource("10_lbx5w")
tint_under = Color(1, 1, 1, 0.419608)
tint_progress = Color(0.890196, 0.486275, 0.196078, 1)
[node name="panel_pribor" type="PanelContainer" parent="pribor_uf"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 44.0
offset_top = -22.0
offset_right = 67.0
offset_bottom = 2.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_uf/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_rtr" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -710,14 +791,6 @@ text = "РТР"
horizontal_alignment = 1
vertical_alignment = 1
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_rtr"]
light_mask = 3
position = Vector2(53, -15)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="pic_functional" type="TextureRect" parent="pribor_rtr"]
visible = false
z_index = 1
@@ -730,6 +803,25 @@ offset_bottom = 595.0
scale = Vector2(0.792688, 0.792688)
texture = ExtResource("13_32yvq")
[node name="panel_pribor" type="PanelContainer" parent="pribor_rtr"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 44.0
offset_top = -26.0
offset_right = 67.0
offset_bottom = -2.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_rtr/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_afsp_1" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -788,14 +880,6 @@ text = "АФСП 1"
horizontal_alignment = 1
vertical_alignment = 1
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_afsp_1"]
light_mask = 3
position = Vector2(415, -40)
scale = Vector2(3, 3)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="pic_functional" type="TextureRect" parent="pribor_afsp_1"]
visible = false
z_index = 1
@@ -808,6 +892,25 @@ offset_bottom = 93.9999
scale = Vector2(3.96323, 3.96323)
texture = ExtResource("13_32yvq")
[node name="panel_pribor" type="PanelContainer" parent="pribor_afsp_1"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 375.0
offset_top = -105.0
offset_right = 490.0
offset_bottom = 9.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_afsp_1/panel_pribor"]
light_mask = 3
position = Vector2(57.1431, 57.1429)
scale = Vector2(3, 2.981)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_afsp_2" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -867,14 +970,6 @@ text = "АФСП 2"
horizontal_alignment = 1
vertical_alignment = 1
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_afsp_2"]
light_mask = 3
position = Vector2(415, -40)
scale = Vector2(3, 3)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="pic_functional" type="TextureRect" parent="pribor_afsp_2"]
visible = false
z_index = 1
@@ -887,6 +982,25 @@ offset_bottom = 89.0001
scale = Vector2(3.96409, 4.54663)
texture = ExtResource("13_32yvq")
[node name="panel_pribor" type="PanelContainer" parent="pribor_afsp_2"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 375.0
offset_top = -105.0
offset_right = 490.0
offset_bottom = 9.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_afsp_2/panel_pribor"]
light_mask = 3
position = Vector2(57.1431, 57.1429)
scale = Vector2(3, 2.981)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_uyep" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -930,14 +1044,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_uyep"]
light_mask = 3
position = Vector2(45, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.872305
script = ExtResource("11_u7tym")
[node name="pic_functional" type="TextureRect" parent="pribor_uyep"]
visible = false
z_index = 1
@@ -950,6 +1056,25 @@ offset_bottom = 764.0
scale = Vector2(0.736875, 0.814493)
texture = ExtResource("16_gjf0t")
[node name="panel_pribor" type="PanelContainer" parent="pribor_uyep"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 37.0
offset_top = -22.0
offset_right = 60.0
offset_bottom = 2.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_uyep/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_v_2" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -994,14 +1119,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_2"]
light_mask = 3
position = Vector2(37, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_v_2"]
visible = false
layout_mode = 0
@@ -1037,6 +1154,25 @@ offset_bottom = 328.0
scale = Vector2(0.977411, 0.977411)
texture = ExtResource("20_l5wui")
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_v_2"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 29.0
offset_top = -21.0
offset_right = 52.0
offset_bottom = 3.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_2/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_n_2" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -1083,14 +1219,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_2"]
light_mask = 3
position = Vector2(37, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="pic_functional" type="TextureRect" parent="pribor_prd_n_2"]
visible = false
z_index = 1
@@ -1126,6 +1254,25 @@ texture_progress = ExtResource("10_lbx5w")
tint_under = Color(1, 1, 1, 0.419608)
tint_progress = Color(0.890196, 0.486275, 0.196078, 1)
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_n_2"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 29.0
offset_top = -21.0
offset_right = 52.0
offset_bottom = 3.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_2/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_k_2" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -1170,14 +1317,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_2"]
light_mask = 3
position = Vector2(37, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="pic_functional" type="TextureRect" parent="pribor_prd_k_2"]
visible = false
z_index = 1
@@ -1213,6 +1352,25 @@ texture_progress = ExtResource("10_lbx5w")
tint_under = Color(1, 1, 1, 0.419608)
tint_progress = Color(0.890196, 0.486275, 0.196078, 1)
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_k_2"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 29.0
offset_top = -21.0
offset_right = 52.0
offset_bottom = 3.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_2/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_v_3" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -1257,14 +1415,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_3"]
light_mask = 3
position = Vector2(35, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_v_3"]
visible = false
layout_mode = 0
@@ -1300,6 +1450,25 @@ offset_bottom = 207.0
scale = Vector2(0.975409, 0.975409)
texture = ExtResource("20_l5wui")
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_v_3"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 27.0
offset_top = -20.0
offset_right = 50.0
offset_bottom = 4.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_3/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_n_3" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -1344,14 +1513,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_3"]
light_mask = 3
position = Vector2(33, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_n_3"]
visible = false
layout_mode = 0
@@ -1387,6 +1548,25 @@ offset_bottom = 219.0
scale = Vector2(0.969291, 0.969291)
texture = ExtResource("9_qe1go")
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_n_3"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 25.0
offset_top = -21.0
offset_right = 48.0
offset_bottom = 3.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_3/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_k_3" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -1431,14 +1611,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_3"]
light_mask = 3
position = Vector2(35, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_k_3"]
visible = false
layout_mode = 0
@@ -1474,6 +1646,25 @@ offset_bottom = 361.0
scale = Vector2(0.882165, 0.896739)
texture = ExtResource("16_32yvq")
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_k_3"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 27.0
offset_top = -20.0
offset_right = 50.0
offset_bottom = 4.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_3/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_v_1" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -1518,14 +1709,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_1"]
light_mask = 3
position = Vector2(34, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="pic_functional" type="TextureRect" parent="pribor_prd_v_1"]
visible = false
z_index = 1
@@ -1561,6 +1744,24 @@ texture_progress = ExtResource("10_lbx5w")
tint_under = Color(1, 1, 1, 0.419608)
tint_progress = Color(0.890196, 0.486275, 0.196078, 1)
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_v_1"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 26.0
offset_top = -20.0
offset_right = 42.0
offset_bottom = -4.0
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_1/panel_pribor"]
light_mask = 3
position = Vector2(8, 8)
scale = Vector2(0.4, 0.4)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_k_1" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -1605,14 +1806,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_1"]
light_mask = 3
position = Vector2(35, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_k_1"]
visible = false
layout_mode = 0
@@ -1648,6 +1841,25 @@ offset_bottom = 973.0
scale = Vector2(0.883479, 0.883479)
texture = ExtResource("16_32yvq")
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_k_1"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 27.0
offset_top = -21.0
offset_right = 50.0
offset_bottom = 3.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_1/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_v_4" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -1691,14 +1903,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_4"]
light_mask = 3
position = Vector2(41, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_v_4"]
visible = false
layout_mode = 0
@@ -1734,6 +1938,25 @@ offset_bottom = 664.0
scale = Vector2(0.976707, 0.976707)
texture = ExtResource("20_l5wui")
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_v_4"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 33.0
offset_top = -21.0
offset_right = 56.0
offset_bottom = 3.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_v_4/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_n_4" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -1777,14 +2000,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_4"]
light_mask = 3
position = Vector2(40, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_n_4"]
visible = false
layout_mode = 0
@@ -1820,6 +2035,25 @@ offset_bottom = 336.0
scale = Vector2(0.968111, 0.968111)
texture = ExtResource("9_qe1go")
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_n_4"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 32.0
offset_top = -20.0
offset_right = 55.0
offset_bottom = 4.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_n_4/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="pribor_prd_k_4" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
@@ -1863,14 +2097,6 @@ patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_4"]
light_mask = 3
position = Vector2(39, -10)
scale = Vector2(0.625, 0.625)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_k_4"]
visible = false
layout_mode = 0
@@ -1906,6 +2132,25 @@ offset_bottom = 648.0
scale = Vector2(0.879295, 0.879295)
texture = ExtResource("16_32yvq")
[node name="panel_pribor" type="PanelContainer" parent="pribor_prd_k_4"]
custom_minimum_size = Vector2(10, 10)
layout_mode = 0
offset_left = 31.0
offset_top = -20.0
offset_right = 54.0
offset_bottom = 4.0
scale = Vector2(0.7, 0.7)
tooltip_text = "Нет связи"
theme_override_styles/panel = SubResource("StyleBoxFlat_4plr2")
script = ExtResource("21_l5wui")
[node name="connect_pribor" type="AnimatedSprite2D" parent="pribor_prd_k_4/panel_pribor"]
light_mask = 3
position = Vector2(11.4285, 12.8571)
scale = Vector2(0.6, 0.596)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
[node name="txr_legend0" type="TextureRect" parent="."]
layout_mode = 0
offset_left = 316.0
@@ -1998,17 +2243,17 @@ alignment = 1
[node name="connect_legend0" type="AnimatedSprite2D" parent="."]
light_mask = 3
position = Vector2(1219, 1151)
position = Vector2(1312, 1151)
scale = Vector2(0.65, 0.65)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355
script = ExtResource("11_u7tym")
[node name="Label" type="Label" parent="connect_legend0"]
offset_left = 36.9231
offset_top = -15.3846
offset_right = 103.923
offset_bottom = 3.61538
offset_left = 27.6924
offset_top = -16.923
offset_right = 94.6923
offset_bottom = 2.07697
scale = Vector2(1.54, 1.54)
text = "Отключен"
metadata/_edit_use_anchors_ = true
@@ -2016,17 +2261,17 @@ metadata/_edit_use_anchors_ = true
[node name="connect_legend1" type="AnimatedSprite2D" parent="."]
self_modulate = Color(0, 1, 0, 1)
light_mask = 3
position = Vector2(975, 1152)
position = Vector2(1072, 1151)
scale = Vector2(0.65, 0.65)
sprite_frames = SubResource("SpriteFrames_foasq")
frame = 1
script = ExtResource("11_u7tym")
[node name="Label" type="Label" parent="connect_legend1"]
offset_left = 36.9231
offset_top = -13.8462
offset_right = 99.9231
offset_bottom = 5.15385
offset_left = 27.6923
offset_top = -16.9231
offset_right = 90.6923
offset_bottom = 2.0769
scale = Vector2(1.54, 1.54)
text = "На связи"
metadata/_edit_use_anchors_ = true

View File

@@ -63,7 +63,10 @@ const SETTING_TABLE = [
['уарэп-трасса', TableEdit, TableEdit, 'IP-адрес для связи с Трассой [<адрес этого узла>, <адрес удалённого узла>, <порт этого узла>, <порт удалённого узла>]'],
['Включить работу по своим целям', TableEdit, TableToggle, 'Разрешает работу в секторе со своей целью'],
['Список своих протоколов', TableEdit, TableEdit, 'Список протоколов целей, по которым запрещено работать' ],
['Цвет кнопки \"Подавление\"', TableEdit, TableColorPick, 'Цвет кнопки. Введено по требованию ПЗ' ] ]
['Цвет кнопки \"Подавление\"', TableEdit, TableColorPick, 'Цвет кнопки. Введено по требованию ПЗ' ],
['Цвет фона схемы', TableEdit, TableColorPick, 'Схема прибора Э2. Изменение цвет фона'],
['Цвет схемы', TableEdit, TableColorPick, 'Схема прибора Э2. Изменение цвет схемы '] ]
## TODO: Придумать как избавиться от индексов
## Индексы строк таблицы.
@@ -76,6 +79,8 @@ const DEBAG_CONTROL = 21 ## Строка - Отладка контроля
const COMMIT = 22 ## Строка - Версия УАРЭП
const GOS_BTN = 52 ## Разрешить работу по своим целям
const COLOR_BTN_ACT = 54 ## Цвет кнопки "Подавление"
const COLOR_WHITE = 55 ## Цвет фона схемы
const COLOR_BLACK = 56 ## Цвет схемы
var name_to_line_index: = {} ## Для преобразования названия параметра в номер строки
@@ -249,6 +254,37 @@ func button_settings():
var arr_col = JSON.parse_string(json_col)
color_btn_act.color = Color(arr_col[0], arr_col[1], arr_col[2], arr_col[3]) if arr_col else Color.WHITE
color_btn_act.text = JSON.stringify(arr_col)
var color_white = $scroll_set/table.get_node2(1, COLOR_WHITE)
color_white.connect('popup_closed', on_color_closed_w.bind(color_white))
var json_col_w = ProjectSettings.get_setting('application/config/%s' % 'Цвет фона схемы', '[0.0, 0.0, 0.0, 0.0]')
var arr_col_w = JSON.parse_string(json_col_w)
color_white.color = Color(arr_col_w[0], arr_col_w[1], arr_col_w[2], arr_col_w[3]) if arr_col_w else Color.DIM_GRAY
color_white.text = JSON.stringify(arr_col_w)
var color_black = $scroll_set/table.get_node2(1, COLOR_BLACK)
color_black.connect('popup_closed', on_color_closed_b.bind(color_black))
var json_col_b = ProjectSettings.get_setting('application/config/%s' % 'Цвет схемы', '[1.0, 1.0, 1.0, 1.0]')
var arr_col_b = JSON.parse_string(json_col_b)
color_black.color = Color(arr_col_b[0], arr_col_b[1], arr_col_b[2], arr_col_b[3]) if arr_col_b else Color.WHITE_SMOKE
color_black.text = JSON.stringify(arr_col_b)
func _update_theme_colors():
var color_white = $scroll_set/table.get_node2(1, COLOR_WHITE)
var color_black = $scroll_set/table.get_node2(1, COLOR_BLACK)
on_color_closed_w(color_white)
on_color_closed_b(color_black)
func on_color_closed_w(color_white: ColorPickerButton):
var col_w = [color_white.color.r, color_white.color.g, color_white.color.b, color_white.color.a]
color_white.text = JSON.stringify(col_w)
ProjectSettings.set_setting('application/config/%s' % 'Цвет фона схемы', color_white.text)
func on_color_closed_b(color_black: ColorPickerButton):
var col_b = [color_black.color.r, color_black.color.g, color_black.color.b, color_black.color.a]
color_black.text = JSON.stringify(col_b)
ProjectSettings.set_setting('application/config/%s' % 'Цвет схемы', color_black.text)
func on_color_closed(color_btn_act: ColorPickerButton):

View File

@@ -4,8 +4,8 @@
[ext_resource type="PackedScene" uid="uid://da7w3vkhadfwe" path="res://scenes/button-flat/button-flat.tscn" id="2_eju8r"]
[ext_resource type="Texture2D" uid="uid://csnts8f155sf7" path="res://data/save1.png" id="3_onafb"]
[ext_resource type="Texture2D" uid="uid://o8mam0a060d8" path="res://data/load1.png" id="4_afjfs"]
[ext_resource type="Texture2D" uid="uid://bdlbqs88bki8x" path="res://data/connect-a.png" id="5_2nrut"]
[ext_resource type="Texture2D" uid="uid://u3tnejvpm8it" path="res://data/disconnect-a.png" id="6_g3q7m"]
[ext_resource type="Texture2D" uid="uid://bdlbqs88bki8x" path="res://data/connect-a.png" id="5_wk8og"]
[ext_resource type="Texture2D" uid="uid://u3tnejvpm8it" path="res://data/disconnect-a.png" id="6_1fbmy"]
[ext_resource type="Script" uid="uid://c5pq0hbrij34d" path="res://table/table.gd" id="8_qcl30"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_mu34x"]
@@ -35,30 +35,30 @@ modulate_color = Color(0.8, 0.533333, 0.27451, 1)
texture = ExtResource("4_afjfs")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_o7qii"]
texture = ExtResource("5_2nrut")
texture = ExtResource("5_wk8og")
modulate_color = Color(0.8, 0.533333, 0.27451, 1)
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_mgr7r"]
texture = ExtResource("5_2nrut")
texture = ExtResource("5_wk8og")
expand_margin_left = 3.0
expand_margin_top = 3.0
modulate_color = Color(0.8, 0.533333, 0.27451, 1)
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_hxhyh"]
texture = ExtResource("5_2nrut")
texture = ExtResource("5_wk8og")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_tnihm"]
texture = ExtResource("6_g3q7m")
texture = ExtResource("6_1fbmy")
modulate_color = Color(0.8, 0.533333, 0.27451, 1)
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_k1qbi"]
texture = ExtResource("6_g3q7m")
texture = ExtResource("6_1fbmy")
expand_margin_left = 3.0
expand_margin_top = 3.0
modulate_color = Color(0.8, 0.533333, 0.27451, 1)
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_pe5pe"]
texture = ExtResource("6_g3q7m")
texture = ExtResource("6_1fbmy")
[node name="ЭМС" type="Panel"]
offset_right = 1598.0
@@ -126,10 +126,10 @@ theme_override_styles/normal = SubResource("StyleBoxTexture_3ytmi")
[node name="btn_connect" type="Button" parent="."]
layout_mode = 0
offset_left = 627.0
offset_top = 55.0
offset_right = 679.0
offset_bottom = 87.0
offset_left = 716.0
offset_top = 40.0
offset_right = 763.0
offset_bottom = 73.0
focus_mode = 0
theme_override_colors/icon_normal_color = Color(1, 1, 1, 1)
theme_override_styles/focus = SubResource("StyleBoxTexture_o7qii")
@@ -141,10 +141,10 @@ theme_override_styles/normal = SubResource("StyleBoxTexture_hxhyh")
[node name="btn_disconnect" type="Button" parent="."]
layout_mode = 0
offset_left = 714.0
offset_top = 741.0
offset_right = 766.0
offset_bottom = 775.0
offset_left = 718.0
offset_top = 735.0
offset_right = 764.0
offset_bottom = 764.0
focus_mode = 0
theme_override_colors/icon_normal_color = Color(1, 1, 1, 1)
theme_override_styles/focus = SubResource("StyleBoxTexture_tnihm")

File diff suppressed because it is too large Load Diff