Erwan
- Added a way to name and describe AI Decks. Let's find cool names and descriptions :)
This commit is contained in:
@@ -79,8 +79,11 @@ class MTGDeck:public MTGAllCards{
|
||||
protected:
|
||||
string filename;
|
||||
MTGAllCards * allcards;
|
||||
|
||||
public:
|
||||
MTGDeck(const char * config_file, TexturesCache * cache, MTGAllCards * _allcards);
|
||||
string meta_desc;
|
||||
string meta_name;
|
||||
MTGDeck(const char * config_file, TexturesCache * cache, MTGAllCards * _allcards, int meta_only = 0);
|
||||
int addRandomCards(int howmany, int setId = -1, int rarity = -1, const char * subtype = NULL);
|
||||
int add(int cardid);
|
||||
int remove(int cardid);
|
||||
|
||||
@@ -47,7 +47,7 @@ class SimpleMenu:public JGuiController{
|
||||
SimpleMenu(int id, JGuiListener* listener, JLBFont* font, int x, int y, const char * _title = "", int _maxItems = 7);
|
||||
void Render();
|
||||
void Update(float dt);
|
||||
void Add(int id, const char * Text);
|
||||
void Add(int id, const char * Text,string desc = "");
|
||||
void Close();
|
||||
|
||||
float selectionTargetY;
|
||||
|
||||
@@ -24,6 +24,7 @@ class SimpleMenuItem: public JGuiObject
|
||||
float mTargetScale;
|
||||
|
||||
public:
|
||||
string desc;
|
||||
SimpleMenuItem(SimpleMenu* _parent, int id, JLBFont *font, string text, int x, int y, bool hasFocus = false);
|
||||
|
||||
int mX;
|
||||
|
||||
Reference in New Issue
Block a user