fixed bug in default lists

This commit is contained in:
louis 2016-02-20 17:22:11 +01:00
parent 21732b1777
commit 46a716da76
3 changed files with 10 additions and 2 deletions

View File

@ -273,6 +273,13 @@ void cLeMenuDefault::CheckProgressBar(const char *text, int tab) {
tokenContainer->AddIntToken(32 + tab, len);
}
void cLeMenuDefault::Clear(void) {
if (current && currentElement) {
currentElement->Close();
}
cViewElement::Close();
dirty = false;
}
/******************************************************************
* cVeMenuMain
******************************************************************/

View File

@ -30,7 +30,7 @@ public:
bool DoScroll(void) { return current; };
virtual void RenderCurrent(void) { };
void Close(void);
void Clear(void);
virtual void Clear(void);
};
/******************************************************************
@ -70,6 +70,7 @@ public:
void SetPlugin(const char *plugName) { this->plugName = plugName; };
void SetTokenContainer(void);
bool Parse(bool forced = true);
void Clear(void);
};
/******************************************************************

View File

@ -106,7 +106,7 @@
<areascroll condition="not{separator} ++ not{setup}" scrollelement="column1" mode="forthandback" orientation="horizontal" delay="1000" scrollspeed="medium" x="1%" width="{column1width}" layer="3">
<drawtext name="column1" x="{column1x}" width="{column1width}" valign="center" font="{light}" fontsize="90%" color="{clrWhite}" text="{column1}" />
</areascroll>
<area condition="not{separator} ++ not{setup}" x="1%" width="100%" layer="3">
<area condition="not{separator} ++ not{setup}" x="1%" width="100%" layer="4">
<drawtext condition="{column2set}" x="{column2x}" valign="center" font="{light}" fontsize="90%" width="{column2width}" color="{clrWhite}" text="{column2}" />
<drawtext condition="{column3set}" x="{column3x}" valign="center" font="{light}" fontsize="90%" width="{column3width}" color="{clrWhite}" text="{column3}" />
<drawtext condition="{column4set}" x="{column4x}" valign="center" font="{light}" fontsize="90%" width="{column4width}" color="{clrWhite}" text="{column4}" />