Mercurial > public > ostc4
comparison Discovery/Src/t7.c @ 517:85e0945552ce
Added color coding for cv gas list:
In previous version only a warning was highlighted using the red color. Now a better gas selection is highlighted in green. Gas without notification is blue while the active gas is shown in white
author | Ideenmodellierer |
---|---|
date | Sun, 06 Sep 2020 21:15:34 +0200 |
parents | 0004704906d0 |
children | 962d7b2c18c6 |
comparison
equal
deleted
inserted
replaced
516:bd66f4910993 | 517:85e0945552ce |
---|---|
1795 { | 1795 { |
1796 textpointer = 0; | 1796 textpointer = 0; |
1797 fPpO2ofGasAtThisDepth = (stateUsed->lifeData.pressure_ambient_bar - WATER_VAPOUR_PRESSURE) * pGasLine[gasId].oxygen_percentage / 100; | 1797 fPpO2ofGasAtThisDepth = (stateUsed->lifeData.pressure_ambient_bar - WATER_VAPOUR_PRESSURE) * pGasLine[gasId].oxygen_percentage / 100; |
1798 if(pGasLine[gasId].note.ub.active == 0) | 1798 if(pGasLine[gasId].note.ub.active == 0) |
1799 strcpy(&text[textpointer++],"\021"); | 1799 strcpy(&text[textpointer++],"\021"); |
1800 else if(stateUsed->lifeData.actualGas.GasIdInSettings == gasId) /* actual selected gas */ | |
1801 { | |
1802 strcpy(&text[textpointer++],"\030"); | |
1803 } | |
1800 else if((fPpO2ofGasAtThisDepth > fPpO2limitHigh) || (fPpO2ofGasAtThisDepth < fPpO2limitLow)) | 1804 else if((fPpO2ofGasAtThisDepth > fPpO2limitHigh) || (fPpO2ofGasAtThisDepth < fPpO2limitLow)) |
1801 strcpy(&text[textpointer++],"\025"); | 1805 strcpy(&text[textpointer++],"\025"); |
1806 else if(actualBetterGasId() == gasId) | |
1807 { | |
1808 strcpy(&text[textpointer++],"\026"); /* Highlight better gas */ | |
1809 } | |
1802 else | 1810 else |
1803 strcpy(&text[textpointer++],"\030"); | 1811 strcpy(&text[textpointer++],"\023"); |
1804 | 1812 |
1805 text[textpointer++] = ' '; | 1813 text[textpointer++] = ' '; |
1806 oxygen = pGasLine[gasId].oxygen_percentage; | 1814 oxygen = pGasLine[gasId].oxygen_percentage; |
1807 helium = pGasLine[gasId].helium_percentage; | 1815 helium = pGasLine[gasId].helium_percentage; |
1808 textpointer += write_gas(&text[textpointer], oxygen, helium); | 1816 textpointer += write_gas(&text[textpointer], oxygen, helium); |