Корректировка рабочих температур УМ

This commit is contained in:
TotMaxim
2025-12-09 20:10:57 +03:00
parent f34984872e
commit e2237742b4
8 changed files with 20 additions and 18 deletions

View File

@@ -16,7 +16,7 @@ func _ready() -> void:
unit_prd_k = prd_k_module.unit_control
var power_amplifier: Array = get_tree().get_nodes_in_group('power_amplifier')
for temp in power_amplifier:
temp.value1 = -70
temp.value1 = -100
# Подписываемся на сигналы
signaller.conn(signaller.start_contol_device, Callable(self, '_on_start_control'))
unit_prd_k.connect('control_is_over', Callable(self, 'on_press_device'))

View File

@@ -16,7 +16,7 @@ func _ready() -> void:
unit_prd_n = prd_n_module.unit_control
var power_amplifier: Array = get_tree().get_nodes_in_group('power_amplifier')
for temp in power_amplifier:
temp.value1 = -70
temp.value1 = -100
# Подписываемся на сигналы
signaller.conn(signaller.start_contol_device, Callable(self, '_on_start_control'))
unit_prd_n.connect('control_is_over', Callable(self, 'on_press_device'))

View File

@@ -16,7 +16,7 @@ func _ready() -> void:
unit_prd_v = prd_v_module.unit_control
var power_amplifier: Array = get_tree().get_nodes_in_group('power_amplifier')
for temp in power_amplifier:
temp.value1 = -70
temp.value1 = -100
# Подписываемся на сигналы
signaller.conn(signaller.start_contol_device, Callable(self, '_on_start_control'))
unit_prd_v.connect('control_is_over', Callable(self, 'on_press_device'))

View File

@@ -97,6 +97,7 @@ offset_bottom = 27.0
tooltip_text = "Задействовать режим Тренаж"
focus_mode = 0
theme_override_colors/font_hover_pressed_color = Color(0, 0, 0, 1)
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
theme_override_styles/hover = SubResource("StyleBoxFlat_cw2ss")
theme_override_styles/pressed = SubResource("StyleBoxFlat_nmdfd")

View File

@@ -35,7 +35,7 @@ signal pressed(control: PanelContainer)
if not is_inside_tree():
return
$margin/vbox/grid1/level7.value = v
$margin/vbox/grid1/level7.tint_progress = Color.RED if v >= 50 else Color.GOLD if v >= 40 else Color.WHITE
$margin/vbox/grid1/level7.tint_progress = Color.RED if v >= 70 else Color.GOLD if v >= 55 else Color.WHITE
on_level_changed(v, $margin/vbox/grid1/level7, value1_info)
@@ -273,9 +273,9 @@ theme_override_styles/panel = SubResource("StyleBoxEmpty_3nd2u")
script = SubResource("GDScript_oj3k3")
textures = [ExtResource("1_n1aqt"), ExtResource("2_rim3u"), ExtResource("3_3w8fg")]
value0 = [20.0, 30.0, 40.0, 50.0, 60.0, 70.0]
min_value1 = -40.0
min_value1 = -60.0
max_value0 = 1400.0
max_value1 = 55.0
max_value1 = 75.0
step0 = 1.0
step1 = 1.0
value_name0 = "P,%"
@@ -478,8 +478,8 @@ tooltip_text = "
Текущее: 0.00
Диапазон: -40.00…55.00"
mouse_filter = 0
min_value = -40.0
max_value = 55.0
min_value = -60.0
max_value = 75.0
fill_mode = 3
nine_patch_stretch = true
stretch_margin_left = 8

View File

@@ -35,7 +35,7 @@ signal pressed(control: PanelContainer)
if not is_inside_tree():
return
$margin/vbox/grid1/level7.value = v
$margin/vbox/grid1/level7.tint_progress = Color.RED if v >= 50 else Color.GOLD if v >= 40 else Color.WHITE
$margin/vbox/grid1/level7.tint_progress = Color.RED if v >= 70 else Color.GOLD if v >= 55 else Color.WHITE
on_level_changed(v, $margin/vbox/grid1/level7, value1_info)
@@ -259,10 +259,10 @@ theme_override_styles/panel = SubResource("StyleBoxEmpty_3nd2u")
script = SubResource("GDScript_oj3k3")
textures = [ExtResource("1_uojqc"), ExtResource("2_a8ar3"), ExtResource("3_xwd13")]
value0 = [20.0, 30.0, 40.0, 50.0, 60.0, 70.0]
value1 = -40.0
min_value1 = -40.0
value1 = -100.0
min_value1 = -60.0
max_value0 = 1400.0
max_value1 = 55.0
max_value1 = 75.0
step0 = 1.0
step1 = 1.0
value_name0 = "P,%"
@@ -365,12 +365,12 @@ layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "
Текущее: -40.00
Диапазон: -40.00…55.00"
Текущее: -100.00
Диапазон: -60.00…75.00"
mouse_filter = 0
min_value = -40.0
max_value = 55.0
value = -40.0
min_value = -60.0
max_value = 75.0
value = -60.0
fill_mode = 3
nine_patch_stretch = true
stretch_margin_left = 8

View File

@@ -635,6 +635,7 @@ 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

View File

@@ -383,8 +383,8 @@ texture_normal = ExtResource("14_ggrwd")
[connection signal="toggled" from="btn_activate" to="." method="on_btn_activate_toggled"]
[connection signal="toggled" from="btn_center" to="." method="on_btn_center_toggled"]
[connection signal="button_down" from="zoom_plus" to="tilemap" method="_on_zoom_plus_button_down"]
[connection signal="button_up" from="zoom_plus" to="tilemap" method="_on_zoom_button_up"]
[connection signal="button_up" from="zoom_plus" to="tilemap" method="_on_zoom_plus_button_up"]
[connection signal="button_up" from="zoom_plus" to="tilemap" method="_on_zoom_button_up"]
[connection signal="button_down" from="zoom_minus" to="tilemap" method="_on_zoom_minus_button_down"]
[connection signal="button_up" from="zoom_minus" to="tilemap" method="_on_zoom_button_up"]
[connection signal="pressed" from="btn_all_work" to="." method="_on_btn_all_work_pressed"]