Jeck - Removed "Reverse Triggers" option, as per issue 359.
This commit is contained in:
@@ -39,7 +39,6 @@ public:
|
|||||||
CLOSEDHAND,
|
CLOSEDHAND,
|
||||||
HANDDIRECTION,
|
HANDDIRECTION,
|
||||||
MANADISPLAY,
|
MANADISPLAY,
|
||||||
REVERSETRIGGERS,
|
|
||||||
DISABLECARDS,
|
DISABLECARDS,
|
||||||
MAX_GRADE,
|
MAX_GRADE,
|
||||||
ECON_DIFFICULTY,
|
ECON_DIFFICULTY,
|
||||||
|
|||||||
@@ -621,7 +621,7 @@ void ActionStack::endOfInterruption(){
|
|||||||
|
|
||||||
|
|
||||||
bool ActionStack::CheckUserInput(JButton key){
|
bool ActionStack::CheckUserInput(JButton key){
|
||||||
JButton trigger = (options[Options::REVERSETRIGGERS].number ? JGE_BTN_NEXT : JGE_BTN_PREV);
|
JButton trigger = 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){
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ 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",
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ 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);
|
||||||
|
|||||||
@@ -243,12 +243,7 @@ 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:
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ void GuiHandSelf::Repos()
|
|||||||
|
|
||||||
bool GuiHandSelf::CheckUserInput(JButton key)
|
bool GuiHandSelf::CheckUserInput(JButton key)
|
||||||
{
|
{
|
||||||
JButton trigger = (options[Options::REVERSETRIGGERS].number ? JGE_BTN_PREV : JGE_BTN_NEXT);
|
JButton trigger = JGE_BTN_NEXT;
|
||||||
if (trigger == key)
|
if (trigger == key)
|
||||||
{
|
{
|
||||||
state = (Open == state ? Closed : Open);
|
state = (Open == state ? Closed : Open);
|
||||||
|
|||||||
@@ -1,56 +1,56 @@
|
|||||||
#include "../include/config.h"
|
#include "../include/config.h"
|
||||||
#include "../include/MTGGamePhase.h"
|
#include "../include/MTGGamePhase.h"
|
||||||
|
|
||||||
|
|
||||||
MTGGamePhase::MTGGamePhase(int id):ActionElement(id){
|
MTGGamePhase::MTGGamePhase(int id):ActionElement(id){
|
||||||
animation = 0;
|
animation = 0;
|
||||||
currentState = -1;
|
currentState = -1;
|
||||||
mFont= resources.GetJLBFont("simon");
|
mFont= resources.GetJLBFont("simon");
|
||||||
mFont->SetBase(0); // using 2nd font
|
mFont->SetBase(0); // using 2nd font
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MTGGamePhase::Update(float dt){
|
void MTGGamePhase::Update(float dt){
|
||||||
|
|
||||||
int newState = GameObserver::GetInstance()->getCurrentGamePhase();
|
int newState = GameObserver::GetInstance()->getCurrentGamePhase();
|
||||||
if (newState != currentState){
|
if (newState != currentState){
|
||||||
activeState = ACTIVE;
|
activeState = ACTIVE;
|
||||||
animation = 4;
|
animation = 4;
|
||||||
currentState = newState;
|
currentState = newState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (animation > 0){
|
if (animation > 0){
|
||||||
animation -- ;
|
animation -- ;
|
||||||
}else{
|
}else{
|
||||||
activeState = INACTIVE;
|
activeState = INACTIVE;
|
||||||
animation = 0;
|
animation = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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 = (options[Options::REVERSETRIGGERS].number ? JGE_BTN_NEXT : JGE_BTN_PREV);
|
JButton trigger = JGE_BTN_PREV;
|
||||||
if ((trigger == key) && game->currentActionPlayer == game->currentlyActing())
|
if ((trigger == key) && game->currentActionPlayer == game->currentlyActing())
|
||||||
{
|
{
|
||||||
activeState = ACTIVE;
|
activeState = ACTIVE;
|
||||||
game->userRequestNextGamePhase();
|
game->userRequestNextGamePhase();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
MTGGamePhase * MTGGamePhase::clone() const{
|
MTGGamePhase * MTGGamePhase::clone() const{
|
||||||
MTGGamePhase * a = NEW MTGGamePhase(*this);
|
MTGGamePhase * a = NEW MTGGamePhase(*this);
|
||||||
a->isClone = 1;
|
a->isClone = 1;
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
ostream& MTGGamePhase::toString(ostream& out) const
|
ostream& MTGGamePhase::toString(ostream& out) const
|
||||||
{
|
{
|
||||||
return out << "MTGGamePhase ::: animation " << animation << " ; currentState : " << currentState;
|
return out << "MTGGamePhase ::: animation " << animation << " ; currentState : " << currentState;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user