added border to extra details popup as per design at

http://wololo.net/forum/viewtopic.php?f=37&t=2380
and
http://wololo.net/forum/viewtopic.php?f=37&t=2382
This commit is contained in:
techdragon.nguyen@gmail.com
2010-11-23 14:02:02 +00:00
parent 8d758d4775
commit e39c94756b
8 changed files with 212 additions and 156 deletions
+4 -3
View File
@@ -32,7 +32,7 @@ public:
DeckMetaData();
DeckMetaData(string filename, Player * statsPlayer);
void load(string filename);
void loadStatsForPlayer( Player * statsPlayer, string opponentDeckName = "" );
void loadStatsForPlayer( Player * statsPlayer, string deckStatsFileName = "" );
// Accessors
string getFilename();
@@ -52,6 +52,9 @@ public:
};
class DeckMetaDataList {
private:
map<string,DeckMetaData *>values;
public:
void invalidate(string filename);
DeckMetaData * get(string filename, Player * statsPlayer = NULL);
@@ -59,8 +62,6 @@ public:
static DeckMetaDataList * decksMetaData;
private:
map<string,DeckMetaData *>values;
};
#endif
+5 -4
View File
@@ -18,7 +18,7 @@ class SimplePopup: public JGuiController
{
private:
float mHeight, mWidth, mX, mY;
float mWidth, mX, mY;
int mMaxLines;
int mFontId;
DeckMetaData * mDeckInformation;
@@ -28,8 +28,9 @@ private:
bool mClosed;
MTGAllCards * mCollection;
void drawHorzPole(float x, float y, float width);
void drawVertPole(float x, float y, float height);
void drawHorzPole(string imageName, bool flipX, bool flipY, float x, float y, float width);
void drawCorner(string imageName, bool flipX, bool flipY, float x, float y);
void drawVertPole(string imageName, bool flipX, bool flipY, float x, float y, float height);
public:
bool autoTranslate;
@@ -37,7 +38,7 @@ public:
SimplePopup(int id, JGuiListener* listener, const int fontId, const char * _title = "", DeckMetaData* deckInfo = NULL, MTGAllCards * collection = NULL);
~SimplePopup(void);
void drawBoundingBox( float x, float y, float width, float height );
bool isClosed() { return mClosed; }
MTGAllCards* getCollection() { return mCollection; }
void Render();