ДКМ от ДОУ

This commit is contained in:
danil_tim
2025-02-12 11:03:27 +03:00
parent af9867c7c0
commit 50b60234d6
2 changed files with 4 additions and 27 deletions

View File

@@ -126,7 +126,7 @@ func _ready() -> void:
get_select_device.connect('item_selected', Callable(self, 'on_btn_select'))
node_select_device.get_node2(0,0).text = 'ПРИБОР'
node_select_device.set_columns_min_size([100, 100])
# Получение выбранного прибора при загрузке
if Constants.ADDRESSES.size() > 0:
get_select_device.select(0)
@@ -450,7 +450,7 @@ func _on_load_config():
func set_tab_and_buttons(tab_index: int, button_name: String) -> void:
$TabContainer.current_tab = tab_index
var side_panel = $Background/side_panel
for button in side_panel.get_children():
if button is Button:
button.button_pressed = (button.name == button_name)