Clean-up page settings

This commit is contained in:
Edward Firmo
2023-09-01 20:27:56 +02:00
parent 0265dd8826
commit 0a3babfbce
14 changed files with 287 additions and 41 deletions

View File

@@ -13,6 +13,8 @@ Page settings
Events
Preinitialize Event
dim=brightness
covx brightslider.val,bright_text.txt,0,0
covx dimslider.val,dim_text.txt,0,0
printh 92
prints "nspanelevent",0
printh 00
@@ -36,27 +38,27 @@ Page settings
printh 00
printh FF FF FF
Text a03
Text bright_text
Attributes
ID : 3
Scope : global
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 80
Max. Text Size : 3
Text a04
Text dim_text
Attributes
ID : 4
Scope : global
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 10
Max. Text Size : 3
Text a06
Text lbl_reboot
Attributes
ID : 5
Scope : local
@@ -66,7 +68,7 @@ Text a06
Text : Reboot
Max. Text Size : 6
Text a07
Text lbl_sleep
Attributes
ID : 6
Scope : local
@@ -76,7 +78,7 @@ Text a07
Text : Sleep
Max. Text Size : 5
Text a08
Text lbl_brightness
Attributes
ID : 7
Scope : local
@@ -86,7 +88,7 @@ Text a08
Text : Brightness
Max. Text Size : 10
Text a09
Text lbl_dimming
Attributes
ID : 8
Scope : local
@@ -108,6 +110,7 @@ Slider brightslider
Events
Touch Release Event
covx brightslider.val,bright_text.txt,0,0
printh 91
prints "brightslider",0
printh 00
@@ -126,6 +129,7 @@ Slider dimslider
Events
Touch Release Event
covx dimslider.val,dim_text.txt,0,0
printh 91
prints "dimslider",0
printh 00
@@ -146,7 +150,7 @@ Button button_back
Touch Press Event
page home
Dual-state Button bt0
Dual-state Button bt_reboot
Attributes
ID : 11
Scope : local
@@ -154,9 +158,9 @@ Dual-state Button bt0
Send Component ID: on press and release
State : unpressed
Text :
Max. Text Size : 0
Max. Text Size : 3
Dual-state Button bt1
Dual-state Button bt_sleep
Attributes
ID : 12
Scope : global
@@ -166,6 +170,86 @@ Dual-state Button bt1
Text :
Max. Text Size : 0
Hotspot bt_bright_down
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Release Event
if(brightslider.val>0)
{
brightslider.val--
covx brightslider.val,bright_text.txt,0,0
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
}
Hotspot bt_bright_up
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Release Event
if(brightslider.val<100)
{
brightslider.val++
covx brightslider.val,bright_text.txt,0,0
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
}
Hotspot bt_dim_down
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Release Event
if(dimslider.val>0)
{
dimslider.val--
covx dimslider.val,dim_text.txt,0,0
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
}
Hotspot bt_dim_up
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Release Event
if(dimslider.val<100)
{
dimslider.val++
covx dimslider.val,dim_text.txt,0,0
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
}
Timer swipestore
Attributes
ID : 9