Jeck - Added option to disable screen transitions.
This commit is contained in:
@@ -43,6 +43,7 @@ public:
|
||||
DISABLECARDS,
|
||||
MAX_GRADE,
|
||||
ECON_DIFFICULTY,
|
||||
TRANSITIONS,
|
||||
INTERRUPT_SECONDS,
|
||||
//My interrupts
|
||||
INTERRUPTMYSPELLS,
|
||||
@@ -161,7 +162,6 @@ private:
|
||||
OptionManaDisplay();
|
||||
static OptionManaDisplay mDef;
|
||||
};
|
||||
|
||||
class OptionMaxGrade: public EnumDefinition {
|
||||
public:
|
||||
static EnumDefinition * getInstance() {return &mDef;};
|
||||
|
||||
@@ -362,6 +362,12 @@ void GameApp::Resume(){
|
||||
void GameApp::DoTransition(int trans, int tostate, float dur, bool animonly){
|
||||
TransitionBase * tb = NULL;
|
||||
GameState * toState = NULL;
|
||||
if(options[Options::TRANSITIONS].number != 0){
|
||||
if(tostate != GAME_STATE_NONE)
|
||||
SetNextState(tostate);
|
||||
return;
|
||||
}
|
||||
|
||||
if(tostate > GAME_STATE_NONE && tostate < GAME_STATE_MAX)
|
||||
toState = mGameStates[tostate];
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ const char * Options::optionNames[] = {
|
||||
"disable_cards",
|
||||
"maxGrade",
|
||||
"economic_difficulty",
|
||||
"transitions",
|
||||
"interruptSeconds",
|
||||
"interruptMySpells",
|
||||
"interruptMyAbilities",
|
||||
|
||||
@@ -375,7 +375,7 @@ void GameStateDuel::Update(float dt)
|
||||
playerdata->taskList->save();
|
||||
SAFE_DELETE(playerdata);
|
||||
SAFE_DELETE(menu);
|
||||
mParent->DoTransition(TRANSITION_FADE,GAME_STATE_MENU,1);
|
||||
mParent->DoTransition(TRANSITION_FADE,GAME_STATE_MENU);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -51,7 +51,8 @@ void GameStateOptions::Start()
|
||||
optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::HANDDIRECTION,"Hand direction",1,1,0)));
|
||||
optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::MANADISPLAY,"Mana display",2,1,0)));
|
||||
optionsList->Add(NEW OptionInteger(Options::REVERSETRIGGERS, "Reverse left and right triggers"));
|
||||
optionsList->Add(NEW OptionInteger(Options::DISABLECARDS,"Disable card image loading"));
|
||||
optionsList->Add(NEW OptionInteger(Options::DISABLECARDS,"Disable card images"));
|
||||
optionsList->Add(NEW OptionInteger(Options::TRANSITIONS,"Disable screen transitions"));
|
||||
optionsTabs->Add(optionsList);
|
||||
|
||||
optionsList = NEW WGuiList("User");
|
||||
|
||||
Reference in New Issue
Block a user