[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://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://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"]
[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="9_ll0vs"]
[ext_resource type="Texture2D" uid="uid://bktiige0i2lhl" path="res://data/У-РЭП-РПД-Н.png" id="9_qe1go"]
[ext_resource type="Texture2D" uid="uid://00871pb6moln" path="res://data/прогресс-фон-1.png" id="9_w6m6a"]
[ext_resource type="Texture2D" uid="uid://c1k856fxhrjnh" path="res://data/прогресс-заполнение-1.png" id="10_lbx5w"]
[ext_resource type="Texture2D" uid="uid://u7h3l0jjrsnp" path="res://data/У-УФ.png" id="11_gjf0t"]
[ext_resource type="Script" uid="uid://bncy1x53jp73d" path="res://scenes/контроль/connect-pribor.gd" id="11_u7tym"]
[ext_resource type="Texture2D" uid="uid://vdhmga62vjsj" path="res://data/АФСП-РТР.png" id="13_32yvq"]
[ext_resource type="Texture2D" uid="uid://dm350ta8noa0v" path="res://data/У-РЭП-РПД-К.png" id="16_32yvq"]
[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"]
script/source = "extends Panel

\"\"\"
Режим контроль
\"\"\"
#TODO: рефактор: заменить подчёркивание на тире
const PRIBORS_RES    = \\
   {
    'pribor_prd_k_1': ['res://scenes/pribor-prd-k/pribor-prd-k.tscn', 'Контроль исправности прибора ПРД-К 1'],
    'pribor_prd_k_2': ['res://scenes/pribor-prd-k/pribor-prd-k.tscn', 'Контроль исправности прибора ПРД-К 2'],
    'pribor_prd_k_3': ['res://scenes/pribor-prd-k/pribor-prd-k.tscn', 'Контроль исправности прибора ПРД-К 3'],
    'pribor_prd_k_4': ['res://scenes/pribor-prd-k/pribor-prd-k.tscn', 'Контроль исправности прибора ПРД-К 4'],
    'pribor_prd_n_1': ['res://scenes/pribor-prd-n/pribor-prd-n.tscn', 'Контроль исправности прибора ПРД-Н 1'],
    'pribor_prd_n_2': ['res://scenes/pribor-prd-n/pribor-prd-n.tscn', 'Контроль исправности прибора ПРД-Н 2'],
    'pribor_prd_n_3': ['res://scenes/pribor-prd-n/pribor-prd-n.tscn', 'Контроль исправности прибора ПРД-Н 3'],
    'pribor_prd_n_4': ['res://scenes/pribor-prd-n/pribor-prd-n.tscn', 'Контроль исправности прибора ПРД-Н 4'],
    'pribor_prd_v_1': ['res://scenes/pribor-prd-v/pribor-prd-v.tscn', 'Контроль исправности прибора ПРД-В 1'],
    'pribor_prd_v_2': ['res://scenes/pribor-prd-v/pribor-prd-v.tscn', 'Контроль исправности прибора ПРД-В 2'],
    'pribor_prd_v_3': ['res://scenes/pribor-prd-v/pribor-prd-v.tscn', 'Контроль исправности прибора ПРД-В 3'],
    'pribor_prd_v_4': ['res://scenes/pribor-prd-v/pribor-prd-v.tscn', 'Контроль исправности прибора ПРД-В 4'],
    'pribor_rtr':     ['res://scenes/pribor-afsp/pribor-bpo.tscn',    'Контроль исправности прибора РТР'],
    'pribor_afsp_1':  ['res://scenes/pribor-afsp/pribor-afsp-1.tscn', 'Контроль исправности прибора АФСП 1'],
    'pribor_afsp_2':  ['res://scenes/pribor-afsp/pribor-afsp-2.tscn', 'Контроль исправности прибора АФСП 2'],
    'pribor_uf':      ['res://scenes/pribor-uf/pribor-uf.tscn',       'Контроль исправности прибора УФ'],
    'pribor_uyep':    ['res://scenes/pribor-uyep/pribor-uyep.tscn',   'Контроль исправности устройства У-ЭП'],
    }
var uf_control: UFControl
var ctl_btn_state := false
var cur_pribor_node = null
var check_ready_control: Dictionary = {}
var device_wait_control_result:Array = ['1н', '2н', '3н', '4н', '1в', '2в', '3в', '4в', '1к', '2к', '3к', '4к']


func on_line_changed(u, conn_node, _pribor_meta): conn_node.set_val(u.online)
func on_serv_changed(u, pribor_node, _pribor_meta): pribor_node.state = int(u.serviceability)


func on_mode_changed():
    clean_pribor_items()
    reset_pribor_buttons()
    $frame_button/chk_show_functional.disabled = true
    $frame_button/chk_show_functional.button_pressed = false


func reset_pribor_buttons():
    var pribor_buttons: = get_tree().get_nodes_in_group('pribor_buttons')
    for node in pribor_buttons:
        node.button_pressed = false
        node.show_functional = false


func _ready():
    var group = ButtonGroup.new()
    # Кнопки приборов, по нажатию на которые отображаеся мнемосхема
    for k in PRIBORS_RES:
        var pribor_node: Node = get_node(k)
        var pribor_path = PRIBORS_RES[k][0]
        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('panel_pribor')
        var unit_names = pribor_node.get_meta('unit_name', [])
        var pribor_proc = pribor_node.get_meta('online_proc', '')
        if pribor_proc == '':
            continue
        if not unit_names.size():
            continue
        for i in unit_names.size():
            var unit_instance: = network.get_unit_instance(unit_names[i])
            unit_instance.connect('line_changed', Callable(self, pribor_proc).bind(conn_node, unit_names))

        for item in unit_names:
            if prd.prd_dict.has(item):
                var prd_module = prd.prd_dict[item]
                prd_module.connect('update_serviceability', Callable(self, 'on_serviceability_changed').bind(pribor_node))
                prd_module.unit_control.connect('update_progress', Callable(self, 'on_update_progress').bind(pribor_node))
                prd_module.unit_control.connect('update_max_value_progress', Callable(self, 'on_update_max_value_progress').bind(pribor_node))
                prd_module.unit_control.connect('control_is_over', Callable(self, 'on_control_is_over'))
            if item == 'уарэп-эмс':
                uf_control = UFControl.new('уарэп-эмс')
                signaller.connect('update_uf_serviceability', Callable(self, 'on_update_uf_serviceability').bind(pribor_node))

    # Пиктограммы приборов, которые отображают состояние подключения только
    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('panel_pribor')
        unit_instance.connect('line_changed', on_line_changed.bind(conn_node, unit_name))


    signaller.conn(signaller.режим_работа, on_mode_changed)
    signaller.conn(signaller.режим_журнал, on_mode_changed)
    signaller.conn(signaller.режим_настройки, on_mode_changed)
    signaller.conn(signaller.режим_эмс, on_mode_changed)
    signaller.connect('debag_control_pressed', Callable(self, 'on_debag_button_pressed'))


func online_change_arr(_u, conn_node, pribor_meta):
    var state_online: = false
    for meta in pribor_meta:
        var unit_pribor = network.get_unit_instance(meta)
        if unit_pribor.online:
            state_online = true
            break
    conn_node.set_val(state_online)


func clean_pribor_items():
    var items = get_tree().get_nodes_in_group('pribor_items')
    for item in items:
        remove_child(item)
        item.queue_free()


func on_pribor_press(pribor_path, header_text, pribor_node):
    if cur_pribor_node:
        cur_pribor_node.show_functional = false
        $frame_button/chk_show_functional.disabled = false
        $frame_button/chk_show_functional.button_pressed = false
    cur_pribor_node = pribor_node
    clean_pribor_items()
    var pribor_obj = load(pribor_path)
    if not pribor_obj:
        push_error('не загружено: \\\"%s\\\" (%s)' % [pribor_path, header_text])
        return
    var pribor = pribor_obj.instantiate()
    if not pribor:
        push_error('экземпляр не создан: \\\"%s\\\" (%s)' % [pribor_path, header_text])
        return
    $lbl_header.text = header_text
    $frame_button/chk_show_functional.disabled = false
    var meta_list = pribor_node.get_meta_list()
    if meta_list.find('unit_name') > -1:
        var unit_name = pribor_node.get_meta('unit_name')
        pribor.set_meta('unit_name', unit_name)
    pribor.add_to_group('pribor_items')
    add_child(pribor)
    update_pribor_items_visibility()


## Прием сигналов о текущем состояниях приборах
func on_serviceability_changed(state: int, prd_pribor_node: Node)-> void:
    prd_pribor_node.state = state


func on_update_uf_serviceability(uf_serviceaability: int, uf_pribor: Node)-> void:
    uf_pribor.state = uf_serviceaability


func _on_chk_show_functional_toggled(toggled_on: bool) -> void:
    if cur_pribor_node:
        cur_pribor_node.show_functional = toggled_on


func _on_control_prd_pressed() -> void:
    check_ready_control = {}
    for pribor in get_tree().get_nodes_in_group('pribor_buttons'):
        pribor.state = 0 # NONE
    signaller.emit_signal('start_contol_device')
    # Показываем прогресс бар
    $pribor_uf/control_progress.visible = true
    $pribor_uf/control_progress.value = 0

    # Создаем твин для анимации с плавным началом и концом
    var tween = create_tween()
    tween.tween_property($pribor_uf/control_progress, \"value\", 100, 2.0)\\
        .set_trans(Tween.TRANS_SINE)\\
        .set_ease(Tween.EASE_IN_OUT)

    tween.tween_callback(func():
        $pribor_uf/control_progress.visible = false
        $pribor_uf.state = uf_control.serviceability_uf
    )


func on_debag_button_pressed(state: bool) -> void:
    ctl_btn_state = state
    update_pribor_items_visibility()


func update_pribor_items_visibility():
    var pribor_items = get_tree().get_nodes_in_group('pribor_items')
    for pribor in pribor_items:
        for child_name in ['input_0', 'output_0', 'input_1', 'output_1', 'input_2', 'output_2']:
            if pribor.has_node(child_name):
                pribor.get_node(child_name).visible = ctl_btn_state


#region Управление прогресс барами в контроле
func on_update_progress(value_progress: float, pribor_node: Node) -> void:
    pribor_node.progress_value = value_progress
    pribor_node.progress_visible = value_progress > 0


func on_update_max_value_progress(max_value_progress: int, pribor_node: Node) -> void:
    pribor_node.progress_max_value = max_value_progress
#endregion


func on_control_is_over(pribor_name: String) -> void:
    if pribor_name in device_wait_control_result:
        check_ready_control[pribor_name] = true
    if not _is_all_control_complete(): return
    # После завершения контроля всех приборов
    $control_prd_button._on_stop_control()


func _is_all_control_complete() -> bool:
    for device in device_wait_control_result:
        if not check_ready_control.get(device, false):
            return false
    return true


func _on_gui_input(event: InputEvent) -> void:
    if event is InputEventMouseButton and event.pressed and event.button_index == MOUSE_BUTTON_LEFT:
        if cur_pribor_node:
            cur_pribor_node.show_functional = false
        var pribor_buttons := get_tree().get_nodes_in_group('pribor_buttons')
        for node in pribor_buttons:
            node.button_pressed = false
        clean_pribor_items()
        cur_pribor_node = null
        $frame_button/chk_show_functional.button_pressed = false
        $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("3_8tygn")
}, {
"duration": 1.0,
"texture": ExtResource("3_8tygn")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_71ec4"]
shader = ExtResource("9_71ec4")
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"]
bg_color = Color(0.6, 0.6, 0.6, 0)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.6, 0.6, 0.6, 1)

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_l5wui"]
bg_color = Color(0.47451, 0.47451, 0.47451, 1)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.890196, 0.486275, 0.196078, 1)

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_j3xqy"]
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.890196, 0.486275, 0.196078, 1)

[node name="Контроль" type="Panel"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = SubResource("GDScript_iqgf5")
metadata/_edit_lock_ = true
metadata/_edit_vertical_guides_ = [21.0, 1578.0]
metadata/_edit_horizontal_guides_ = [200.0, 51.0, 952.0, 1128.0]

[node name="capsrpb" type="TextureRect" parent="." groups=["pribor_pics"]]
editor_description = "Кнопка для отображения внешних соединений."
self_modulate = Color(0.788235, 0.788235, 0.788235, 1)
layout_mode = 0
offset_left = 945.0
offset_top = 1021.0
offset_right = 1201.0
offset_bottom = 1277.0
scale = Vector2(0.25, 0.25)
size_flags_horizontal = 15
size_flags_vertical = 15
texture = ExtResource("2_oysma")
script = ExtResource("2_8r80x")
unit_name = &"уарэп-капсрпб"
metadata/unit_name = &"уарэп-капсрпб"

[node name="label" type="Label" parent="capsrpb"]
layout_mode = 0
offset_left = -44.0
offset_top = -128.0
offset_right = 41.0
offset_bottom = -109.0
scale = Vector2(4, 4)
text = "КАПС РПБ"
horizontal_alignment = 1
vertical_alignment = 1

[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(45.7142, 45.7143)
scale = Vector2(2.113, 2.1)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355

[node name="5p28" type="TextureRect" parent="." groups=["pribor_pics"]]
editor_description = "Кнопка для отображения внешних соединений."
self_modulate = Color(0.788235, 0.788235, 0.788235, 1)
layout_mode = 0
offset_left = 1074.0
offset_top = 1021.0
offset_right = 1330.0
offset_bottom = 1277.0
scale = Vector2(0.25, 0.25)
size_flags_horizontal = 15
size_flags_vertical = 15
texture = ExtResource("2_oysma")
script = ExtResource("2_8r80x")
unit_name = &"уарэп-5п28"
metadata/unit_name = &"уарэп-5п28"

[node name="label" type="Label" parent="5p28"]
layout_mode = 0
offset_left = 16.0
offset_top = -128.0
offset_right = 68.0
offset_bottom = -109.0
scale = Vector2(4, 4)
text = "5П28"
horizontal_alignment = 1
vertical_alignment = 1

[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(45.7142, 45.7143)
scale = Vector2(2.113, 2.1)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355

[node name="akng" type="TextureRect" parent="." groups=["pribor_pics"]]
editor_description = "Кнопка для отображения внешних соединений."
self_modulate = Color(0.788235, 0.788235, 0.788235, 1)
layout_mode = 0
offset_left = 1202.0
offset_top = 1021.0
offset_right = 1458.0
offset_bottom = 1277.0
scale = Vector2(0.25, 0.25)
size_flags_horizontal = 15
size_flags_vertical = 15
texture = ExtResource("2_oysma")
script = ExtResource("2_8r80x")
unit_name = &"навигация"
metadata/unit_name = &"навигация"

[node name="label" type="Label" parent="akng"]
layout_mode = 0
offset_left = 4.0
offset_top = -128.0
offset_right = 53.0
offset_bottom = -109.0
scale = Vector2(4, 4)
text = "АКНГ"
horizontal_alignment = 1
vertical_alignment = 1

[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(45.7142, 45.7143)
scale = Vector2(2.113, 2.1)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355

[node name="maps" type="TextureRect" parent="." groups=["pribor_pics"]]
editor_description = "Кнопка для отображения внешних соединений."
self_modulate = Color(0.788235, 0.788235, 0.788235, 1)
layout_mode = 0
offset_left = 1330.0
offset_top = 1021.0
offset_right = 1586.0
offset_bottom = 1277.0
scale = Vector2(0.25, 0.25)
size_flags_horizontal = 15
size_flags_vertical = 15
texture = ExtResource("2_oysma")
script = ExtResource("2_8r80x")
unit_name = &"уарэп-карта"
metadata/unit_name = &"уарэп-карта"

[node name="label" type="Label" parent="maps"]
layout_mode = 0
offset_left = 4.0
offset_top = -128.0
offset_right = 53.0
offset_bottom = -109.0
scale = Vector2(4, 4)
text = "Карты"
horizontal_alignment = 1
vertical_alignment = 1

[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(45.7142, 45.7143)
scale = Vector2(2.113, 2.1)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355

[node name="trassa" type="TextureRect" parent="." groups=["pribor_pics"]]
editor_description = "Кнопка для отображения внешних соединений."
self_modulate = Color(0.788235, 0.788235, 0.788235, 1)
layout_mode = 0
offset_left = 1458.0
offset_top = 1021.0
offset_right = 1714.0
offset_bottom = 1277.0
scale = Vector2(0.25, 0.25)
size_flags_horizontal = 15
size_flags_vertical = 15
texture = ExtResource("2_oysma")
script = ExtResource("2_8r80x")
unit_name = &"уарэп-трасса"
metadata/unit_name = &"уарэп-трасса"

[node name="label" type="Label" parent="trassa"]
layout_mode = 0
offset_left = 4.0
offset_top = -128.0
offset_right = 53.0
offset_bottom = -109.0
scale = Vector2(4, 4)
text = "Трасса"
horizontal_alignment = 1
vertical_alignment = 1

[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(45.7142, 45.7143)
scale = Vector2(2.113, 2.1)
sprite_frames = SubResource("SpriteFrames_foasq")
frame_progress = 0.72355

[node name="pribor_prd_n_1" type="TextureButton" parent="." groups=["pribor_buttons"]]
editor_description = "Кнопка для выбора прибора."
layout_mode = 0
offset_left = 1048.0
offset_top = 179.0
offset_right = 1125.0
offset_bottom = 295.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
flip_h = true
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 0.87, 0, 1), Color(100, 0, 0, 1)]
metadata/online_proc = "on_line_changed"
metadata/unit_name = ["уарэп-яу07-1н"]

[node name="label" type="Label" parent="pribor_prd_n_1"]
layout_mode = 0
offset_left = 8.0
offset_top = -40.0
offset_right = 60.0
offset_bottom = -21.0
text = "ПРД Н1"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_n_1"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -10.0
offset_top = -24.0
offset_right = 95.0
offset_bottom = 126.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_n_1"]
visible = false
layout_mode = 0
offset_left = -4.0
offset_top = 124.0
offset_right = 89.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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="pic_functional" type="TextureRect" parent="pribor_prd_n_1"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1029.0
offset_top = 9.0
offset_right = 576.0
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
offset_left = 1183.0
offset_top = 558.0
offset_right = 1294.0
offset_bottom = 743.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("2_0nvm1")
stretch_mode = 0
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = ["уарэп-эмс"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_uf"]
layout_mode = 0
offset_left = 15.0
offset_top = -44.0
offset_right = 91.0
offset_bottom = -25.0
text = "УФ"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_uf"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -14.0
offset_top = -30.0
offset_right = 126.0
offset_bottom = 200.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="pic_functional" type="TextureRect" parent="pribor_uf"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1155.0
offset_top = -362.0
offset_right = -96.0001
offset_bottom = 311.0
scale = Vector2(0.789429, 0.789429)
texture = ExtResource("11_gjf0t")

[node name="control_progress" type="TextureProgressBar" parent="pribor_uf"]
visible = false
layout_mode = 0
offset_left = 9.0
offset_top = 191.0
offset_right = 102.0
offset_bottom = 201.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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
offset_left = 1058.0
offset_top = 588.0
offset_right = 1164.0
offset_bottom = 744.0
pivot_offset = Vector2(-10, -65)
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("3_hhadv")
stretch_mode = 0
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = [&"уарэп-бпо-1", &"уарэп-бпо-2"]
metadata/online_proc = "online_change_arr"

[node name="label" type="Label" parent="pribor_rtr"]
layout_mode = 0
offset_left = 11.0
offset_top = -49.0
offset_right = 94.0
offset_bottom = -30.0
text = "РТР"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_rtr"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -13.0
offset_top = -34.0
offset_right = 117.0
offset_bottom = 171.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="label2" type="Label" parent="pribor_rtr"]
layout_mode = 0
offset_left = 11.0
offset_top = -49.0
offset_right = 94.0
offset_bottom = -30.0
text = "РТР"
horizontal_alignment = 1
vertical_alignment = 1

[node name="pic_functional" type="TextureRect" parent="pribor_rtr"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1036.0
offset_top = -394.0
offset_right = 927.0
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
offset_left = 1053.0
offset_top = 425.0
offset_right = 1886.0
offset_bottom = 1065.0
scale = Vector2(0.2, 0.2)
pivot_offset = Vector2(-10, -65)
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("9_iqgf5")
stretch_mode = 0
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = [&"уарэп-афсп-левый"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_afsp_1"]
layout_mode = 0
offset_left = 175.0
offset_top = -245.0
offset_right = 272.0
offset_bottom = -225.0
scale = Vector2(5, 5)
text = "АФСП 1"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_afsp_1"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -60.0
offset_top = -165.0
offset_right = 130.0
offset_bottom = 10.0
scale = Vector2(5, 5)
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="label2" type="Label" parent="pribor_afsp_1"]
layout_mode = 0
offset_left = 175.0
offset_top = -245.0
offset_right = 272.0
offset_bottom = -225.0
scale = Vector2(5, 5)
text = "АФСП 1"
horizontal_alignment = 1
vertical_alignment = 1

[node name="pic_functional" type="TextureRect" parent="pribor_afsp_1"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -5120.0
offset_top = -895.0
offset_right = -3157.0
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
offset_left = 1243.0
offset_top = 425.0
offset_right = 2076.0
offset_bottom = 1065.0
scale = Vector2(0.2, 0.2)
pivot_offset = Vector2(-10, -65)
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("9_iqgf5")
stretch_mode = 0
flip_h = true
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = [&"уарэп-афсп-правый"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_afsp_2"]
layout_mode = 0
offset_left = 175.0
offset_top = -240.0
offset_right = 272.0
offset_bottom = -220.0
scale = Vector2(5, 5)
text = "АФСП 2"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_afsp_2"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -50.0
offset_top = -165.0
offset_right = 140.0
offset_bottom = 10.0
scale = Vector2(5, 5)
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="label2" type="Label" parent="pribor_afsp_2"]
layout_mode = 0
offset_left = 175.0
offset_top = -240.0
offset_right = 272.0
offset_bottom = -220.0
scale = Vector2(5, 5)
text = "АФСП 2"
horizontal_alignment = 1
vertical_alignment = 1

[node name="pic_functional" type="TextureRect" parent="pribor_afsp_2"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -6070.0
offset_top = -900.0
offset_right = -4107.0
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
offset_left = 1313.0
offset_top = 558.0
offset_right = 1407.0
offset_bottom = 744.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("5_kvnex")
stretch_mode = 0
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = ["уарэп-щ3", "уарэп-спт25-1", "уарэп-спт25-2"]
metadata/online_proc = "online_change_arr"

[node name="label" type="Label" parent="pribor_uyep"]
layout_mode = 0
offset_left = 26.8566
offset_top = -43.3276
offset_right = 66.8566
offset_bottom = -24.3276
text = "У-ЭП"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_uyep"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -13.0
offset_top = -29.0
offset_right = 117.0
offset_bottom = 199.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="pic_functional" type="TextureRect" parent="pribor_uyep"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1292.0
offset_top = -365.0
offset_right = 821.0
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
offset_left = 1440.0
offset_top = 687.0
offset_right = 1517.0
offset_bottom = 803.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
flip_h = true
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = ["уарэп-яу07-2в"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_v_2"]
layout_mode = 0
offset_left = 11.0
offset_top = -42.0
offset_right = 63.0
offset_bottom = -23.0
text = "ПРД В2"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_v_2"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -10.0
offset_top = -30.0
offset_right = 95.0
offset_bottom = 120.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_v_2"]
visible = false
layout_mode = 0
offset_left = -4.0
offset_top = 124.0
offset_right = 89.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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="pic_functional" type="TextureRect" parent="pribor_prd_v_2"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1419.0
offset_top = -480.0
offset_right = 173.0
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
offset_left = 1440.0
offset_top = 322.0
offset_right = 1517.0
offset_bottom = 438.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
flip_h = true
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = ["уарэп-яу07-2н"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_n_2"]
layout_mode = 0
offset_left = 11.0
offset_top = -42.0
offset_right = 63.0
offset_bottom = -23.0
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 0
text = "ПРД Н2"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_n_2"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -10.0
offset_top = -25.0
offset_right = 95.0
offset_bottom = 125.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="pic_functional" type="TextureRect" parent="pribor_prd_n_2"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1419.0
offset_top = -145.0
offset_right = 186.0
offset_bottom = 676.0
scale = Vector2(0.96888, 0.96888)
texture = ExtResource("9_qe1go")

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_n_2"]
visible = false
layout_mode = 0
offset_left = -4.0
offset_top = 124.0
offset_right = 89.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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
offset_left = 1440.0
offset_top = 504.0
offset_right = 1517.0
offset_bottom = 620.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
flip_h = true
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = ["уарэп-яу07-2к"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_k_2"]
layout_mode = 0
offset_left = 11.0
offset_top = -42.0
offset_right = 63.0
offset_bottom = -23.0
text = "ПРД К2"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_k_2"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -12.0
offset_top = -29.0
offset_right = 93.0
offset_bottom = 121.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="pic_functional" type="TextureRect" parent="pribor_prd_k_2"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1418.0
offset_top = -314.0
offset_right = 345.0
offset_bottom = 649.0
scale = Vector2(0.881522, 0.881522)
texture = ExtResource("16_32yvq")

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_k_2"]
visible = false
layout_mode = 0
offset_left = -4.0
offset_top = 124.0
offset_right = 89.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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
offset_left = 1048.0
offset_top = 803.0
offset_right = 1125.0
offset_bottom = 919.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
flip_h = true
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = ["уарэп-яу07-3в"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_v_3"]
layout_mode = 0
offset_left = 9.0
offset_top = -41.0
offset_right = 61.0
offset_bottom = -22.0
text = "ПРД В3"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_v_3"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -14.0
offset_top = -27.0
offset_right = 91.0
offset_bottom = 123.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_v_3"]
visible = false
layout_mode = 0
offset_left = -8.0
offset_top = 124.0
offset_right = 85.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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="pic_functional" type="TextureRect" parent="pribor_prd_v_3"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1026.0
offset_top = -601.0
offset_right = 566.0
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
offset_left = 1323.0
offset_top = 803.0
offset_right = 1400.0
offset_bottom = 919.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
flip_h = true
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = ["уарэп-яу07-3н"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_n_3"]
layout_mode = 0
offset_left = 8.0
offset_top = -43.0
offset_right = 60.0
offset_bottom = -24.0
text = "ПРД Н3"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_n_3"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -13.0
offset_top = -28.0
offset_right = 92.0
offset_bottom = 122.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_n_3"]
visible = false
layout_mode = 0
offset_left = -7.0
offset_top = 124.0
offset_right = 86.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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="pic_functional" type="TextureRect" parent="pribor_prd_n_3"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1302.0
offset_top = -602.0
offset_right = 303.0
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
offset_left = 1188.0
offset_top = 803.0
offset_right = 1265.0
offset_bottom = 919.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
flip_h = true
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 1, 0, 1), Color(1, 0, 0, 1)]
metadata/unit_name = ["уарэп-яу07-3к"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_k_3"]
layout_mode = 0
offset_left = 9.0
offset_top = -42.0
offset_right = 61.0
offset_bottom = -23.0
text = "ПРД К3"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_k_3"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -13.0
offset_top = -25.0
offset_right = 92.0
offset_bottom = 125.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_k_3"]
visible = false
layout_mode = 0
offset_left = -8.0
offset_top = 124.0
offset_right = 85.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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="pic_functional" type="TextureRect" parent="pribor_prd_k_3"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1167.0
offset_top = -602.0
offset_right = 596.0
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
offset_left = 1328.0
offset_top = 179.0
offset_right = 1405.0
offset_bottom = 295.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
flip_h = true
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 0.87, 0, 1), Color(100, 0, 0, 1)]
metadata/unit_name = ["уарэп-яу07-1в"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_v_1"]
layout_mode = 0
offset_left = 8.0
offset_top = -44.0
offset_right = 60.0
offset_bottom = -25.0
text = "ПРД В1"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_v_1"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -12.0
offset_top = -30.0
offset_right = 93.0
offset_bottom = 120.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="pic_functional" type="TextureRect" parent="pribor_prd_v_1"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1304.0
offset_top = 2.0
offset_right = 288.0
offset_bottom = 810.0
scale = Vector2(0.974661, 0.974661)
texture = ExtResource("20_l5wui")

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_v_1"]
visible = false
layout_mode = 0
offset_left = -4.0
offset_top = 124.0
offset_right = 89.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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
offset_left = 1183.0
offset_top = 179.0
offset_right = 1260.0
offset_bottom = 295.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
flip_h = true
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 0.87, 0, 1), Color(100, 0, 0, 1)]
metadata/unit_name = ["уарэп-яу07-1к"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_k_1"]
layout_mode = 0
offset_left = 9.0
offset_top = -44.0
offset_right = 61.0
offset_bottom = -25.0
text = "ПРД К1"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_k_1"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -14.0
offset_top = -28.0
offset_right = 91.0
offset_bottom = 122.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_k_1"]
visible = false
layout_mode = 0
offset_left = -4.0
offset_top = 124.0
offset_right = 89.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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="pic_functional" type="TextureRect" parent="pribor_prd_k_1"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -1163.0
offset_top = 10.0
offset_right = 600.0
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
offset_left = 940.0
offset_top = 322.0
offset_right = 1017.0
offset_bottom = 438.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 0.87, 0, 1), Color(0.65, 0.0715, 0.0715, 1)]
metadata/unit_name = ["уарэп-яу07-4в"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_v_4"]
layout_mode = 0
offset_left = 15.0
offset_top = -41.0
offset_right = 67.0
offset_bottom = -22.0
text = "ПРД В4"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_v_4"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -12.0
offset_top = -26.0
offset_right = 93.0
offset_bottom = 124.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_v_4"]
visible = false
layout_mode = 0
offset_left = -6.0
offset_top = 124.0
offset_right = 87.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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="pic_functional" type="TextureRect" parent="pribor_prd_v_4"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -923.0
offset_top = -144.0
offset_right = 669.0
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
offset_left = 941.0
offset_top = 687.0
offset_right = 1018.0
offset_bottom = 803.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 0.87, 0, 1), Color(0.65, 0.0715, 0.0715, 1)]
metadata/unit_name = ["уарэп-яу07-4н"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_n_4"]
layout_mode = 0
offset_left = 14.0
offset_top = -41.0
offset_right = 66.0
offset_bottom = -22.0
text = "ПРД Н4"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_n_4"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -11.0
offset_top = -24.0
offset_right = 94.0
offset_bottom = 126.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_n_4"]
visible = false
layout_mode = 0
offset_left = -8.0
offset_top = 124.0
offset_right = 85.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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="pic_functional" type="TextureRect" parent="pribor_prd_n_4"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -919.0
offset_top = -485.0
offset_right = 686.0
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
offset_left = 941.0
offset_top = 504.0
offset_right = 1018.0
offset_bottom = 620.0
size_flags_horizontal = 15
size_flags_vertical = 15
toggle_mode = true
action_mode = 0
texture_normal = ExtResource("6_i1yfn")
stretch_mode = 4
script = ExtResource("3_4pt7j")
state_colors = [Color(1, 1, 1, 1), Color(0, 0.87, 0, 1), Color(0.65, 0.0715, 0.0715, 1)]
metadata/unit_name = ["уарэп-яу07-4к"]
metadata/online_proc = "on_line_changed"

[node name="label" type="Label" parent="pribor_prd_k_4"]
layout_mode = 0
offset_left = 14.0
offset_top = -40.0
offset_right = 66.0
offset_bottom = -21.0
text = "ПРД К4"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame" type="NinePatchRect" parent="pribor_prd_k_4"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -12.0
offset_top = -25.0
offset_right = 93.0
offset_bottom = 125.0
texture = ExtResource("4_rasbe")
region_rect = Rect2(-3, -3, 89, 89)
patch_margin_left = 16
patch_margin_top = 16
patch_margin_right = 16
patch_margin_bottom = 16

[node name="control_progress" type="TextureProgressBar" parent="pribor_prd_k_4"]
visible = false
layout_mode = 0
offset_left = -8.0
offset_top = 124.0
offset_right = 85.0
offset_bottom = 134.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: 0.00"
mouse_filter = 0
max_value = 30.0
nine_patch_stretch = true
stretch_margin_left = 5
stretch_margin_top = 5
stretch_margin_right = 5
stretch_margin_bottom = 5
texture_under = ExtResource("9_w6m6a")
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="pic_functional" type="TextureRect" parent="pribor_prd_k_4"]
visible = false
z_index = 1
material = SubResource("ShaderMaterial_71ec4")
layout_mode = 0
offset_left = -924.0
offset_top = -315.0
offset_right = 839.0
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
offset_top = 1141.0
offset_right = 540.0
offset_bottom = 1365.0
scale = Vector2(0.1, 0.1)
texture = ExtResource("7_6j01w")

[node name="lbl_legend0" type="Label" parent="."]
self_modulate = Color(1, 1, 1, 0.627451)
layout_mode = 0
offset_left = 344.0
offset_top = 1142.0
offset_right = 500.0
offset_bottom = 1162.0
theme_override_font_sizes/font_size = 17
text = "Ожидание результата"

[node name="lbl_legend1" type="Label" parent="."]
self_modulate = Color(1, 1, 1, 0.627451)
layout_mode = 0
offset_left = 149.0
offset_top = 1142.0
offset_right = 222.0
offset_bottom = 1162.0
theme_override_font_sizes/font_size = 17
text = "Исправно"

[node name="txr_legend1" type="TextureRect" parent="."]
layout_mode = 0
offset_left = 123.0
offset_top = 1141.0
offset_right = 347.0
offset_bottom = 1365.0
scale = Vector2(0.1, 0.1)
texture = ExtResource("8_isjua")

[node name="txr_legend2" type="TextureRect" parent="."]
layout_mode = 0
offset_left = 573.0
offset_top = 1141.0
offset_right = 797.0
offset_bottom = 1365.0
scale = Vector2(0.1, 0.1)
texture = ExtResource("9_ll0vs")

[node name="lbl_legend2" type="Label" parent="."]
self_modulate = Color(1, 1, 1, 0.627451)
layout_mode = 0
offset_left = 601.0
offset_top = 1142.0
offset_right = 645.0
offset_bottom = 1162.0
theme_override_font_sizes/font_size = 17
text = "Сбой"

[node name="lbl_header" type="Label" parent="."]
visible = false
layout_mode = 0
offset_left = 88.0
offset_top = 27.0
offset_right = 666.0
offset_bottom = 58.0
theme_override_font_sizes/font_size = 22
text = "Контроль исправности прибора"
horizontal_alignment = 1
vertical_alignment = 1

[node name="frame_button" type="Panel" parent="."]
layout_mode = 0
offset_left = 1040.0
offset_top = 16.0
offset_right = 1416.0
offset_bottom = 56.0
theme_override_styles/panel = SubResource("StyleBoxFlat_6hcgs")

[node name="chk_show_functional" type="CheckButton" parent="frame_button"]
layout_mode = 0
offset_left = 2.0
offset_top = 3.0
offset_right = 374.0
offset_bottom = 37.0
focus_mode = 0
theme_override_font_sizes/font_size = 22
disabled = true
text = "Функциональная схема Э2"
flat = true
alignment = 1

[node name="connect_legend0" type="AnimatedSprite2D" parent="."]
light_mask = 3
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 = 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

[node name="connect_legend1" type="AnimatedSprite2D" parent="."]
self_modulate = Color(0, 1, 0, 1)
light_mask = 3
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 = 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

[node name="line0" type="Line2D" parent="."]
position = Vector2(929, 950)
points = PackedVector2Array(-8, 0, 582.16, 0, 608, 0)
width = 2.0
default_color = Color(1, 1, 1, 0.352941)

[node name="line1" type="Line2D" parent="."]
position = Vector2(929, 1128)
points = PackedVector2Array(-8, 0, 608, 0)
width = 2.0
default_color = Color(1, 1, 1, 0.352941)

[node name="line2" type="Line2D" parent="."]
position = Vector2(73.3548, 1127)
scale = Vector2(1.03548, 1)
points = PackedVector2Array(-8, 0, 608, 0)
width = 2.0
default_color = Color(1, 1, 1, 0.352941)

[node name="control_prd_button" type="Button" parent="."]
layout_mode = 0
offset_left = 1040.0
offset_top = 64.0
offset_right = 1416.0
offset_bottom = 104.0
focus_mode = 0
theme_override_colors/font_hover_color = Color(1, 1, 1, 1)
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_styles/hover = SubResource("StyleBoxFlat_l5wui")
theme_override_styles/pressed = SubResource("StyleBoxFlat_l5wui")
theme_override_styles/normal = SubResource("StyleBoxFlat_j3xqy")
text = "Запуск контроля"
script = ExtResource("18_lbx5w")
metadata/_edit_lock_ = true

[node name="pic_functional" type="TextureRect" parent="."]
visible = false
layout_mode = 0
offset_left = -962.0
offset_top = 73.0
offset_right = 96.9999
offset_bottom = 746.0
scale = Vector2(5, 5)
texture = ExtResource("22_1s34a")

[connection signal="gui_input" from="." to="." method="_on_gui_input"]
[connection signal="toggled" from="pribor_prd_n_1" to="pribor_prd_n_1" method="_on_toggled"]
[connection signal="toggled" from="pribor_uf" to="pribor_uf" method="_on_toggled"]
[connection signal="toggled" from="pribor_rtr" to="pribor_rtr" method="_on_toggled"]
[connection signal="toggled" from="pribor_afsp_1" to="pribor_afsp_1" method="_on_toggled"]
[connection signal="toggled" from="pribor_afsp_2" to="pribor_afsp_2" method="_on_toggled"]
[connection signal="toggled" from="pribor_uyep" to="pribor_uyep" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_v_2" to="pribor_prd_v_2" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_n_2" to="pribor_prd_n_2" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_k_2" to="pribor_prd_k_2" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_v_3" to="pribor_prd_v_3" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_n_3" to="pribor_prd_n_3" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_k_3" to="pribor_prd_k_3" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_v_1" to="pribor_prd_v_1" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_k_1" to="pribor_prd_k_1" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_v_4" to="pribor_prd_v_4" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_n_4" to="pribor_prd_n_4" method="_on_toggled"]
[connection signal="toggled" from="pribor_prd_k_4" to="pribor_prd_k_4" method="_on_toggled"]
[connection signal="toggled" from="frame_button/chk_show_functional" to="." method="_on_chk_show_functional_toggled"]
[connection signal="pressed" from="control_prd_button" to="." method="_on_control_prd_pressed"]
