- start_wizard: use a global enum; switch detection from bool to int

This commit is contained in:
svenhoefer
2015-05-15 03:39:24 +02:00
parent d9b3e9420a
commit af90286a30
18 changed files with 48 additions and 122 deletions

View File

@@ -528,7 +528,7 @@ class CMenuWidget : public CMenuTarget
unsigned int current_page;
unsigned int total_pages;
bool exit_pressed;
bool from_wizard;
int from_wizard;
bool fade;
bool washidden;
int nextShortcut;
@@ -574,7 +574,7 @@ class CMenuWidget : public CMenuTarget
int getSelected()const { return selected; };
void move(int xoff, int yoff);
int getSelectedLine(void)const {return exit_pressed ? -1 : selected;};
void setWizardMode(bool _from_wizard) { from_wizard = _from_wizard;};
void setWizardMode(int _from_wizard) { from_wizard = _from_wizard;};
void enableFade(bool _enable) { fade = _enable; };
void enableSaveScreen(bool enable);
void paintHint(int num);