Jeck - reverted fix for invalid issue 359.

This commit is contained in:
wagic.jeck
2010-02-26 00:46:03 +00:00
parent 4248ddd3a0
commit e9b6860923
7 changed files with 66 additions and 58 deletions
+1
View File
@@ -39,6 +39,7 @@ public:
CLOSEDHAND, CLOSEDHAND,
HANDDIRECTION, HANDDIRECTION,
MANADISPLAY, MANADISPLAY,
REVERSETRIGGERS,
DISABLECARDS, DISABLECARDS,
MAX_GRADE, MAX_GRADE,
ECON_DIFFICULTY, ECON_DIFFICULTY,
+1 -1
View File
@@ -621,7 +621,7 @@ void ActionStack::endOfInterruption(){
bool ActionStack::CheckUserInput(JButton key){ bool ActionStack::CheckUserInput(JButton key){
JButton trigger = JGE_BTN_PREV; JButton trigger = (options[Options::REVERSETRIGGERS].number ? JGE_BTN_NEXT : JGE_BTN_PREV);
if (mode == ACTIONSTACK_STANDARD){ if (mode == ACTIONSTACK_STANDARD){
if (askIfWishesToInterrupt){ if (askIfWishesToInterrupt){
if (JGE_BTN_SEC == key){ if (JGE_BTN_SEC == key){
+1
View File
@@ -26,6 +26,7 @@ const string Options::optionNames[] = {
"closed_hand", "closed_hand",
"hand_direction", "hand_direction",
"mana_display", "mana_display",
"reverse_triggers",
"disable_cards", "disable_cards",
"maxGrade", "maxGrade",
"economic_difficulty", "economic_difficulty",
+1
View File
@@ -42,6 +42,7 @@ void GameStateOptions::Start()
optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::CLOSEDHAND,"Closed hand",1,1,0))); optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::CLOSEDHAND,"Closed hand",1,1,0)));
optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::HANDDIRECTION,"Hand direction",1,1,0))); 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 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 images")); optionsList->Add(NEW OptionInteger(Options::DISABLECARDS,"Disable card images"));
optionsList->Add(NEW OptionInteger(Options::TRANSITIONS,"Disable screen transitions")); optionsList->Add(NEW OptionInteger(Options::TRANSITIONS,"Disable screen transitions"));
optionsTabs->Add(optionsList); optionsTabs->Add(optionsList);
+5
View File
@@ -243,7 +243,12 @@ bool GuiCombat::CheckUserInput(JButton key)
case JGE_BTN_PRI: case JGE_BTN_PRI:
active = activeAtk = NULL; cursor_pos = OK; active = activeAtk = NULL; cursor_pos = OK;
break; break;
case JGE_BTN_NEXT:
if (!options[Options::REVERSETRIGGERS].number) return false;
active = activeAtk = NULL; cursor_pos = OK;
break;
case JGE_BTN_PREV: case JGE_BTN_PREV:
if (options[Options::REVERSETRIGGERS].number) return false;
active = activeAtk = NULL; cursor_pos = OK; active = activeAtk = NULL; cursor_pos = OK;
break; break;
default: default:
+1 -1
View File
@@ -139,7 +139,7 @@ void GuiHandSelf::Repos()
bool GuiHandSelf::CheckUserInput(JButton key) bool GuiHandSelf::CheckUserInput(JButton key)
{ {
JButton trigger = JGE_BTN_NEXT; JButton trigger = (options[Options::REVERSETRIGGERS].number ? JGE_BTN_PREV : JGE_BTN_NEXT);
if (trigger == key) if (trigger == key)
{ {
state = (Open == state ? Closed : Open); state = (Open == state ? Closed : Open);
+1 -1
View File
@@ -33,7 +33,7 @@ void MTGGamePhase::Update(float dt){
bool MTGGamePhase::CheckUserInput(JButton key){ bool MTGGamePhase::CheckUserInput(JButton key){
GameObserver * game = GameObserver::GetInstance(); GameObserver * game = GameObserver::GetInstance();
if (activeState == INACTIVE){ if (activeState == INACTIVE){
JButton trigger = JGE_BTN_PREV; JButton trigger = (options[Options::REVERSETRIGGERS].number ? JGE_BTN_NEXT : JGE_BTN_PREV);
if ((trigger == key) && game->currentActionPlayer == game->currentlyActing()) if ((trigger == key) && game->currentActionPlayer == game->currentlyActing())
{ {
activeState = ACTIVE; activeState = ACTIVE;