Доработка. Режим "Контроль". Отображение состояния внешних подключений
This commit is contained in:
16
scenes/pribor-externals/externals.gd
Normal file
16
scenes/pribor-externals/externals.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
@tool
|
||||
class_name pribor_externals extends 'res://scenes/контроль/прибор.gd'
|
||||
var UnitPanel = load('res://scenes/контроль/элемент-ю.tscn')
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if Engine.is_editor_hint():
|
||||
return
|
||||
for unit_inst in network.units.values():
|
||||
var unit_panel = UnitPanel.instantiate()
|
||||
unit_panel.fname = unit_inst.name
|
||||
$grid.add_child(unit_panel)
|
||||
|
||||
|
||||
func on_line_changed(unit_inst):
|
||||
pass
|
||||
1
scenes/pribor-externals/externals.gd.uid
Normal file
1
scenes/pribor-externals/externals.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://beb41qdahkdp5
|
||||
16
scenes/pribor-externals/externals.tscn
Normal file
16
scenes/pribor-externals/externals.tscn
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dwgvv4b4a5t1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://beb41qdahkdp5" path="res://scenes/pribor-externals/externals.gd" id="1_pacm1"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_pacm1"]
|
||||
|
||||
[node name="externals" type="PanelContainer"]
|
||||
offset_left = 71.0
|
||||
offset_top = 75.0
|
||||
offset_right = 756.0
|
||||
offset_bottom = 964.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_pacm1")
|
||||
script = ExtResource("1_pacm1")
|
||||
|
||||
[node name="grid" type="GridContainer" parent="."]
|
||||
layout_mode = 2
|
||||
Reference in New Issue
Block a user