Undo PokeCodec's PRs
This commit undoes most of PokeCodec's PRs after the debate in chat. Some harmless or completely superseded PRs have been left alone, as there is not much benefit in attempting to undo them. Reverts #1104, #1108, #1115, #1118, #1119, #1124, #1126, #1127, #1132, #1136, #1137, #1139, #1140, #1144, #1148, #1149, #1150, #1153, #1155, #1177, #1179, #1180, #1181, #1182 and #1183.
This commit is contained in:
+13
-13
@@ -271,16 +271,16 @@ static void Task_OptionMenuFadeIn(u8 taskId)
|
||||
|
||||
static void Task_OptionMenuProcessInput(u8 taskId)
|
||||
{
|
||||
if (JOY_NEW(A_BUTTON))
|
||||
if (gMain.newKeys & A_BUTTON)
|
||||
{
|
||||
if (gTasks[taskId].data[TD_MENUSELECTION] == MENUITEM_CANCEL)
|
||||
gTasks[taskId].func = Task_OptionMenuSave;
|
||||
}
|
||||
else if (JOY_NEW(B_BUTTON))
|
||||
else if (gMain.newKeys & B_BUTTON)
|
||||
{
|
||||
gTasks[taskId].func = Task_OptionMenuSave;
|
||||
}
|
||||
else if (JOY_NEW(DPAD_UP))
|
||||
else if (gMain.newKeys & DPAD_UP)
|
||||
{
|
||||
if (gTasks[taskId].data[TD_MENUSELECTION] > 0)
|
||||
gTasks[taskId].data[TD_MENUSELECTION]--;
|
||||
@@ -288,7 +288,7 @@ static void Task_OptionMenuProcessInput(u8 taskId)
|
||||
gTasks[taskId].data[TD_MENUSELECTION] = MENUITEM_CANCEL;
|
||||
HighlightOptionMenuItem(gTasks[taskId].data[TD_MENUSELECTION]);
|
||||
}
|
||||
else if (JOY_NEW(DPAD_DOWN))
|
||||
else if (gMain.newKeys & DPAD_DOWN)
|
||||
{
|
||||
if (gTasks[taskId].data[TD_MENUSELECTION] < MENUITEM_CANCEL)
|
||||
gTasks[taskId].data[TD_MENUSELECTION]++;
|
||||
@@ -405,7 +405,7 @@ static void DrawOptionMenuChoice(const u8 *text, u8 x, u8 y, u8 style)
|
||||
|
||||
static u8 TextSpeed_ProcessInput(u8 selection)
|
||||
{
|
||||
if (JOY_NEW(DPAD_RIGHT))
|
||||
if (gMain.newKeys & DPAD_RIGHT)
|
||||
{
|
||||
if (selection <= 1)
|
||||
selection++;
|
||||
@@ -414,7 +414,7 @@ static u8 TextSpeed_ProcessInput(u8 selection)
|
||||
|
||||
sArrowPressed = TRUE;
|
||||
}
|
||||
if (JOY_NEW(DPAD_LEFT))
|
||||
if (gMain.newKeys & DPAD_LEFT)
|
||||
{
|
||||
if (selection != 0)
|
||||
selection--;
|
||||
@@ -451,7 +451,7 @@ static void TextSpeed_DrawChoices(u8 selection)
|
||||
|
||||
static u8 BattleScene_ProcessInput(u8 selection)
|
||||
{
|
||||
if (JOY_NEW(DPAD_LEFT | DPAD_RIGHT))
|
||||
if (gMain.newKeys & (DPAD_LEFT | DPAD_RIGHT))
|
||||
{
|
||||
selection ^= 1;
|
||||
sArrowPressed = TRUE;
|
||||
@@ -474,7 +474,7 @@ static void BattleScene_DrawChoices(u8 selection)
|
||||
|
||||
static u8 BattleStyle_ProcessInput(u8 selection)
|
||||
{
|
||||
if (JOY_NEW(DPAD_LEFT | DPAD_RIGHT))
|
||||
if (gMain.newKeys & (DPAD_LEFT | DPAD_RIGHT))
|
||||
{
|
||||
selection ^= 1;
|
||||
sArrowPressed = TRUE;
|
||||
@@ -497,7 +497,7 @@ static void BattleStyle_DrawChoices(u8 selection)
|
||||
|
||||
static u8 Sound_ProcessInput(u8 selection)
|
||||
{
|
||||
if (JOY_NEW(DPAD_LEFT | DPAD_RIGHT))
|
||||
if (gMain.newKeys & (DPAD_LEFT | DPAD_RIGHT))
|
||||
{
|
||||
selection ^= 1;
|
||||
SetPokemonCryStereo(selection);
|
||||
@@ -521,7 +521,7 @@ static void Sound_DrawChoices(u8 selection)
|
||||
|
||||
static u8 FrameType_ProcessInput(u8 selection)
|
||||
{
|
||||
if (JOY_NEW(DPAD_RIGHT))
|
||||
if (gMain.newKeys & DPAD_RIGHT)
|
||||
{
|
||||
if (selection < WINDOW_FRAMES_COUNT - 1)
|
||||
selection++;
|
||||
@@ -532,7 +532,7 @@ static u8 FrameType_ProcessInput(u8 selection)
|
||||
LoadPalette(GetWindowFrameTilesPal(selection)->pal, 0x70, 0x20);
|
||||
sArrowPressed = TRUE;
|
||||
}
|
||||
if (JOY_NEW(DPAD_LEFT))
|
||||
if (gMain.newKeys & DPAD_LEFT)
|
||||
{
|
||||
if (selection != 0)
|
||||
selection--;
|
||||
@@ -579,7 +579,7 @@ static void FrameType_DrawChoices(u8 selection)
|
||||
|
||||
static u8 ButtonMode_ProcessInput(u8 selection)
|
||||
{
|
||||
if (JOY_NEW(DPAD_RIGHT))
|
||||
if (gMain.newKeys & DPAD_RIGHT)
|
||||
{
|
||||
if (selection <= 1)
|
||||
selection++;
|
||||
@@ -588,7 +588,7 @@ static u8 ButtonMode_ProcessInput(u8 selection)
|
||||
|
||||
sArrowPressed = TRUE;
|
||||
}
|
||||
if (JOY_NEW(DPAD_LEFT))
|
||||
if (gMain.newKeys & DPAD_LEFT)
|
||||
{
|
||||
if (selection != 0)
|
||||
selection--;
|
||||
|
||||
Reference in New Issue
Block a user