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