* Add the Trash facility and use it for CardViews.
* Fix a graphical bug with card shadows.
* Fix a graphical bug with limitors.
* Enhance the graphical appearance of cards going to graveyard.
This commit is contained in:
jean.chalard
2009-09-05 11:44:34 +00:00
parent 44738399dc
commit b6781e82f1
8 changed files with 78 additions and 14 deletions
+2 -2
View File
@@ -1,6 +1,7 @@
#include "../include/config.h"
#include "../include/GameApp.h"
#include "../include/GuiPlay.h"
#include "../include/Trash.h"
#define CARD_WIDTH (31)
@@ -219,8 +220,7 @@ int GuiPlay::receiveEventMinus(WEvent * e)
CardView* cv = *it;
cs->Remove(cv);
cards.erase(it);
cv->card->view = NULL;
delete cv;
trash(cv);
Replace();
return 1;
}