Mercurial > public > ostc4
comparison Discovery/Src/tMenuSystem.c @ 999:ac25c35a3c97 GasConsumption
New Tab for dynamic configuration:
since more and more functions are added to the OSTC the space in the menus is getting short. To avoid problems a new Tab within the SYS menu has been added which shall focus an functions / views which are configuration dependend. In future this menu may have dynamic content dependend on which views are active or which sensors are connected. The Cview for compass and Timer have been moved to the new tab in the first step
| author | Ideenmodellierer |
|---|---|
| date | Mon, 28 Apr 2025 19:47:41 +0200 |
| parents | 44599695df41 |
| children | 21142f4fa968 |
comparison
equal
deleted
inserted
replaced
| 998:5a690195b6b7 | 999:ac25c35a3c97 |
|---|---|
| 144 { | 144 { |
| 145 strcpy(&text[textPointer],"\n\r"); | 145 strcpy(&text[textPointer],"\n\r"); |
| 146 textPointer += 2; | 146 textPointer += 2; |
| 147 } | 147 } |
| 148 | 148 |
| 149 if (line == 0 || line == 2) | |
| 150 { | |
| 151 if(t7_customview_disabled(CVIEW_Timer)) | |
| 152 { | |
| 153 text[textPointer++] = '\031'; /* change text color */ | |
| 154 textPointer += snprintf(&text[textPointer], 21, "%c%c\t%u:%02u \016\016[m:ss]\017\n\r", TXT_2BYTE, TXT2BYTE_Timer, data->timerDurationS / 60, data->timerDurationS % 60); | |
| 155 disableLine(StMSYS_Timer); | |
| 156 text[textPointer++] = '\020'; /* restore text color */ | |
| 157 } | |
| 158 else | |
| 159 { | |
| 160 textPointer += snprintf(&text[textPointer], 21, "%c%c\t%u:%02u \016\016[m:ss]\017\n\r", TXT_2BYTE, TXT2BYTE_Timer, data->timerDurationS / 60, data->timerDurationS % 60); | |
| 161 } | |
| 162 } else | |
| 163 { | |
| 164 textPointer += snprintf(&text[textPointer], 3, "\n\r"); | |
| 165 } | |
| 166 | |
| 167 if((line == 0) || (line == 3)) | 149 if((line == 0) || (line == 3)) |
| 168 { | 150 { |
| 169 text[textPointer++] = TXT_Language; | 151 text[textPointer++] = TXT_Language; |
| 170 text[textPointer++] = '\t'; | 152 text[textPointer++] = '\t'; |
| 171 text[textPointer++] = TXT_LanguageName; | 153 text[textPointer++] = TXT_LanguageName; |
