mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-27 08:02:14 +01:00
Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
632663cd9f
commit
1a4f7a7754
@@ -1389,6 +1389,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||
// way to get force font adjustment
|
||||
strlen bEntity1.txt,sys0
|
||||
//check 2nd last char for ¬
|
||||
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||
if(tTmp.txt=="¬")
|
||||
{
|
||||
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||
covx tTmp.txt,sys1,0,0
|
||||
bEntity1.font=sys1
|
||||
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||
}
|
||||
vis bEntity1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -1410,6 +1421,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||
// way to get force font adjustment
|
||||
strlen bEntity2.txt,sys0
|
||||
//check 2nd last char for ¬
|
||||
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||
if(tTmp.txt=="¬")
|
||||
{
|
||||
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||
covx tTmp.txt,sys1,0,0
|
||||
bEntity2.font=sys1
|
||||
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||
}
|
||||
vis bEntity2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -1431,6 +1453,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||
// way to get force font adjustment
|
||||
strlen bEntity3.txt,sys0
|
||||
//check 2nd last char for ¬
|
||||
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||
if(tTmp.txt=="¬")
|
||||
{
|
||||
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||
covx tTmp.txt,sys1,0,0
|
||||
bEntity3.font=sys1
|
||||
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||
}
|
||||
vis bEntity3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -1452,6 +1485,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||
// way to get force font adjustment
|
||||
strlen bEntity4.txt,sys0
|
||||
//check 2nd last char for ¬
|
||||
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||
if(tTmp.txt=="¬")
|
||||
{
|
||||
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||
covx tTmp.txt,sys1,0,0
|
||||
bEntity4.font=sys1
|
||||
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||
}
|
||||
vis bEntity4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -1473,6 +1517,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||
// way to get force font adjustment
|
||||
strlen bEntity5.txt,sys0
|
||||
//check 2nd last char for ¬
|
||||
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||
if(tTmp.txt=="¬")
|
||||
{
|
||||
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||
covx tTmp.txt,sys1,0,0
|
||||
bEntity5.font=sys1
|
||||
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||
}
|
||||
vis bEntity5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -1494,6 +1549,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||
// way to get force font adjustment
|
||||
strlen bEntity6.txt,sys0
|
||||
//check 2nd last char for ¬
|
||||
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||
if(tTmp.txt=="¬")
|
||||
{
|
||||
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||
covx tTmp.txt,sys1,0,0
|
||||
bEntity6.font=sys1
|
||||
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||
}
|
||||
vis bEntity6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
@@ -1515,6 +1581,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity7.txt,"~",52
|
||||
// way to get force font adjustment
|
||||
strlen bEntity7.txt,sys0
|
||||
//check 2nd last char for ¬
|
||||
substr bEntity7.txt,tTmp.txt,sys0-2,1
|
||||
if(tTmp.txt=="¬")
|
||||
{
|
||||
substr bEntity7.txt,tTmp.txt,sys0-1,1
|
||||
covx tTmp.txt,sys1,0,0
|
||||
bEntity7.font=sys1
|
||||
substr bEntity7.txt,bEntity7.txt,0,sys0-2
|
||||
}
|
||||
vis bEntity7,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",53
|
||||
@@ -1536,6 +1613,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity8.txt,"~",58
|
||||
// way to get force font adjustment
|
||||
strlen bEntity8.txt,sys0
|
||||
//check 2nd last char for ¬
|
||||
substr bEntity8.txt,tTmp.txt,sys0-2,1
|
||||
if(tTmp.txt=="¬")
|
||||
{
|
||||
substr bEntity8.txt,tTmp.txt,sys0-1,1
|
||||
covx tTmp.txt,sys1,0,0
|
||||
bEntity8.font=sys1
|
||||
substr bEntity8.txt,bEntity8.txt,0,sys0-2
|
||||
}
|
||||
vis bEntity8,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",59
|
||||
|
||||
Reference in New Issue
Block a user