readjusted the carddisplays for libarary and graveyard for both players to move them off the top of the avatars. you can now click thier respective button to close them when in a targetchooser action.
also readded a piece of code i commented out, it does nothing but the compiler saids it expected something there.
This commit is contained in:
@@ -909,14 +909,14 @@ void GameStateDuel::Update(float dt)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
// if (mParent->players[0] == PLAYER_TYPE_CPU && mParent->players[1] == PLAYER_TYPE_CPU)
|
||||
// {
|
||||
/////// Tournament Mod ///////////
|
||||
// End();
|
||||
// Start();
|
||||
/////// END Tournament Mod ///////////
|
||||
// }
|
||||
//this is handled elsewhere.
|
||||
if (mParent->players[0] == PLAYER_TYPE_CPU && mParent->players[1] == PLAYER_TYPE_CPU)
|
||||
{
|
||||
///// Tournament Mod ///////////
|
||||
// End();
|
||||
// Start();
|
||||
///// END Tournament Mod ///////////
|
||||
}
|
||||
// this is handled elsewhere.
|
||||
}
|
||||
if (mEngine->GetButtonClick(JGE_BTN_MENU))
|
||||
{
|
||||
|
||||
@@ -222,7 +222,8 @@ void GuiGameZone::Update(float dt)
|
||||
GuiGameZone::GuiGameZone(float x, float y, bool hasFocus, MTGGameZone* zone, GuiAvatars* parent) :
|
||||
GuiStatic(static_cast<float> (GuiGameZone::Height), x, y, hasFocus, parent), zone(zone)
|
||||
{
|
||||
cd = NEW CardDisplay(0, zone->owner->getObserver(), static_cast<int> (x), static_cast<int> (y), this);
|
||||
|
||||
cd = NEW CardDisplay(0, zone->owner->getObserver(),y > 150 ? static_cast<int> (x)-235:static_cast<int> (x)+23, static_cast<int> (y), this);
|
||||
cd->zone = zone;
|
||||
showCards = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user