- stats are computed only at startup now, to avoid useless computation ingame
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-05-31 09:42:08 +00:00
parent 08992475fa
commit 19b0b306fe
2 changed files with 5 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ class JLBFont;
using namespace std;
class TextScroller: public JGuiObject{
private:
protected:
string mText;
string tempText;
JLBFont * mFont;

View File

@@ -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();
}