Jeck - Added theme substyles, which are chosen dynamically based on the player's deck composition. Also added lazy unit test for booster packs, though there should be a better way to framework this.

This commit is contained in:
wagic.jeck
2010-08-28 10:51:38 +00:00
parent 3ad28096b1
commit 8114944db9
46 changed files with 415 additions and 26 deletions

View File

@@ -84,7 +84,13 @@ protected:
vector<string> actual_data;
};
class OptionThemeStyle: public OptionSelect{
public:
virtual bool Visible();
virtual void Reload();
virtual void confirmChange(bool confirmed);
OptionThemeStyle(string _displayValue);
};
class OptionDirectory:public OptionSelect{
public:
virtual void Reload();
@@ -98,7 +104,7 @@ class OptionTheme:public OptionDirectory{
private:
static const string DIRTESTER;
public:
OptionTheme();
OptionTheme(OptionThemeStyle * style = NULL);
JQuad * getImage();
virtual void updateValue();
virtual float getHeight();
@@ -107,6 +113,7 @@ class OptionTheme:public OptionDirectory{
virtual bool Visible();
protected:
OptionThemeStyle * ts;
string author;
bool bChecked;
};