Erwan
- support for tinyCrops see http://wololo.net/forum/viewtopic.php?f=15&t=2197 - card images can now be named after the card's name (ex: sets/10E/Ancestor's Chosen.jpg , or sets/10E/10E.zip:Ancestor's Chosen.jpg) - yet another attempt at fixing tokens in the shop
This commit is contained in:
@@ -73,6 +73,7 @@ void GameStateShop::Start(){
|
||||
srcCards = NEW WSrcUnlockedCards(0);
|
||||
srcCards->setElapsed(15);
|
||||
srcCards->addFilter(NEW WCFilterNOT(NEW WCFilterRarity("T")));
|
||||
srcCards->addFilter(NEW WCFilterNOT(NEW WCFilterSet(MTGSets::INTERNAL_SET)));
|
||||
|
||||
bigSync = 0;
|
||||
shopMenu = NEW WGuiMenu(JGE_BTN_DOWN, JGE_BTN_UP, true, &bigSync);
|
||||
@@ -481,9 +482,11 @@ void GameStateShop::Update(float dt)
|
||||
if (filterMenu->isFinished()){
|
||||
if (needLoad){
|
||||
srcCards->addFilter(NEW WCFilterNOT(NEW WCFilterRarity("T")));
|
||||
srcCards->addFilter(NEW WCFilterNOT(NEW WCFilterSet(MTGSets::INTERNAL_SET)));
|
||||
if(!srcCards->Size()){
|
||||
srcCards->clearFilters(); //Repetition of check at end of filterMenu->Finish(), for the token removal
|
||||
srcCards->addFilter(NEW WCFilterNOT(NEW WCFilterRarity("T")));
|
||||
srcCards->addFilter(NEW WCFilterNOT(NEW WCFilterSet(MTGSets::INTERNAL_SET)));
|
||||
}
|
||||
load();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user