GuiSwitch: Do not draw onImg and offImg when not visible (#11)
Co-authored-by: Maschell <Maschell@gmx.de>
This commit is contained in:
parent
9c1b9ba442
commit
62e2655b72
|
@ -63,6 +63,10 @@ void GuiSwitch::setImageHighlighted(GuiImage *img) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiSwitch::draw(CVideo *v) {
|
void GuiSwitch::draw(CVideo *v) {
|
||||||
|
if (!this->isVisible()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
GuiToggle::draw(v);
|
GuiToggle::draw(v);
|
||||||
if (getValue()) {
|
if (getValue()) {
|
||||||
if (onImg != NULL) {
|
if (onImg != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue