Jeck - Linked task menu into shop's r-trigger.
This commit is contained in:
@@ -383,7 +383,7 @@ void GameStateShop::Update(float dt)
|
|||||||
btn = mEngine->ReadButton();
|
btn = mEngine->ReadButton();
|
||||||
taskList->Update(dt);
|
taskList->Update(dt);
|
||||||
if ( taskList->getState() != TaskList::TASKS_INACTIVE){
|
if ( taskList->getState() != TaskList::TASKS_INACTIVE){
|
||||||
if ( btn == JGE_BTN_SEC || btn == JGE_BTN_CANCEL ){
|
if ( btn == JGE_BTN_SEC || btn == JGE_BTN_CANCEL || btn == JGE_BTN_PREV ){
|
||||||
taskList->End();
|
taskList->End();
|
||||||
return;
|
return;
|
||||||
} else if (taskList->getState() == TaskList::TASKS_ACTIVE && btn == JGE_BTN_MENU){
|
} else if (taskList->getState() == TaskList::TASKS_ACTIVE && btn == JGE_BTN_MENU){
|
||||||
@@ -450,6 +450,12 @@ void GameStateShop::Update(float dt)
|
|||||||
return;
|
return;
|
||||||
} else if (btn == JGE_BTN_CTRL)
|
} else if (btn == JGE_BTN_CTRL)
|
||||||
beginFilters();
|
beginFilters();
|
||||||
|
else if(btn == JGE_BTN_NEXT){
|
||||||
|
mStage = STAGE_SHOP_TASKS;
|
||||||
|
if (!taskList)
|
||||||
|
taskList = NEW TaskList();
|
||||||
|
taskList->Start();
|
||||||
|
}
|
||||||
else if (btn == JGE_BTN_PRI) {
|
else if (btn == JGE_BTN_PRI) {
|
||||||
srcCards->Shuffle();
|
srcCards->Shuffle();
|
||||||
load();
|
load();
|
||||||
|
|||||||
Reference in New Issue
Block a user