mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 07:54:25 +01:00
slider fix 1 (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
85e898e70c
commit
1890f2e38e
@@ -815,7 +815,7 @@
|
|||||||
│ }
|
│ }
|
||||||
│
|
│
|
||||||
│ - Postinitialize Event
|
│ - Postinitialize Event
|
||||||
│ - xstr hBrightness.x,hBrightness.y,100,250,7,BLACK,6371,0,0,1,"a"
|
│ - //xstr hBrightness.x,hBrightness.y,100,250,7,BLACK,6371,0,0,1,"a"
|
||||||
│ -
|
│ -
|
||||||
│ -Variable (int32) col
|
│ -Variable (int32) col
|
||||||
│ - Attributes
|
│ - Attributes
|
||||||
@@ -991,7 +991,7 @@
|
|||||||
│ tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
│ tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
||||||
│ sys0=tch0
|
│ sys0=tch0
|
||||||
│ sys0=sys0-pColorWheel.x
|
│ sys0=sys0-pColorWheel.x
|
||||||
│ @@ -171,37 +244,24 @@
|
│ @@ -171,38 +244,24 @@
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
│ prints sys0,2
|
│ prints sys0,2
|
||||||
│ prints tSend.txt,0
|
│ prints tSend.txt,0
|
||||||
@@ -1016,11 +1016,12 @@
|
|||||||
│ Events
|
│ Events
|
||||||
│ Touch Release Event
|
│ Touch Release Event
|
||||||
│ - //draw black background
|
│ - //draw black background
|
||||||
│ - xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,BLACK,6371,0,0,1,"a"
|
│ - //xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,GREEN,6371,0,0,1,"a"
|
||||||
|
│ - xstr hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,7,8484,6371,0,0,1,"a"
|
||||||
│ - //draw draw colored bar at the position of the current brightness value
|
│ - //draw draw colored bar at the position of the current brightness value
|
||||||
│ - xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,BLACK,2,4,1,"a"
|
│ - xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,8484,2,4,1,"a"
|
||||||
│ - //paint an inverse of the character over everything, this rounds the corner at the bottom
|
│ - //paint an inverse of the character over everything, this rounds the corner at the bottom
|
||||||
│ - xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,6371,0,0,0,3,"b"
|
│ - xstr hBrightness.x,hBrightness.y+1,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
│ - if(hBrightness.val>7)
|
│ - if(hBrightness.val>7)
|
||||||
│ - {
|
│ - {
|
||||||
│ - //draw cursor
|
│ - //draw cursor
|
||||||
@@ -1028,7 +1029,7 @@
|
|||||||
│ - }
|
│ - }
|
||||||
│ - //draw black strip to the right of the slider
|
│ - //draw black strip to the right of the slider
|
||||||
│ - //force a redraw of the slider, to ensure it is on top
|
│ - //force a redraw of the slider, to ensure it is on top
|
||||||
│ - vis hBrightness,1
|
│ - //vis hBrightness,1
|
||||||
│ tmCooldown.en=1
|
│ tmCooldown.en=1
|
||||||
│ tmCooldown.tim=2500
|
│ tmCooldown.tim=2500
|
||||||
│ //craft command
|
│ //craft command
|
||||||
@@ -1036,7 +1037,7 @@
|
|||||||
│ covx hBrightness.val,tTmp.txt,0,0
|
│ covx hBrightness.val,tTmp.txt,0,0
|
||||||
│ tSend.txt+=tTmp.txt
|
│ tSend.txt+=tTmp.txt
|
||||||
│ //send calc crc
|
│ //send calc crc
|
||||||
│ @@ -214,20 +274,21 @@
|
│ @@ -215,20 +274,21 @@
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
│ prints sys0,2
|
│ prints sys0,2
|
||||||
│ prints tSend.txt,0
|
│ prints tSend.txt,0
|
||||||
@@ -1064,7 +1065,7 @@
|
|||||||
│ tmCooldown.tim=2500
|
│ tmCooldown.tim=2500
|
||||||
│ //craft command
|
│ //craft command
|
||||||
│ tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
|
│ tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
|
||||||
│ @@ -243,20 +304,21 @@
|
│ @@ -244,20 +304,21 @@
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
│ prints sys0,2
|
│ prints sys0,2
|
||||||
│ prints tSend.txt,0
|
│ prints tSend.txt,0
|
||||||
@@ -1092,7 +1093,7 @@
|
|||||||
│ //send calc crc
|
│ //send calc crc
|
||||||
│ btlen tSend.txt,sys0
|
│ btlen tSend.txt,sys0
|
||||||
│ crcrest 1,0xffff // reset CRC
|
│ crcrest 1,0xffff // reset CRC
|
||||||
│ @@ -267,69 +329,73 @@
|
│ @@ -268,69 +329,73 @@
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
│ prints sys0,2
|
│ prints sys0,2
|
||||||
│ prints tSend.txt,0
|
│ prints tSend.txt,0
|
||||||
@@ -1188,7 +1189,7 @@
|
|||||||
│ tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
│ tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
||||||
│ covx btOnOff1.val,tTmp.txt,0,0
|
│ covx btOnOff1.val,tTmp.txt,0,0
|
||||||
│ tSend.txt+=tTmp.txt
|
│ tSend.txt+=tTmp.txt
|
||||||
│ @@ -407,50 +473,48 @@
|
│ @@ -408,61 +473,48 @@
|
||||||
│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
│ spstr strCommand.txt,tInstruction.txt,"~",0
|
│ spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
│ spstr strCommand.txt,tTmp.txt,"~",1
|
│ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
@@ -1202,7 +1203,6 @@
|
|||||||
│ spstr strCommand.txt,tTmp.txt,"~",3
|
│ spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
│ covx tTmp.txt,sys0,0,0
|
│ covx tTmp.txt,sys0,0,0
|
||||||
│ - col.val=sys0
|
│ - col.val=sys0
|
||||||
│ - click hBrightness,0
|
|
||||||
│ - //tEntity.pco=sys0
|
│ - //tEntity.pco=sys0
|
||||||
│ + tIcon1.pco=sys0
|
│ + tIcon1.pco=sys0
|
||||||
│ // get Button State
|
│ // get Button State
|
||||||
@@ -1229,6 +1229,18 @@
|
|||||||
│ if(tmCooldown.en==0)
|
│ if(tmCooldown.en==0)
|
||||||
│ {
|
│ {
|
||||||
│ hBrightness.val=sys0
|
│ hBrightness.val=sys0
|
||||||
|
│ - //draw black background
|
||||||
|
│ - //xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,GREEN,6371,0,0,1,"a"
|
||||||
|
│ - xstr hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,7,8484,6371,0,0,1,"a"
|
||||||
|
│ - //draw draw colored bar at the position of the current brightness value
|
||||||
|
│ - xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,8484,2,4,1,"a"
|
||||||
|
│ - //paint an inverse of the character over everything, this rounds the corner at the bottom
|
||||||
|
│ - xstr hBrightness.x,hBrightness.y+1,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
│ - if(hBrightness.val>7)
|
||||||
|
│ - {
|
||||||
|
│ - //draw cursor
|
||||||
|
│ - fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
│ - }
|
||||||
│ }
|
│ }
|
||||||
│ }
|
│ }
|
||||||
│ // get ColorTemp value
|
│ // get ColorTemp value
|
||||||
@@ -1247,7 +1259,7 @@
|
|||||||
│ // switch mode
|
│ // switch mode
|
||||||
│ click bColor,1
|
│ click bColor,1
|
||||||
│ click bColor,0
|
│ click bColor,0
|
||||||
│ @@ -465,16 +529,16 @@
|
│ @@ -477,16 +529,16 @@
|
||||||
│ click bColor,1
|
│ click bColor,1
|
||||||
│ click bColor,0
|
│ click bColor,0
|
||||||
│ }
|
│ }
|
||||||
@@ -1266,7 +1278,7 @@
|
|||||||
│ }
|
│ }
|
||||||
│ // mode == 0 is rgb controls currently shown
|
│ // mode == 0 is rgb controls currently shown
|
||||||
│ if(mode.val==0)
|
│ if(mode.val==0)
|
||||||
│ @@ -485,36 +549,36 @@
|
│ @@ -497,36 +549,36 @@
|
||||||
│ }
|
│ }
|
||||||
│ }
|
│ }
|
||||||
│ // get Color value
|
│ // get Color value
|
||||||
|
|||||||
@@ -2190,7 +2190,7 @@
|
|||||||
│ }
|
│ }
|
||||||
│
|
│
|
||||||
│ - Postinitialize Event
|
│ - Postinitialize Event
|
||||||
│ - xstr hBrightness.x,hBrightness.y,100,250,7,BLACK,6371,0,0,1,"a"
|
│ - //xstr hBrightness.x,hBrightness.y,100,250,7,BLACK,6371,0,0,1,"a"
|
||||||
│ -
|
│ -
|
||||||
│ -Variable (int32) col
|
│ -Variable (int32) col
|
||||||
│ - Attributes
|
│ - Attributes
|
||||||
@@ -2366,7 +2366,7 @@
|
|||||||
│ tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
│ tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
||||||
│ sys0=tch0
|
│ sys0=tch0
|
||||||
│ sys0=sys0-pColorWheel.x
|
│ sys0=sys0-pColorWheel.x
|
||||||
│ @@ -171,37 +244,24 @@
|
│ @@ -171,38 +244,24 @@
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
│ prints sys0,2
|
│ prints sys0,2
|
||||||
│ prints tSend.txt,0
|
│ prints tSend.txt,0
|
||||||
@@ -2391,11 +2391,12 @@
|
|||||||
│ Events
|
│ Events
|
||||||
│ Touch Release Event
|
│ Touch Release Event
|
||||||
│ - //draw black background
|
│ - //draw black background
|
||||||
│ - xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,BLACK,6371,0,0,1,"a"
|
│ - //xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,GREEN,6371,0,0,1,"a"
|
||||||
|
│ - xstr hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,7,8484,6371,0,0,1,"a"
|
||||||
│ - //draw draw colored bar at the position of the current brightness value
|
│ - //draw draw colored bar at the position of the current brightness value
|
||||||
│ - xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,BLACK,2,4,1,"a"
|
│ - xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,8484,2,4,1,"a"
|
||||||
│ - //paint an inverse of the character over everything, this rounds the corner at the bottom
|
│ - //paint an inverse of the character over everything, this rounds the corner at the bottom
|
||||||
│ - xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,6371,0,0,0,3,"b"
|
│ - xstr hBrightness.x,hBrightness.y+1,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
│ - if(hBrightness.val>7)
|
│ - if(hBrightness.val>7)
|
||||||
│ - {
|
│ - {
|
||||||
│ - //draw cursor
|
│ - //draw cursor
|
||||||
@@ -2403,7 +2404,7 @@
|
|||||||
│ - }
|
│ - }
|
||||||
│ - //draw black strip to the right of the slider
|
│ - //draw black strip to the right of the slider
|
||||||
│ - //force a redraw of the slider, to ensure it is on top
|
│ - //force a redraw of the slider, to ensure it is on top
|
||||||
│ - vis hBrightness,1
|
│ - //vis hBrightness,1
|
||||||
│ tmCooldown.en=1
|
│ tmCooldown.en=1
|
||||||
│ tmCooldown.tim=2500
|
│ tmCooldown.tim=2500
|
||||||
│ //craft command
|
│ //craft command
|
||||||
@@ -2411,7 +2412,7 @@
|
|||||||
│ covx hBrightness.val,tTmp.txt,0,0
|
│ covx hBrightness.val,tTmp.txt,0,0
|
||||||
│ tSend.txt+=tTmp.txt
|
│ tSend.txt+=tTmp.txt
|
||||||
│ //send calc crc
|
│ //send calc crc
|
||||||
│ @@ -214,20 +274,21 @@
|
│ @@ -215,20 +274,21 @@
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
│ prints sys0,2
|
│ prints sys0,2
|
||||||
│ prints tSend.txt,0
|
│ prints tSend.txt,0
|
||||||
@@ -2439,7 +2440,7 @@
|
|||||||
│ tmCooldown.tim=2500
|
│ tmCooldown.tim=2500
|
||||||
│ //craft command
|
│ //craft command
|
||||||
│ tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
|
│ tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
|
||||||
│ @@ -243,20 +304,21 @@
|
│ @@ -244,20 +304,21 @@
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
│ prints sys0,2
|
│ prints sys0,2
|
||||||
│ prints tSend.txt,0
|
│ prints tSend.txt,0
|
||||||
@@ -2467,7 +2468,7 @@
|
|||||||
│ //send calc crc
|
│ //send calc crc
|
||||||
│ btlen tSend.txt,sys0
|
│ btlen tSend.txt,sys0
|
||||||
│ crcrest 1,0xffff // reset CRC
|
│ crcrest 1,0xffff // reset CRC
|
||||||
│ @@ -267,69 +329,73 @@
|
│ @@ -268,69 +329,73 @@
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
│ prints sys0,2
|
│ prints sys0,2
|
||||||
│ prints tSend.txt,0
|
│ prints tSend.txt,0
|
||||||
@@ -2563,7 +2564,7 @@
|
|||||||
│ tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
│ tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
||||||
│ covx btOnOff1.val,tTmp.txt,0,0
|
│ covx btOnOff1.val,tTmp.txt,0,0
|
||||||
│ tSend.txt+=tTmp.txt
|
│ tSend.txt+=tTmp.txt
|
||||||
│ @@ -407,50 +473,48 @@
|
│ @@ -408,61 +473,48 @@
|
||||||
│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
│ spstr strCommand.txt,tInstruction.txt,"~",0
|
│ spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
│ spstr strCommand.txt,tTmp.txt,"~",1
|
│ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
@@ -2577,7 +2578,6 @@
|
|||||||
│ spstr strCommand.txt,tTmp.txt,"~",3
|
│ spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
│ covx tTmp.txt,sys0,0,0
|
│ covx tTmp.txt,sys0,0,0
|
||||||
│ - col.val=sys0
|
│ - col.val=sys0
|
||||||
│ - click hBrightness,0
|
|
||||||
│ - //tEntity.pco=sys0
|
│ - //tEntity.pco=sys0
|
||||||
│ + tIcon1.pco=sys0
|
│ + tIcon1.pco=sys0
|
||||||
│ // get Button State
|
│ // get Button State
|
||||||
@@ -2604,6 +2604,18 @@
|
|||||||
│ if(tmCooldown.en==0)
|
│ if(tmCooldown.en==0)
|
||||||
│ {
|
│ {
|
||||||
│ hBrightness.val=sys0
|
│ hBrightness.val=sys0
|
||||||
|
│ - //draw black background
|
||||||
|
│ - //xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,GREEN,6371,0,0,1,"a"
|
||||||
|
│ - xstr hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,7,8484,6371,0,0,1,"a"
|
||||||
|
│ - //draw draw colored bar at the position of the current brightness value
|
||||||
|
│ - xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,8484,2,4,1,"a"
|
||||||
|
│ - //paint an inverse of the character over everything, this rounds the corner at the bottom
|
||||||
|
│ - xstr hBrightness.x,hBrightness.y+1,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
│ - if(hBrightness.val>7)
|
||||||
|
│ - {
|
||||||
|
│ - //draw cursor
|
||||||
|
│ - fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
│ - }
|
||||||
│ }
|
│ }
|
||||||
│ }
|
│ }
|
||||||
│ // get ColorTemp value
|
│ // get ColorTemp value
|
||||||
@@ -2622,7 +2634,7 @@
|
|||||||
│ // switch mode
|
│ // switch mode
|
||||||
│ click bColor,1
|
│ click bColor,1
|
||||||
│ click bColor,0
|
│ click bColor,0
|
||||||
│ @@ -465,16 +529,16 @@
|
│ @@ -477,16 +529,16 @@
|
||||||
│ click bColor,1
|
│ click bColor,1
|
||||||
│ click bColor,0
|
│ click bColor,0
|
||||||
│ }
|
│ }
|
||||||
@@ -2641,7 +2653,7 @@
|
|||||||
│ }
|
│ }
|
||||||
│ // mode == 0 is rgb controls currently shown
|
│ // mode == 0 is rgb controls currently shown
|
||||||
│ if(mode.val==0)
|
│ if(mode.val==0)
|
||||||
│ @@ -485,36 +549,36 @@
|
│ @@ -497,36 +549,36 @@
|
||||||
│ }
|
│ }
|
||||||
│ }
|
│ }
|
||||||
│ // get Color value
|
│ // get Color value
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
+++ /dev/fd/62 2023-04-16 20:10:37.417588148 +0000
|
+++ /dev/fd/62 2023-04-17 17:53:22.299449942 +0000
|
||||||
+I/n2t-out/Program.s.txt
|
+I/n2t-out/Program.s.txt
|
||||||
++ HMI/US/portrait/n2t-out/Program.s.txt
|
++ HMI/US/portrait/n2t-out/Program.s.txt
|
||||||
+1 +10,10 @@
|
+1 +10,10 @@
|
||||||
@@ -1580,7 +1580,7 @@
|
|||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ Postinitialize Event
|
+ Postinitialize Event
|
||||||
+ xstr hBrightness.x,hBrightness.y,100,250,7,BLACK,6371,0,0,1,"a"
|
+ //xstr hBrightness.x,hBrightness.y,100,250,7,BLACK,6371,0,0,1,"a"
|
||||||
+
|
+
|
||||||
+e (int32) col
|
+e (int32) col
|
||||||
+ributes
|
+ributes
|
||||||
@@ -1756,7 +1756,7 @@
|
|||||||
+ tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
+ tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
||||||
+ sys0=tch0
|
+ sys0=tch0
|
||||||
+ sys0=sys0-pColorWheel.x
|
+ sys0=sys0-pColorWheel.x
|
||||||
+37 +244,24 @@
|
+38 +244,24 @@
|
||||||
+ printh 55 bb
|
+ printh 55 bb
|
||||||
+ prints sys0,2
|
+ prints sys0,2
|
||||||
+ prints tSend.txt,0
|
+ prints tSend.txt,0
|
||||||
@@ -1781,11 +1781,12 @@
|
|||||||
+nts
|
+nts
|
||||||
+ Touch Release Event
|
+ Touch Release Event
|
||||||
+ //draw black background
|
+ //draw black background
|
||||||
+ xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,BLACK,6371,0,0,1,"a"
|
+ //xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,GREEN,6371,0,0,1,"a"
|
||||||
|
+ xstr hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,7,8484,6371,0,0,1,"a"
|
||||||
+ //draw draw colored bar at the position of the current brightness value
|
+ //draw draw colored bar at the position of the current brightness value
|
||||||
+ xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,BLACK,2,4,1,"a"
|
+ xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,8484,2,4,1,"a"
|
||||||
+ //paint an inverse of the character over everything, this rounds the corner at the bottom
|
+ //paint an inverse of the character over everything, this rounds the corner at the bottom
|
||||||
+ xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,6371,0,0,0,3,"b"
|
+ xstr hBrightness.x,hBrightness.y+1,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
+ if(hBrightness.val>7)
|
+ if(hBrightness.val>7)
|
||||||
+ {
|
+ {
|
||||||
+ //draw cursor
|
+ //draw cursor
|
||||||
@@ -1793,7 +1794,7 @@
|
|||||||
+ }
|
+ }
|
||||||
+ //draw black strip to the right of the slider
|
+ //draw black strip to the right of the slider
|
||||||
+ //force a redraw of the slider, to ensure it is on top
|
+ //force a redraw of the slider, to ensure it is on top
|
||||||
+ vis hBrightness,1
|
+ //vis hBrightness,1
|
||||||
+ tmCooldown.en=1
|
+ tmCooldown.en=1
|
||||||
+ tmCooldown.tim=2500
|
+ tmCooldown.tim=2500
|
||||||
+ //craft command
|
+ //craft command
|
||||||
@@ -1953,7 +1954,7 @@
|
|||||||
+ tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
+ tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
||||||
+ covx btOnOff1.val,tTmp.txt,0,0
|
+ covx btOnOff1.val,tTmp.txt,0,0
|
||||||
+ tSend.txt+=tTmp.txt
|
+ tSend.txt+=tTmp.txt
|
||||||
+50 +473,48 @@
|
+61 +473,48 @@
|
||||||
+ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
+ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
+ spstr strCommand.txt,tInstruction.txt,"~",0
|
+ spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",1
|
+ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
@@ -1967,7 +1968,6 @@
|
|||||||
+ spstr strCommand.txt,tTmp.txt,"~",3
|
+ spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
+ covx tTmp.txt,sys0,0,0
|
+ covx tTmp.txt,sys0,0,0
|
||||||
+ col.val=sys0
|
+ col.val=sys0
|
||||||
+ click hBrightness,0
|
|
||||||
+ //tEntity.pco=sys0
|
+ //tEntity.pco=sys0
|
||||||
+ tIcon1.pco=sys0
|
+ tIcon1.pco=sys0
|
||||||
+ // get Button State
|
+ // get Button State
|
||||||
@@ -1994,6 +1994,18 @@
|
|||||||
+ if(tmCooldown.en==0)
|
+ if(tmCooldown.en==0)
|
||||||
+ {
|
+ {
|
||||||
+ hBrightness.val=sys0
|
+ hBrightness.val=sys0
|
||||||
|
+ //draw black background
|
||||||
|
+ //xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,GREEN,6371,0,0,1,"a"
|
||||||
|
+ xstr hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,7,8484,6371,0,0,1,"a"
|
||||||
|
+ //draw draw colored bar at the position of the current brightness value
|
||||||
|
+ xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,8484,2,4,1,"a"
|
||||||
|
+ //paint an inverse of the character over everything, this rounds the corner at the bottom
|
||||||
|
+ xstr hBrightness.x,hBrightness.y+1,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
+ if(hBrightness.val>7)
|
||||||
|
+ {
|
||||||
|
+ //draw cursor
|
||||||
|
+ fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ // get ColorTemp value
|
+ // get ColorTemp value
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ screensaver2
|
|||||||
251 Unique line(s) of event code
|
251 Unique line(s) of event code
|
||||||
popupLight
|
popupLight
|
||||||
23 Component(s)
|
23 Component(s)
|
||||||
395 Line(s) of event code
|
399 Line(s) of event code
|
||||||
204 Unique line(s) of event code
|
208 Unique line(s) of event code
|
||||||
cardChart
|
cardChart
|
||||||
33 Component(s)
|
33 Component(s)
|
||||||
433 Line(s) of event code
|
433 Line(s) of event code
|
||||||
@@ -90,5 +90,5 @@ cardEntities
|
|||||||
Total
|
Total
|
||||||
21 Page(s)
|
21 Page(s)
|
||||||
798 Component(s)
|
798 Component(s)
|
||||||
9242 Line(s) of event code
|
9246 Line(s) of event code
|
||||||
2334 Unique line(s) of event code
|
2336 Unique line(s) of event code
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ Page popupLight
|
|||||||
}
|
}
|
||||||
|
|
||||||
Postinitialize Event
|
Postinitialize Event
|
||||||
xstr hBrightness.x,hBrightness.y,100,250,7,BLACK,6371,0,0,1,"a"
|
//xstr hBrightness.x,hBrightness.y,100,250,7,BLACK,6371,0,0,1,"a"
|
||||||
|
|
||||||
Variable (int32) col
|
Variable (int32) col
|
||||||
Attributes
|
Attributes
|
||||||
@@ -257,11 +257,12 @@ Slider hBrightness
|
|||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
//draw black background
|
//draw black background
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,BLACK,6371,0,0,1,"a"
|
//xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,GREEN,6371,0,0,1,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,7,8484,6371,0,0,1,"a"
|
||||||
//draw draw colored bar at the position of the current brightness value
|
//draw draw colored bar at the position of the current brightness value
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,BLACK,2,4,1,"a"
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,8484,2,4,1,"a"
|
||||||
//paint an inverse of the character over everything, this rounds the corner at the bottom
|
//paint an inverse of the character over everything, this rounds the corner at the bottom
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,6371,0,0,0,3,"b"
|
xstr hBrightness.x,hBrightness.y+1,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
if(hBrightness.val>7)
|
if(hBrightness.val>7)
|
||||||
{
|
{
|
||||||
//draw cursor
|
//draw cursor
|
||||||
@@ -269,7 +270,7 @@ Slider hBrightness
|
|||||||
}
|
}
|
||||||
//draw black strip to the right of the slider
|
//draw black strip to the right of the slider
|
||||||
//force a redraw of the slider, to ensure it is on top
|
//force a redraw of the slider, to ensure it is on top
|
||||||
vis hBrightness,1
|
//vis hBrightness,1
|
||||||
tmCooldown.en=1
|
tmCooldown.en=1
|
||||||
tmCooldown.tim=2500
|
tmCooldown.tim=2500
|
||||||
//craft command
|
//craft command
|
||||||
@@ -589,7 +590,6 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
col.val=sys0
|
col.val=sys0
|
||||||
click hBrightness,0
|
|
||||||
//tEntity.pco=sys0
|
//tEntity.pco=sys0
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
@@ -611,6 +611,18 @@ Timer tmSerial
|
|||||||
if(tmCooldown.en==0)
|
if(tmCooldown.en==0)
|
||||||
{
|
{
|
||||||
hBrightness.val=sys0
|
hBrightness.val=sys0
|
||||||
|
//draw black background
|
||||||
|
//xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,GREEN,6371,0,0,1,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,7,8484,6371,0,0,1,"a"
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,8484,2,4,1,"a"
|
||||||
|
//paint an inverse of the character over everything, this rounds the corner at the bottom
|
||||||
|
xstr hBrightness.x,hBrightness.y+1,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ Page popupLight
|
|||||||
}
|
}
|
||||||
|
|
||||||
Postinitialize Event
|
Postinitialize Event
|
||||||
xstr hBrightness.x,hBrightness.y,100,250,7,BLACK,6371,0,0,1,"a"
|
//xstr hBrightness.x,hBrightness.y,100,250,7,BLACK,6371,0,0,1,"a"
|
||||||
|
|
||||||
Variable (int32) col
|
Variable (int32) col
|
||||||
Attributes
|
Attributes
|
||||||
@@ -185,11 +185,12 @@ Slider hBrightness
|
|||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
//draw black background
|
//draw black background
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,BLACK,6371,0,0,1,"a"
|
//xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,GREEN,6371,0,0,1,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,7,8484,6371,0,0,1,"a"
|
||||||
//draw draw colored bar at the position of the current brightness value
|
//draw draw colored bar at the position of the current brightness value
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,BLACK,2,4,1,"a"
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,8484,2,4,1,"a"
|
||||||
//paint an inverse of the character over everything, this rounds the corner at the bottom
|
//paint an inverse of the character over everything, this rounds the corner at the bottom
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,6371,0,0,0,3,"b"
|
xstr hBrightness.x,hBrightness.y+1,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
if(hBrightness.val>7)
|
if(hBrightness.val>7)
|
||||||
{
|
{
|
||||||
//draw cursor
|
//draw cursor
|
||||||
@@ -197,7 +198,7 @@ Slider hBrightness
|
|||||||
}
|
}
|
||||||
//draw black strip to the right of the slider
|
//draw black strip to the right of the slider
|
||||||
//force a redraw of the slider, to ensure it is on top
|
//force a redraw of the slider, to ensure it is on top
|
||||||
vis hBrightness,1
|
//vis hBrightness,1
|
||||||
tmCooldown.en=1
|
tmCooldown.en=1
|
||||||
tmCooldown.tim=2500
|
tmCooldown.tim=2500
|
||||||
//craft command
|
//craft command
|
||||||
@@ -416,7 +417,6 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
col.val=sys0
|
col.val=sys0
|
||||||
click hBrightness,0
|
|
||||||
//tEntity.pco=sys0
|
//tEntity.pco=sys0
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
@@ -438,6 +438,18 @@ Timer tmSerial
|
|||||||
if(tmCooldown.en==0)
|
if(tmCooldown.en==0)
|
||||||
{
|
{
|
||||||
hBrightness.val=sys0
|
hBrightness.val=sys0
|
||||||
|
//draw black background
|
||||||
|
//xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,GREEN,6371,0,0,1,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,7,8484,6371,0,0,1,"a"
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,7,col.val,8484,2,4,1,"a"
|
||||||
|
//paint an inverse of the character over everything, this rounds the corner at the bottom
|
||||||
|
xstr hBrightness.x,hBrightness.y+1,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
|
|||||||
Reference in New Issue
Block a user