diff --git a/HMI/code_gen/pages/cardGridSerial.py b/HMI/code_gen/pages/cardGridSerial.py index 2ba08725..bcf73f51 100644 --- a/HMI/code_gen/pages/cardGridSerial.py +++ b/HMI/code_gen/pages/cardGridSerial.py @@ -7,7 +7,7 @@ head = sharedhead + """ """ + navigation print(head) start = 14 -for i in range(1,7): +for i in range(1,9): idxstart = start + (i-1)*6 item = f""" // get Type @@ -22,6 +22,19 @@ for i in range(1,7): {{ // change icon spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2} + + // way to get force font adjustment + strlen bEntity{i}.txt,sys0 + //check 2nd last char for ¬ + substr bEntity{i}.txt,tTmp.txt,sys0-2,1 + if(tTmp.txt=="¬") + {{ + substr bEntity{i}.txt,tTmp.txt,sys0-1,1 + covx tTmp.txt,sys1,0,0 + bEntity{i}.font=sys1 + substr bEntity{i}.txt,bEntity{i}.txt,0,sys0-2 + }} + vis bEntity{i},1 // change icon color spstr strCommand.txt,tTmp.txt,"~",{idxstart+3} diff --git a/HMI/code_gen/pages/cardMedia.py b/HMI/code_gen/pages/cardMedia.py index 4367508d..ab8f8f07 100644 --- a/HMI/code_gen/pages/cardMedia.py +++ b/HMI/code_gen/pages/cardMedia.py @@ -71,6 +71,19 @@ for i in range(1,7): // change icon spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2} vis bEntity{i},1 + + // way to get force font adjustment + strlen bEntity{i}.txt,sys0 + //check 2nd last char for ¬ + substr bEntity{i}.txt,tTmp.txt,sys0-2,1 + if(tTmp.txt=="¬") + {{ + substr bEntity{i}.txt,tTmp.txt,sys0-1,1 + covx tTmp.txt,sys1,0,0 + bEntity{i}.font=sys1 + substr bEntity{i}.txt,bEntity{i}.txt,0,sys0-2 + }} + // change icon color spstr strCommand.txt,tTmp.txt,"~",{idxstart+3} covx tTmp.txt,sys0,0,0 @@ -79,6 +92,7 @@ for i in range(1,7): spstr strCommand.txt,tEntity{i}.txt,"~",{idxstart+4} vis tEntity{i},1 }} + """ print(item) foot = """ diff --git a/HMI/nspanel.HMI b/HMI/nspanel.HMI index a4df9320..ffc47b08 100644 Binary files a/HMI/nspanel.HMI and b/HMI/nspanel.HMI differ diff --git a/HMI/nspanel.tft b/HMI/nspanel.tft index 3684de74..b8e42ed1 100644 Binary files a/HMI/nspanel.tft and b/HMI/nspanel.tft differ