Add delay icons to mixies #601
This commit is contained in:
@@ -102,8 +102,8 @@ extern BitmapBuffer * mixerSetupLabelIcon;
|
|||||||
extern BitmapBuffer * mixerSetupFlightmodeIcon;
|
extern BitmapBuffer * mixerSetupFlightmodeIcon;
|
||||||
extern BitmapBuffer * mixerSetupCurveIcon;
|
extern BitmapBuffer * mixerSetupCurveIcon;
|
||||||
extern BitmapBuffer * mixerSetupSwitchIcon;
|
extern BitmapBuffer * mixerSetupSwitchIcon;
|
||||||
//extern BitmapBuffer * mixerSetupDelayIcon;
|
extern BitmapBuffer * mixerSetupDelayIcon;
|
||||||
//extern BitmapBuffer * mixerSetupSlowIcon;
|
extern BitmapBuffer * mixerSetupSlowIcon;
|
||||||
//extern BitmapBuffer * mixerSetupDelaySlowIcon;
|
extern BitmapBuffer * mixerSetupDelaySlowIcon;
|
||||||
|
|
||||||
#endif // _BITMAPS_H_
|
#endif // _BITMAPS_H_
|
||||||
|
|||||||
@@ -286,6 +286,14 @@ class MixLineButton : public CommonInputOrMixButton
|
|||||||
if (line.flightModes) {
|
if (line.flightModes) {
|
||||||
drawFlightModes(dc, line.flightModes, textColor);
|
drawFlightModes(dc, line.flightModes, textColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t delayslow = 0;
|
||||||
|
if (line.speedDown || line.speedUp) delayslow = 1;
|
||||||
|
if (line.delayUp || line.delayDown) delayslow += 2;
|
||||||
|
if (delayslow) {
|
||||||
|
BitmapBuffer *delayslowbmp[] = {mixerSetupSlowIcon, mixerSetupDelayIcon, mixerSetupDelaySlowIcon};
|
||||||
|
dc->drawMask(width() - 16, PAGE_LINE_HEIGHT + FIELD_PADDING_TOP, delayslowbmp[delayslow - 1], textColor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -296,14 +296,14 @@ class Theme480: public OpenTxTheme
|
|||||||
delete mixerSetupFlightmodeIcon;
|
delete mixerSetupFlightmodeIcon;
|
||||||
mixerSetupFlightmodeIcon = BitmapBuffer::load8bitMask(mask_textline_fm);
|
mixerSetupFlightmodeIcon = BitmapBuffer::load8bitMask(mask_textline_fm);
|
||||||
|
|
||||||
// delete mixerSetupSlowIcon;
|
delete mixerSetupSlowIcon;
|
||||||
// mixerSetupSlowIcon = BitmapBuffer::loadMask(getFilePath("mask_textline_slow.png"));
|
mixerSetupSlowIcon = BitmapBuffer::load8bitMask(mask_textline_slow);
|
||||||
//
|
|
||||||
// delete mixerSetupDelayIcon;
|
delete mixerSetupDelayIcon;
|
||||||
// mixerSetupDelayIcon = BitmapBuffer::loadMask(getFilePath("mask_textline_delay.png"));
|
mixerSetupDelayIcon = BitmapBuffer::load8bitMask(mask_textline_delay);
|
||||||
//
|
|
||||||
// delete mixerSetupDelaySlowIcon;
|
delete mixerSetupDelaySlowIcon;
|
||||||
// mixerSetupDelaySlowIcon = BitmapBuffer::loadMask(getFilePath("mask_textline_delayslow.png"));
|
mixerSetupDelaySlowIcon = BitmapBuffer::load8bitMask(mask_textline_delayslow);
|
||||||
}
|
}
|
||||||
|
|
||||||
void load() const override
|
void load() const override
|
||||||
|
|||||||
Reference in New Issue
Block a user