Jeck - Whoops. Forgot to make invisible cheats unselectable. Fixed.

This commit is contained in:
wagic.jeck
2009-11-02 06:25:03 +00:00
parent 6946544a2a
commit e10130b718
2 changed files with 6 additions and 0 deletions

View File

@@ -243,6 +243,7 @@ class WDecoCheat: public WGuiDeco {
public:
WDecoCheat(WGuiBase * _it);
virtual bool Visible();
bool Selectable();
virtual void Reload();
protected:
bool bVisible;

View File

@@ -786,6 +786,11 @@ bool WDecoCheat::Visible(){
return true;
return false;
}
bool WDecoCheat::Selectable(){
if(!it || !Visible())
return false;
return it->Selectable();
}
//WDecoConfirm
WDecoConfirm::WDecoConfirm(JGuiListener * _listener, WGuiBase * _it): WGuiDeco(_it){