From 8ae5d606add9bfc090c9303829b959152ec3d8de Mon Sep 17 00:00:00 2001 From: sasha80 Date: Fri, 21 Mar 2025 09:53:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0.=20=D0=98=D0=BD=D0=B4=D0=B8=D0=BA=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8F=20=D1=86=D0=B2=D0=B5=D1=82=D0=BE=D0=BC=20=D0=B4?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=BE=D0=B2=D0=B5=D1=80=D0=BD=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B8=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scenes/pribor-uyep/sch3-view.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scenes/pribor-uyep/sch3-view.gd b/scenes/pribor-uyep/sch3-view.gd index 12f03f6c..319abb0e 100644 --- a/scenes/pribor-uyep/sch3-view.gd +++ b/scenes/pribor-uyep/sch3-view.gd @@ -36,6 +36,7 @@ func on_line_changed_sch3(unit_sch3): regs_input.clear() switches_sync = false $margin/vbox/grid1/lbl_freq.text = '<нет данных>' + $margin/vbox/grid1/lbl_freq.self_modulate = Color.CADET_BLUE $margin/vbox/grid1/state_freq.texture = textures[STATE_VAL.NONE] $margin/vbox/grid/state.texture = textures[STATE_VAL.NONE] @@ -127,6 +128,7 @@ func on_input(base_addr: int, data: Array): regs_input[base_addr + i] = data[i] # Таблица 3.15, Регистр PowerState $margin/vbox/grid1/lbl_freq.text = '%d' % (regs_input[4] & 0x1ff) + $margin/vbox/grid1/lbl_freq.self_modulate = Color.WHITE $margin/vbox/grid1/state_freq.texture \ = textures[STATE_VAL.GOOD] if regs_input[4] & (1 << 15) \ else textures[STATE_VAL.ERROR]