Рефактор. Режим "Контроль". Общие скрипты и сцены для двух и более экземпляров должны быть в папке "scenes/контроль"

This commit is contained in:
sasha80
2025-08-20 10:48:29 +03:00
parent f311f9987b
commit 71bd155efd
8 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ patch_margin_top = 30
patch_margin_right = 15 patch_margin_right = 15
patch_margin_bottom = 10 patch_margin_bottom = 10
script = ExtResource("2_ki0kf") script = ExtResource("2_ki0kf")
text = "заголовок" text = ""
[node name="header" type="Label" parent="."] [node name="header" type="Label" parent="."]
clip_contents = true clip_contents = true

View File

@@ -2,7 +2,7 @@
[ext_resource type="Script" uid="uid://d0jwv5opi3mrl" path="res://scenes/pribor-afsp/pribor-afsp.gd" id="1_151rh"] [ext_resource type="Script" uid="uid://d0jwv5opi3mrl" path="res://scenes/pribor-afsp/pribor-afsp.gd" id="1_151rh"]
[ext_resource type="Script" uid="uid://bux47vkw71w1t" path="res://scenes/pribor-afsp/request.gd" id="2_4vyhj"] [ext_resource type="Script" uid="uid://bux47vkw71w1t" path="res://scenes/pribor-afsp/request.gd" id="2_4vyhj"]
[ext_resource type="PackedScene" uid="uid://dnxq870xf6pkh" path="res://scenes/pribor-afsp/bort-afsp.tscn" id="3_d7iti"] [ext_resource type="PackedScene" uid="uid://dnxq870xf6pkh" path="res://scenes/контроль/bort-afsp.tscn" id="3_d7iti"]
[sub_resource type="GDScript" id="GDScript_yhnwg"] [sub_resource type="GDScript" id="GDScript_yhnwg"]
script/source = "extends Timer script/source = "extends Timer

View File

@@ -2,7 +2,7 @@
[ext_resource type="Script" uid="uid://d0jwv5opi3mrl" path="res://scenes/pribor-afsp/pribor-afsp.gd" id="1_tfses"] [ext_resource type="Script" uid="uid://d0jwv5opi3mrl" path="res://scenes/pribor-afsp/pribor-afsp.gd" id="1_tfses"]
[ext_resource type="Script" uid="uid://bux47vkw71w1t" path="res://scenes/pribor-afsp/request.gd" id="2_miwrd"] [ext_resource type="Script" uid="uid://bux47vkw71w1t" path="res://scenes/pribor-afsp/request.gd" id="2_miwrd"]
[ext_resource type="PackedScene" uid="uid://dnxq870xf6pkh" path="res://scenes/pribor-afsp/bort-afsp.tscn" id="3_xpxb5"] [ext_resource type="PackedScene" uid="uid://dnxq870xf6pkh" path="res://scenes/контроль/bort-afsp.tscn" id="3_xpxb5"]
[sub_resource type="GDScript" id="GDScript_yhnwg"] [sub_resource type="GDScript" id="GDScript_yhnwg"]
script/source = "extends Timer script/source = "extends Timer

View File

@@ -4,7 +4,7 @@ class_name pribor_afsp extends 'res://scenes/контроль/прибор.gd'
@export var prefix_path: String = 'DeviceDescripton[DeviceName]' @export var prefix_path: String = 'DeviceDescripton[DeviceName]'
static var json_conv: JSON = JSON.new() static var json_conv: JSON = JSON.new()
static var node_maper = load('res://scenes/pribor-afsp/node-maper.gd') static var node_maper = load('res://scenes/контроль/node-maper.gd')
func _on_request_completed(result, _response_code, headers, body: PackedByteArray): func _on_request_completed(result, _response_code, headers, body: PackedByteArray):
if result != 0: if result != 0:

View File

@@ -4,7 +4,7 @@ class_name pribor_rtr extends 'res://scenes/контроль/прибор.gd'
@export var prefix_path: String = 'DeviceDescripton[DeviceName]' @export var prefix_path: String = 'DeviceDescripton[DeviceName]'
static var json_conv: JSON = JSON.new() static var json_conv: JSON = JSON.new()
static var node_maper = load('res://scenes/pribor-afsp/node-maper.gd') static var node_maper = load('res://scenes/контроль/node-maper.gd')
const bort_to_node_name = { const bort_to_node_name = {