Rebuilt currentpage engine
This commit is contained in:
@@ -18,9 +18,9 @@ Page alarm
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"alarm\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "alarm",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis bt_home,0
|
||||
|
||||
@@ -12,6 +12,12 @@ Page boot
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
printh 92
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "boot",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
dim=0
|
||||
vis bt_reboot,0
|
||||
covx display_mode,aux2.txt,0,0
|
||||
|
||||
@@ -18,9 +18,9 @@ Page buttonpage01
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"buttonpage01\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "buttonpage01",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis 255,0
|
||||
|
||||
@@ -18,9 +18,9 @@ Page buttonpage02
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"buttonpage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "buttonpage02",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis 255,0
|
||||
|
||||
@@ -18,9 +18,9 @@ Page buttonpage03
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"buttonpage03\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "buttonpage03",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis 255,0
|
||||
|
||||
@@ -18,9 +18,9 @@ Page buttonpage04
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"buttonpage04\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "buttonpage04",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis 255,0
|
||||
|
||||
@@ -15,9 +15,9 @@ Page climate
|
||||
if(api==1||embedded.val==1)
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"climate\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "climate",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis target_icon,0
|
||||
|
||||
@@ -18,9 +18,9 @@ Page confirm
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"confirm\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "confirm",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page cover
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"cover\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "cover",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page entitypage01
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"entitypage01\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "entitypage01",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -12,16 +12,15 @@ Page entitypage02
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
dim=brightness
|
||||
if(api==0)
|
||||
{
|
||||
page home
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"entitypage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "entitypage02",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page entitypage03
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"entitypage03\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "entitypage03",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page entitypage04
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"entitypage04\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "entitypage04",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page fan
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"fan\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "fan",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -13,9 +13,9 @@ Page home
|
||||
Events
|
||||
Preinitialize Event
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"home\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "home",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis bt_notific,is_notification
|
||||
|
||||
@@ -18,9 +18,9 @@ Page keyb_num
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"keyb_num\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "keyb_num",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page light
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"light\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "light",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis light_b_press,1
|
||||
|
||||
@@ -18,9 +18,9 @@ Page media_player
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"media_player\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "media_player",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page notification
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"notification\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "notification",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -13,9 +13,9 @@ Page qrcode
|
||||
Events
|
||||
Preinitialize Event
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"qrcode\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "qrcode",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
|
||||
@@ -12,13 +12,13 @@ Page screensaver
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
dim=0
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"screensaver\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "screensaver",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
dim=0
|
||||
|
||||
Touch Release Event
|
||||
page orign.val
|
||||
|
||||
@@ -12,16 +12,16 @@ Page settings
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
printh 92
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "settings",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
covx brightslider.val,bright_text.txt,0,0
|
||||
bright_text.txt+="%"
|
||||
covx dimslider.val,dim_text.txt,0,0
|
||||
dim_text.txt+="%"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints "{\"page\": \"settings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis lbl_sleep,0
|
||||
vis bt_sleep,0
|
||||
|
||||
|
||||
@@ -18,9 +18,9 @@ Page weather01
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"weather01\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "weather01",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page weather02
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"weather02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "weather02",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page weather03
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"weather03\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "weather03",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page weather04
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"weather04\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "weather04",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ Page weather05
|
||||
}else
|
||||
{
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "currentpage",0
|
||||
printh 00
|
||||
prints "{\"page\": \"weather05\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
prints "weather05",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user