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;
|
||||
|
||||
class TextScroller: public JGuiObject{
|
||||
private:
|
||||
protected:
|
||||
string mText;
|
||||
string tempText;
|
||||
JLBFont * mFont;
|
||||
|
||||
@@ -123,7 +123,7 @@ void GameStateMenu::Create()
|
||||
|
||||
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);
|
||||
|
||||
scrollerSet = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ void GameStateMenu::Start(){
|
||||
hasChosenGameType = 1;
|
||||
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("These stats will be updated next time you run Wagic");
|
||||
|
||||
scrollerSet = 1;
|
||||
scroller->setRandom();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user