fixed serial cardGrid

This commit is contained in:
joBr99
2022-04-04 23:25:34 +02:00
parent b734752685
commit f47360544a
5 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -3,7 +3,7 @@ head = sharedhead + """
if(tInstruction.txt=="entityUpd")
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,",",1
spstr strCommand.txt,tHeading.txt,"~",1
""" + navigation
print(head)
start = 3
@@ -11,9 +11,9 @@ for i in range(1,7):
idxstart = start + (i-1)*6
item = f"""
// get Type
spstr strCommand.txt,type{i}.txt,",",{idxstart}
spstr strCommand.txt,type{i}.txt,"~",{idxstart}
// get internal name
spstr strCommand.txt,entn{i}.txt,",",{idxstart+1}
spstr strCommand.txt,entn{i}.txt,"~",{idxstart+1}
if(type{i}.txt=="delete"||type{i}.txt=="")
{{
vis tEntity{i},0
@@ -21,14 +21,14 @@ for i in range(1,7):
}}else
{{
// change icon
spstr strCommand.txt,bEntity{i}.txt,",",{idxstart+2}
spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
vis bEntity{i},1
// change icon color
spstr strCommand.txt,tTmp.txt,",",{idxstart+3}
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
covx tTmp.txt,sys0,0,0
bEntity{i}.pco=sys0
// set name
spstr strCommand.txt,tEntity{i}.txt,",",{idxstart+4}
spstr strCommand.txt,tEntity{i}.txt,"~",{idxstart+4}
vis tEntity{i},1
}}
"""

Binary file not shown.

Binary file not shown.