Jeck - [JGE recompile needed] Shop cleanup, Interface enhancements.

Added basic transition system that works with GameApp's phases. Currently does a fade-out between elements, which works well in some places and not-so-well in others. We'll definitely want to think about where and where not to use it... they'd work a lot better if we could spawn a thread to handle loading the next state while transitioning.

Also cleaned up the shop a bit, so it uses ReadButton() instead of GetButtonClick()-- hence the slight change to JGE. Added a tiled image for the task board, which loads conservatively (I tried 128x128, but it didn't look as good).
This commit is contained in:
wagic.jeck
2010-02-01 18:27:25 +00:00
parent e999da6ef7
commit 0a863bcbad
21 changed files with 1619 additions and 1291 deletions

View File

@@ -1409,7 +1409,7 @@ void GameStateDeckViewer::ButtonPressed(int controllerId, int controlId)
case 10: //Deck menu
if (controlId == -1){
if(!mSwitching)
mParent->SetNextState(GAME_STATE_MENU);
mParent->DoTransition(TRANSITION_FADE,GAME_STATE_MENU);
else
mStage = STAGE_WAITING;
@@ -1446,7 +1446,7 @@ void GameStateDeckViewer::ButtonPressed(int controllerId, int controlId)
mSwitching = true;
break;
case 3:
mParent->SetNextState(GAME_STATE_MENU);
mParent->DoTransition(TRANSITION_FADE,GAME_STATE_MENU);
break;
case 4:
mStage = STAGE_WAITING;