fixed the game shop button interactions.
This commit is contained in:
@@ -608,6 +608,7 @@ void GameStateShop::Update(float dt)
|
|||||||
{
|
{
|
||||||
srcCards->Shuffle();
|
srcCards->Shuffle();
|
||||||
load();
|
load();
|
||||||
|
disablePurchase = false;
|
||||||
}
|
}
|
||||||
else if (btn == JGE_BTN_CANCEL)
|
else if (btn == JGE_BTN_CANCEL)
|
||||||
options[Options::DISABLECARDS].number = !options[Options::DISABLECARDS].number;
|
options[Options::DISABLECARDS].number = !options[Options::DISABLECARDS].number;
|
||||||
@@ -623,10 +624,13 @@ void GameStateShop::Update(float dt)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (btn == JGE_BTN_SEC)
|
else if (btn == JGE_BTN_SEC)
|
||||||
|
{
|
||||||
bListCards = !bListCards;
|
bListCards = !bListCards;
|
||||||
|
disablePurchase = false;
|
||||||
|
}
|
||||||
else if (shopMenu)
|
else if (shopMenu)
|
||||||
{
|
{
|
||||||
if (cycleCardsButton->ButtonPressed() || showCardListButton->ButtonPressed())
|
if (btn == JGE_BTN_OK && (cycleCardsButton->ButtonPressed() || showCardListButton->ButtonPressed()))
|
||||||
{
|
{
|
||||||
disablePurchase = true;
|
disablePurchase = true;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user