Word-wrap for Alarm page
This commit is contained in:
@@ -637,12 +637,12 @@ api:
|
||||
id(disp1).set_component_text_printf("bt_disarm_icon", "\uE99D"); //mdi:shield-off
|
||||
|
||||
// Alarm page - Button's text
|
||||
id(disp1).set_component_text_printf("bt_home_text", mui_alarm[0].c_str());
|
||||
id(disp1).set_component_text_printf("bt_away_text", mui_alarm[1].c_str());
|
||||
id(disp1).set_component_text_printf("bt_night_text", mui_alarm[2].c_str());
|
||||
id(disp1).set_component_text_printf("bt_vacat_text", mui_alarm[3].c_str());
|
||||
id(disp1).set_component_text_printf("bt_bypass_text", mui_alarm[4].c_str());
|
||||
id(disp1).set_component_text_printf("bt_disarm_text", mui_alarm[5].c_str());
|
||||
id(display_wrapped_text).execute("bt_home_text", mui_alarm[0].c_str(), 10);
|
||||
id(display_wrapped_text).execute("bt_away_text", mui_alarm[1].c_str(), 10);
|
||||
id(display_wrapped_text).execute("bt_night_text", mui_alarm[2].c_str(), 10);
|
||||
id(display_wrapped_text).execute("bt_vacat_text", mui_alarm[3].c_str(), 10);
|
||||
id(display_wrapped_text).execute("bt_bypass_text", mui_alarm[4].c_str(), 10);
|
||||
id(display_wrapped_text).execute("bt_disarm_text", mui_alarm[5].c_str(), 10);
|
||||
|
||||
// Alarm page - Buttons
|
||||
if (supported_features & 1) // Alarm - Button - Home
|
||||
|
||||
BIN
nspanel_eu.HMI
BIN
nspanel_eu.HMI
Binary file not shown.
BIN
nspanel_eu.tft
BIN
nspanel_eu.tft
Binary file not shown.
@@ -116,7 +116,7 @@ Text bt_home_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Home
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_away_text
|
||||
Attributes
|
||||
@@ -126,7 +126,7 @@ Text bt_away_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Away
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_night_text
|
||||
Attributes
|
||||
@@ -136,7 +136,7 @@ Text bt_night_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Night
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_vacat_text
|
||||
Attributes
|
||||
@@ -146,7 +146,7 @@ Text bt_vacat_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Vacation
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_bypass_text
|
||||
Attributes
|
||||
@@ -156,7 +156,7 @@ Text bt_bypass_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Bypass
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_disarm_text
|
||||
Attributes
|
||||
@@ -166,7 +166,7 @@ Text bt_disarm_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Disarm
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_home_icon
|
||||
Attributes
|
||||
|
||||
BIN
nspanel_us.HMI
BIN
nspanel_us.HMI
Binary file not shown.
BIN
nspanel_us.tft
BIN
nspanel_us.tft
Binary file not shown.
@@ -116,7 +116,7 @@ Text bt_home_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Home
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_away_text
|
||||
Attributes
|
||||
@@ -126,7 +126,7 @@ Text bt_away_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Away
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_night_text
|
||||
Attributes
|
||||
@@ -136,7 +136,7 @@ Text bt_night_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Night
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_vacat_text
|
||||
Attributes
|
||||
@@ -146,7 +146,7 @@ Text bt_vacat_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Vacation
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_bypass_text
|
||||
Attributes
|
||||
@@ -156,7 +156,7 @@ Text bt_bypass_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Bypass
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_disarm_text
|
||||
Attributes
|
||||
@@ -166,7 +166,7 @@ Text bt_disarm_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Disarm
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_home_icon
|
||||
Attributes
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -116,7 +116,7 @@ Text bt_home_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Home
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_away_text
|
||||
Attributes
|
||||
@@ -126,7 +126,7 @@ Text bt_away_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Away
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_night_text
|
||||
Attributes
|
||||
@@ -136,7 +136,7 @@ Text bt_night_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Night
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_vacat_text
|
||||
Attributes
|
||||
@@ -146,7 +146,7 @@ Text bt_vacat_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Vacation
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_bypass_text
|
||||
Attributes
|
||||
@@ -156,7 +156,7 @@ Text bt_bypass_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Bypass
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_disarm_text
|
||||
Attributes
|
||||
@@ -166,7 +166,7 @@ Text bt_disarm_text
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Disarm
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 22
|
||||
|
||||
Text bt_home_icon
|
||||
Attributes
|
||||
|
||||
@@ -25,8 +25,6 @@ Page home
|
||||
vis bt_qrcode,is_qrcode
|
||||
vis bt_entities,is_entities
|
||||
vis bt_alarm,is_alarm
|
||||
vis left_bt_text,0
|
||||
vis right_bt_text,0
|
||||
if(display_mode==3)
|
||||
{
|
||||
vis left_bt_text,0
|
||||
|
||||
Reference in New Issue
Block a user