Fixed bug that was not correctly showing the full Commander decks list in the deck choosing menu page, added a new gesture for Android to emulate back button pressure: now sliding from down to up for almost all screen size will trigger the back button in game (e.g. pause match in gameplay, going back from shop, and so on).
This commit is contained in:
@@ -21,7 +21,6 @@ DeckMetaData::DeckMetaData(const string& filename, bool isAI)
|
||||
LoadDeck();
|
||||
}
|
||||
|
||||
|
||||
void DeckMetaData::LoadDeck()
|
||||
{
|
||||
if (!mDeckLoaded)
|
||||
@@ -30,7 +29,7 @@ void DeckMetaData::LoadDeck()
|
||||
mName = trim(deck.meta_name);
|
||||
mDescription = trim(deck.meta_desc);
|
||||
mDeckId = atoi((mFilename.substr(mFilename.find("deck") + 4, mFilename.find(".txt"))).c_str());
|
||||
isCommanderDeck = deck.meta_commander; //Added to read the command tag in deck's metafile.
|
||||
mCommanderDeck = deck.meta_commander; //Added to read the command tag in deck's metafile.
|
||||
|
||||
vector<string> requirements = split(deck.meta_unlockRequirements, ',');
|
||||
for(size_t i = 0; i < requirements.size(); ++i)
|
||||
@@ -49,10 +48,8 @@ void DeckMetaData::LoadDeck()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
void DeckMetaData::LoadStats()
|
||||
{
|
||||
if (!mStatsLoaded)
|
||||
@@ -65,7 +62,6 @@ void DeckMetaData::LoadStats()
|
||||
mGamesPlayed = 0;
|
||||
mColorIndex = "";
|
||||
mDifficulty = 0;
|
||||
isCommanderDeck = false;
|
||||
|
||||
stats->load(mPlayerDeck);
|
||||
DeckStat * opponentDeckStats = stats->getDeckStat(mStatsFilename);
|
||||
@@ -115,6 +111,11 @@ int DeckMetaData::getAvatarId()
|
||||
|
||||
//Accessors
|
||||
|
||||
bool DeckMetaData::isCommanderDeck()
|
||||
{
|
||||
return mCommanderDeck;
|
||||
}
|
||||
|
||||
string DeckMetaData::getFilename()
|
||||
{
|
||||
return mFilename;
|
||||
@@ -135,7 +136,6 @@ vector<int> DeckMetaData::getUnlockRequirements()
|
||||
return mUnlockRequirements;
|
||||
}
|
||||
|
||||
|
||||
string DeckMetaData::getAvatarFilename()
|
||||
{
|
||||
return mAvatarFilename;
|
||||
|
||||
Reference in New Issue
Block a user