- fix issue 22 (Graveyard display messed up)
- fix issue 38 (graveyard and library unusable)
- fix issue 59 (can't cancel a spell with a target)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-26 10:03:52 +00:00
parent 9a6f85ecab
commit 833fbba6c2
13 changed files with 2310 additions and 2254 deletions

View File

@@ -124,6 +124,11 @@ void GuiGameZone::ButtonPressed(int controllerId, int controlId){
GameObserver::GetInstance()->ButtonPressed(this);
}
bool GuiGameZone::CheckUserInput(u32 key){
if (showCards) return cd->CheckUserInput(key);
return false;
}
void GuiGameZone::Update(float dt){
for (vector<CardView*>::iterator it = cards.begin(); it != cards.end(); ++it)
(*it)->Update(dt);
@@ -133,6 +138,7 @@ void GuiGameZone::Update(float dt){
GuiGameZone::GuiGameZone(float x, float y, bool hasFocus, MTGGameZone* zone, GuiAvatars* parent): GuiStatic(GuiGameZone::Height, x, y, hasFocus, parent), zone(zone){
cd = NEW CardDisplay(0, GameObserver::GetInstance(), x, y, this);
cd->zone = zone;
showCards = 0;
}