changed it a little...now now difference while you have less then 10 artifacts/enchantments...after 9 it reorders them into stacks of 5 to save room....

This commit is contained in:
omegablast2002@yahoo.com
2011-02-05 13:26:02 +00:00
parent f504051bfd
commit 7b3d65e984
+11
View File
@@ -68,11 +68,22 @@ void GuiPlay::HorzStack::Enstack(CardView* card)
void GuiPlay::VertStack::Enstack(CardView* card) void GuiPlay::VertStack::Enstack(CardView* card)
{ {
if(total < 10)
{
if (0 == count % 3)
{
x += CARD_WIDTH;
y = 0;
}
}
else
{
if (0 == count % 5) if (0 == count % 5)
{ {
x += CARD_WIDTH; x += CARD_WIDTH;
y = 0; y = 0;
} }
}
card->x = x + baseX; card->x = x + baseX;
card->y = y + baseY; card->y = y + baseY;
y += 12; y += 12;