Рефактор

This commit is contained in:
sasha80
2025-07-07 17:50:00 +03:00
parent caa91a2f22
commit add8c014d2

View File

@@ -1,4 +1,4 @@
extends "res://scenes/контроль/прибор.gd"
extends 'res://scenes/контроль/прибор.gd'
enum STATE_VAL {
NONE = 0,
@@ -53,8 +53,8 @@ func Control_VK() -> void:
for element in out_pci:
out_pci_str += element
out_usb_str = out_usb_str.split("\n")
out_pci_str = out_pci_str.split("\n")
out_usb_str = out_usb_str.split('\n')
out_pci_str = out_pci_str.split('\n')
var i: int = 0
@@ -93,10 +93,10 @@ func status_uf() -> void:
var status_ip27:int = $ref_uf/ref_kassetav13/ref_A12_IP27B.state
if (status_yay == 1) and (status_bu == 1) and (status_kems == 1) \
and (status_ems0 == 1) and (status_ems1 == 1) and (status_ip5 == 1) and (status_ip27 == 1):
$lbl_header2.text = "Прибор исправен"
and (status_ems0 == 1) and (status_ems1 == 1) and (status_ip5 == 1) and (status_ip27 == 1):
$lbl_header2.text = 'Прибор исправен'
$lbl_header2.modulate = Color(0,1,0,1)
else:
$lbl_header2.text = "Прибор не исправен"
$lbl_header2.text = 'Прибор не исправен'
$lbl_header2.modulate = Color(1,0,0,1)
$lbl_header2.visible = true