Erwan
- stats are computed only at startup now, to avoid useless computation ingame
This commit is contained in:
@@ -8,7 +8,7 @@ class JLBFont;
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
class TextScroller: public JGuiObject{
|
class TextScroller: public JGuiObject{
|
||||||
private:
|
protected:
|
||||||
string mText;
|
string mText;
|
||||||
string tempText;
|
string tempText;
|
||||||
JLBFont * mFont;
|
JLBFont * mFont;
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ void GameStateMenu::Create()
|
|||||||
|
|
||||||
currentState = MENU_STATE_MAJOR_LOADING_CARDS | MENU_STATE_MINOR_NONE;
|
currentState = MENU_STATE_MAJOR_LOADING_CARDS | MENU_STATE_MINOR_NONE;
|
||||||
scroller = NEW TextScroller(GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT), SCREEN_WIDTH/2 - 100 , SCREEN_HEIGHT-15,200);
|
scroller = NEW TextScroller(GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT), SCREEN_WIDTH/2 - 100 , SCREEN_HEIGHT-15,200);
|
||||||
|
scrollerSet = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@ void GameStateMenu::Start(){
|
|||||||
hasChosenGameType = 1;
|
hasChosenGameType = 1;
|
||||||
if (GameOptions::GetInstance()->values[OPTIONS_MOMIR_MODE_UNLOCKED].getIntValue()) hasChosenGameType =0;
|
if (GameOptions::GetInstance()->values[OPTIONS_MOMIR_MODE_UNLOCKED].getIntValue()) hasChosenGameType =0;
|
||||||
|
|
||||||
scrollerSet = 0;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -230,6 +230,8 @@ void GameStateMenu::fillScroller(){
|
|||||||
|
|
||||||
scroller->Add("Need more cards? Go to http://wololo.net/wagic");
|
scroller->Add("Need more cards? Go to http://wololo.net/wagic");
|
||||||
|
|
||||||
|
scroller->Add("These stats will be updated next time you run Wagic");
|
||||||
|
|
||||||
scrollerSet = 1;
|
scrollerSet = 1;
|
||||||
scroller->setRandom();
|
scroller->setRandom();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user