| 184 | Modify this function for new style display such as: |
| 185 | |
| 186 | {{{#!c++ |
| 187 | void CWeighingScreen::ShowGTN(void) |
| 188 | { |
| 189 | #if ARM64 |
| 190 | SetCurColor(COLOR_INFO); |
| 191 | SetBkColor(nColorWhite); |
| 192 | fontBigLabel.DisplayTextCairo(rectWtLbl_[WT_INDEX_GROSS], LANG(STR_GROSS_LABEL)); |
| 193 | |
| 194 | if(curScale >= 0 && GetWtMode(curScale) == wtmode_net) { |
| 195 | fontBigLabel.DisplayTextCairo(rectWtLbl_[WT_INDEX_TARE], LANG(STR_TARE_LABEL)); |
| 196 | fontBigLabel.DisplayTextCairo(rectWtLbl_[WT_INDEX_NET], LANG(STR_NET_LABEL)); |
| 197 | } |
| 198 | #else |
| 199 | SetCurColor(nColorGreen); |
| 200 | SetBkColor(nColorBlack); |
| 201 | DisplayText(GROSS_LBL_X, GROSS_LBL_Y, LANG(STR_GROSS_LABEL), 0, BIG_FONT); |
| 202 | |
| 203 | if(curScale >= 0 && GetWtMode(curScale) == wtmode_net) { |
| 204 | DisplayText(TARE_LBL_X, TARE_WT_Y, LANG(STR_TARE_LABEL), 0, BIG_FONT); |
| 205 | DisplayText(NET_LBL_X, NET_WT_Y, LANG(STR_NET_LABEL), 0, BIG_FONT); |
| 206 | } |
| 207 | #endif |
| 208 | } |
| 209 | }}} |
| 210 | |
| 211 | Add the following header include to the main cpp file |
| 212 | {{{#!c++ |
| 213 | #include "wght_screen.h" |
| 214 | }}} |
| 215 | |
| 216 | Add an instance of the CWeighingScreen above all the functions such as: |
| 217 | {{{#!c++ |
| 218 | CWeighingScreen weightScreen; |
| 219 | }}} |
| 220 | |
| 221 | Modify all the references to the Show//XXXX// show as ShowGTN() to add the weightScreen instance such as: |
| 222 | {{{#!c++ |
| 223 | weightScreen.ShowGTN(); |
| 224 | }}} |
| 225 | |
| 226 | |