Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text)

This commit is contained in:
joBr99
2022-05-21 09:36:02 +00:00
committed by github-actions[bot]
parent 0c82723630
commit ef568e9a5f
6 changed files with 113 additions and 157 deletions

View File

@@ -995,46 +995,9 @@ Button arm4
prints crcval,2
tCode.txt=""
Hotspot mSwipePrev
Attributes
ID : 35
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 9
Height : 470
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
//This thin hotspot down the edge will intercept swipes
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Hotspot mSwipeNext
Attributes
ID : 36
ID : 35
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1069,6 +1032,43 @@ Hotspot mSwipeNext
click bNext,1
}
Hotspot mSwipePrev
Attributes
ID : 36
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 9
Height : 470
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
//This thin hotspot down the edge will intercept swipes
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Hotspot mSwipeUp
Attributes
ID : 37

View File

@@ -30,14 +30,14 @@ screensaver
35 Component(s)
292 Line(s) of event code
235 Unique line(s) of event code
cardAlarm
38 Component(s)
360 Line(s) of event code
222 Unique line(s) of event code
cardQR
28 Component(s)
247 Line(s) of event code
137 Unique line(s) of event code
cardAlarm
38 Component(s)
360 Line(s) of event code
222 Unique line(s) of event code
cardGrid
42 Component(s)
435 Line(s) of event code