fixed deck name display for when "Random" player deck is chosen.

This commit is contained in:
techdragon.nguyen@gmail.com
2012-02-20 07:32:14 +00:00
parent 431ba4d1dd
commit 8468505f1e
3 changed files with 29 additions and 10 deletions
+9 -3
View File
@@ -46,7 +46,6 @@ protected:
string getDescription();
string getMetaInformation();
DeckMetaData *mSelectedDeck;
int mSelectedDeckId;
bool mShowDetailsScreen;
bool mAlwaysShowDetailsButton;
bool mClosed;
@@ -55,7 +54,15 @@ public:
VerticalTextScroller * mScroller;
bool mAutoTranslate;
float mSelectionTargetY;
int getSelectedDeckId() const
{
return mSelectedDeck->getDeckId();
}
void selectDeck(int deckId, bool isAi);
void selectRandomDeck(bool isAi);
//used for detailed info button
JQuadPtr pspIcons[8];
JTexture * pspIconsTexture;
@@ -68,7 +75,6 @@ public:
bool showDetailsScreen();
virtual bool isClosed() const { return mClosed; }
virtual int getSelectedDeckId() const { return mSelectedDeckId; }
virtual void Render();
virtual void Update(float dt);