Clean-up Cover page
I'm preparing this page to have icons changing based on the device_class selected to a cover.
This commit is contained in:
@@ -308,7 +308,7 @@ Hotspot bt_home
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
bt_home_pic.pic=134
|
||||
bt_home_pic.pic=44
|
||||
bt_home_text.bco=65024
|
||||
bt_home_text.pco=0
|
||||
bt_home_icon.bco=65024
|
||||
@@ -332,7 +332,7 @@ Hotspot bt_away
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
bt_away_pic.pic=134
|
||||
bt_away_pic.pic=44
|
||||
bt_away_text.bco=65024
|
||||
bt_away_text.pco=0
|
||||
bt_away_icon.bco=65024
|
||||
@@ -356,7 +356,7 @@ Hotspot bt_night
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
bt_night_pic.pic=134
|
||||
bt_night_pic.pic=44
|
||||
bt_night_text.bco=65024
|
||||
bt_night_text.pco=0
|
||||
bt_night_icon.bco=65024
|
||||
@@ -380,7 +380,7 @@ Hotspot bt_vacat
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
bt_vacat_pic.pic=134
|
||||
bt_vacat_pic.pic=44
|
||||
bt_vacat_text.bco=65024
|
||||
bt_vacat_text.pco=0
|
||||
bt_vacat_icon.bco=65024
|
||||
@@ -404,7 +404,7 @@ Hotspot bt_bypass
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
bt_bypass_pic.pic=134
|
||||
bt_bypass_pic.pic=44
|
||||
bt_bypass_text.bco=65024
|
||||
bt_bypass_text.pco=0
|
||||
bt_bypass_icon.bco=65024
|
||||
@@ -428,7 +428,7 @@ Hotspot bt_disarm
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
bt_disarm_pic.pic=134
|
||||
bt_disarm_pic.pic=44
|
||||
bt_disarm_text.bco=65024
|
||||
bt_disarm_text.pco=0
|
||||
bt_disarm_icon.bco=65024
|
||||
|
||||
@@ -51,21 +51,21 @@ Page cover
|
||||
|
||||
Variable (string) va1
|
||||
Attributes
|
||||
ID : 9
|
||||
ID : 7
|
||||
Scope : local
|
||||
Text : newtxt
|
||||
Max. Text Size: 10
|
||||
|
||||
Variable (string) coversetting
|
||||
Attributes
|
||||
ID : 13
|
||||
ID : 11
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 255
|
||||
|
||||
Variable (string) back_page
|
||||
Attributes
|
||||
ID : 14
|
||||
ID : 12
|
||||
Scope : local
|
||||
Text : home
|
||||
Max. Text Size: 15
|
||||
@@ -102,7 +102,7 @@ Text page_label
|
||||
|
||||
Text icon_state
|
||||
Attributes
|
||||
ID : 11
|
||||
ID : 9
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -112,7 +112,7 @@ Text icon_state
|
||||
|
||||
Text battery_icon
|
||||
Attributes
|
||||
ID : 12
|
||||
ID : 10
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -150,7 +150,7 @@ Button cover_open
|
||||
Send Component ID: disabled
|
||||
State : unpressed
|
||||
Text :
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 3
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
@@ -170,7 +170,7 @@ Button cover_close
|
||||
Send Component ID: disabled
|
||||
State : unpressed
|
||||
Text :
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 3
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
@@ -184,13 +184,13 @@ Button cover_close
|
||||
|
||||
Button cover_stop
|
||||
Attributes
|
||||
ID : 10
|
||||
ID : 8
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
State : unpressed
|
||||
Text :
|
||||
Max. Text Size : 10
|
||||
Max. Text Size : 3
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
@@ -204,7 +204,7 @@ Button cover_stop
|
||||
|
||||
Button button_back
|
||||
Attributes
|
||||
ID : 15
|
||||
ID : 13
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -231,60 +231,3 @@ Button button_back
|
||||
page home
|
||||
}
|
||||
|
||||
Timer swipestore
|
||||
Attributes
|
||||
ID : 8
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : no
|
||||
|
||||
Events
|
||||
Timer Event
|
||||
swipex=tch0
|
||||
swipey=tch1
|
||||
|
||||
TouchCap swipe
|
||||
Attributes
|
||||
ID : 7
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
swipestore.en=1 // Start swipestore timer
|
||||
|
||||
Touch Release Event
|
||||
swipestore.en=0
|
||||
// Touch has ended, x
|
||||
if(tch0==0)
|
||||
{
|
||||
swipec=swipex-tch2
|
||||
// From Left to Right
|
||||
if(swipec>swipedx)
|
||||
{
|
||||
//page
|
||||
}
|
||||
// Right to Left
|
||||
swipec2=0-swipedx
|
||||
if(swipec<swipec2)
|
||||
{
|
||||
//page
|
||||
}
|
||||
}
|
||||
// Touch has ended, y
|
||||
if(tch1==0)
|
||||
{
|
||||
swipec=swipey-tch3
|
||||
// From Up to Down
|
||||
if(swipec>100)
|
||||
{
|
||||
//page
|
||||
}
|
||||
// Down to Up
|
||||
swipec2=0-swipedy
|
||||
if(swipec<-100)
|
||||
{
|
||||
//page
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 37 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 37 KiB |
@@ -138,7 +138,7 @@ Slider dimslider
|
||||
|
||||
Button button_back
|
||||
Attributes
|
||||
ID : 13
|
||||
ID : 11
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -152,7 +152,7 @@ Button button_back
|
||||
|
||||
Dual-state Button bt_reboot
|
||||
Attributes
|
||||
ID : 11
|
||||
ID : 9
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -162,7 +162,7 @@ Dual-state Button bt_reboot
|
||||
|
||||
Dual-state Button bt_sleep
|
||||
Attributes
|
||||
ID : 12
|
||||
ID : 10
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -172,7 +172,7 @@ Dual-state Button bt_sleep
|
||||
|
||||
Hotspot bt_bright_down
|
||||
Attributes
|
||||
ID : 14
|
||||
ID : 12
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -192,7 +192,7 @@ Hotspot bt_bright_down
|
||||
|
||||
Hotspot bt_bright_up
|
||||
Attributes
|
||||
ID : 15
|
||||
ID : 13
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -212,7 +212,7 @@ Hotspot bt_bright_up
|
||||
|
||||
Hotspot bt_dim_down
|
||||
Attributes
|
||||
ID : 16
|
||||
ID : 14
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -232,7 +232,7 @@ Hotspot bt_dim_down
|
||||
|
||||
Hotspot bt_dim_up
|
||||
Attributes
|
||||
ID : 17
|
||||
ID : 15
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -250,60 +250,3 @@ Hotspot bt_dim_up
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
Timer swipestore
|
||||
Attributes
|
||||
ID : 9
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : no
|
||||
|
||||
Events
|
||||
Timer Event
|
||||
swipex=tch0
|
||||
swipey=tch1
|
||||
|
||||
TouchCap swipe
|
||||
Attributes
|
||||
ID : 10
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
swipestore.en=1 // Start swipestore timer
|
||||
|
||||
Touch Release Event
|
||||
swipestore.en=0
|
||||
// Touch has ended, x
|
||||
if(tch0==0)
|
||||
{
|
||||
swipec=swipex-tch2
|
||||
// From Left to Right
|
||||
if(swipec>swipedx)
|
||||
{
|
||||
//page
|
||||
}
|
||||
// Right to Left
|
||||
swipec2=0-swipedx
|
||||
if(swipec<swipec2)
|
||||
{
|
||||
//page
|
||||
}
|
||||
}
|
||||
// Touch has ended, y
|
||||
if(tch1==0)
|
||||
{
|
||||
swipec=swipey-tch3
|
||||
// From Up to Down
|
||||
if(swipec>100)
|
||||
{
|
||||
//page
|
||||
}
|
||||
// Down to Up
|
||||
swipec2=0-swipedy
|
||||
if(swipec<-100)
|
||||
{
|
||||
//page
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user