diff --git a/HMI/n2t-out/cardEntities.txt b/HMI/n2t-out/cardEntities.txt index fcd79c76..df61c953 100644 --- a/HMI/n2t-out/cardEntities.txt +++ b/HMI/n2t-out/cardEntities.txt @@ -1583,6 +1583,10 @@ Timer tmSerial { page pageStartup } + if(tId.txt=="pageNotify") + { + page popupNotify + } } if(tInstruction.txt=="time") { diff --git a/HMI/n2t-out/cardMedia.txt b/HMI/n2t-out/cardMedia.txt index 511f3306..c19c3f5c 100644 --- a/HMI/n2t-out/cardMedia.txt +++ b/HMI/n2t-out/cardMedia.txt @@ -484,6 +484,10 @@ Timer tmSerial { page pageStartup } + if(tId.txt=="pageNotify") + { + page popupNotify + } } // end of user code udelete payloadLength-1 diff --git a/HMI/n2t-out/cardThermo.txt b/HMI/n2t-out/cardThermo.txt index 67864336..52cfb87d 100644 --- a/HMI/n2t-out/cardThermo.txt +++ b/HMI/n2t-out/cardThermo.txt @@ -513,6 +513,10 @@ Timer tmSerial { page pageStartup } + if(tId.txt=="pageNotify") + { + page popupNotify + } } // end of user code udelete payloadLength-1 diff --git a/HMI/n2t-out/pageStartup.txt b/HMI/n2t-out/pageStartup.txt index 93f16602..004ff33d 100644 --- a/HMI/n2t-out/pageStartup.txt +++ b/HMI/n2t-out/pageStartup.txt @@ -323,6 +323,10 @@ Timer tmSerial { page pageStartup } + if(tId.txt=="pageNotify") + { + page popupNotify + } } // end of user code udelete payloadLength-1 diff --git a/HMI/n2t-out/popupNotify.txt b/HMI/n2t-out/popupNotify.txt index ebb04f9a..2f181354 100644 --- a/HMI/n2t-out/popupNotify.txt +++ b/HMI/n2t-out/popupNotify.txt @@ -17,7 +17,7 @@ Page popupNotify vis tSend,0 vis tTmp,0 vis tInstruction,0 - vis tItem,0 + vis tId,0 //page open event // event,pageOpenDetail,typeOfPage,tEntityName // craft command @@ -74,7 +74,7 @@ Text tInstruction Text : Max. Text Size : 20 -Text tItem +Text tId Attributes ID : 10 Scope : local @@ -290,6 +290,44 @@ Timer tmSerial spstr strCommand.txt,tTmp.txt,",",1 covx tTmp.txt,sleepTimeout,0,0 } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,",",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,",",2 + if(tId.txt=="pageNotify") + { + //yay, we are already on the correct page + }else + { + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete u[2]+3 + bufferPos=0 + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="pageThermo") + { + page cardThermo + } + } // end of user code udelete payloadLength-1 bufferPos=0 diff --git a/HMI/n2t-out/screensaver.txt b/HMI/n2t-out/screensaver.txt index d6ac52a0..e67c3ce1 100644 --- a/HMI/n2t-out/screensaver.txt +++ b/HMI/n2t-out/screensaver.txt @@ -416,6 +416,10 @@ Timer tmSerial { page pageStartup } + if(tId.txt=="pageNotify") + { + page popupNotify + } } // end of user code udelete payloadLength-1