@@ -1815,7 +1815,8 @@ script:
|
||||
}
|
||||
|
||||
- id: display_wrapped_text
|
||||
mode: queued
|
||||
mode: parallel
|
||||
max_runs: 5
|
||||
parameters:
|
||||
component: string
|
||||
text_to_display: string
|
||||
@@ -2565,18 +2566,14 @@ script:
|
||||
|
||||
- id: set_component_visibility
|
||||
mode: queued
|
||||
max_runs: 15
|
||||
parameters:
|
||||
component_id: string
|
||||
show: bool
|
||||
then:
|
||||
- lambda: |-
|
||||
nspanel_ha_blueprint::NextionComponent component = nspanel_ha_blueprint::extractNextionComponent(component_id, current_page->state);
|
||||
if (component.is_current_page) {
|
||||
if (show)
|
||||
disp1->show_component(component.component_id.c_str());
|
||||
else
|
||||
disp1->hide_component(component.component_id.c_str());
|
||||
}
|
||||
if (component.is_current_page) disp1->send_command_printf("vis %s,%i", component.component_id.c_str(), show ? 1 : 0);
|
||||
|
||||
- id: setup_sequence
|
||||
mode: restart
|
||||
|
||||
Reference in New Issue
Block a user