Add COPYWIN constants
This commit is contained in:
@@ -1224,7 +1224,7 @@ static void CB2_LoadRoulette(void)
|
||||
DrawGridBackground(SELECTION_NONE);
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_ControlsInstruction, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(sTextWindowId, 3);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
gSpriteCoordOffsetX = -60;
|
||||
gSpriteCoordOffsetY = 0;
|
||||
break;
|
||||
@@ -1295,7 +1295,7 @@ static void Task_AskKeepPlaying(u8 taskId)
|
||||
DisplayYesNoMenuDefaultYes();
|
||||
DrawStdWindowFrame(sTextWindowId, 0);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_KeepPlaying, 0, 1, TEXT_SPEED_FF, 0);
|
||||
CopyWindowToVram(sTextWindowId, 3);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
DoYesNoFuncWithChoice(taskId, &sYesNoTable_KeepPlaying);
|
||||
}
|
||||
|
||||
@@ -1807,14 +1807,14 @@ static void Task_PrintSpinResult(u8 taskId)
|
||||
PlayFanfare(MUS_SLOTS_JACKPOT);
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_Jackpot, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(sTextWindowId, 3);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayFanfare(MUS_SLOTS_WIN);
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_ItsAHit, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(sTextWindowId, 3);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
}
|
||||
break;
|
||||
case FALSE:
|
||||
@@ -1822,7 +1822,7 @@ static void Task_PrintSpinResult(u8 taskId)
|
||||
m4aSongNumStart(SE_FAILURE);
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_NothingDoing, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(sTextWindowId, 3);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
break;
|
||||
}
|
||||
gTasks[taskId].data[1] = 0;
|
||||
@@ -1867,7 +1867,7 @@ static void Task_PrintPayout(u8 taskId)
|
||||
StringExpandPlaceholders(gStringVar4, Roulette_Text_YouveWonXCoins);
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(sTextWindowId, 3);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
gTasks[taskId].tPayout = (sRoulette->minBet * gTasks[taskId].tMultiplier);
|
||||
gTasks[taskId].data[7] = 0;
|
||||
gTasks[taskId].func = Task_GivePayout;
|
||||
@@ -1903,7 +1903,7 @@ static void Task_TryPrintEndTurnMsg(u8 taskId)
|
||||
// Reached Ball 6, clear board
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_BoardWillBeCleared, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(sTextWindowId, 3);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
StartTaskAfterDelayOrInput(taskId, Task_ClearBoard, NO_DELAY, A_BUTTON | B_BUTTON);
|
||||
}
|
||||
else if (gTasks[taskId].tCoins == MAX_COINS)
|
||||
@@ -1911,7 +1911,7 @@ static void Task_TryPrintEndTurnMsg(u8 taskId)
|
||||
// Player maxed out coins
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_CoinCaseIsFull, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(sTextWindowId, 3);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
StartTaskAfterDelayOrInput(taskId, Task_AskKeepPlaying, NO_DELAY, A_BUTTON | B_BUTTON);
|
||||
}
|
||||
else
|
||||
@@ -1925,7 +1925,7 @@ static void Task_TryPrintEndTurnMsg(u8 taskId)
|
||||
// Player out of coins
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_NoCoinsLeft, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(sTextWindowId, 3);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
StartTaskAfterDelayOrInput(taskId, Task_StopPlaying, 60, A_BUTTON | B_BUTTON);
|
||||
}
|
||||
}
|
||||
@@ -1950,7 +1950,7 @@ static void Task_ClearBoard(u8 taskId)
|
||||
{
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_CoinCaseIsFull, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(sTextWindowId, 3);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
StartTaskAfterDelayOrInput(taskId, Task_AskKeepPlaying, NO_DELAY, A_BUTTON | B_BUTTON);
|
||||
}
|
||||
else
|
||||
@@ -3427,7 +3427,7 @@ static void Task_PrintMinBet(u8 taskId)
|
||||
StringExpandPlaceholders(gStringVar4, Roulette_Text_PlayMinimumWagerIsX);
|
||||
DrawStdWindowFrame(0, FALSE);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(0, 3);
|
||||
CopyWindowToVram(0, COPYWIN_FULL);
|
||||
gTasks[taskId].func = Task_ShowMinBetYesNo;
|
||||
}
|
||||
}
|
||||
@@ -3446,7 +3446,7 @@ static void Task_PrintRouletteEntryMsg(u8 taskId)
|
||||
// Special rate for Game Corner service day (only at second table)
|
||||
DrawStdWindowFrame(0, FALSE);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, Roulette_Text_SpecialRateTable, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(0, 3);
|
||||
CopyWindowToVram(0, COPYWIN_FULL);
|
||||
gTasks[taskId].func = Task_PrintMinBet;
|
||||
}
|
||||
else
|
||||
@@ -3455,7 +3455,7 @@ static void Task_PrintRouletteEntryMsg(u8 taskId)
|
||||
StringExpandPlaceholders(gStringVar4, Roulette_Text_PlayMinimumWagerIsX);
|
||||
DrawStdWindowFrame(0, FALSE);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(0, 3);
|
||||
CopyWindowToVram(0, COPYWIN_FULL);
|
||||
gTasks[taskId].func = Task_ShowMinBetYesNo;
|
||||
}
|
||||
}
|
||||
@@ -3465,7 +3465,7 @@ static void Task_PrintRouletteEntryMsg(u8 taskId)
|
||||
StringExpandPlaceholders(gStringVar4, Roulette_Text_NotEnoughCoins);
|
||||
DrawStdWindowFrame(0, FALSE);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
CopyWindowToVram(0, 3);
|
||||
CopyWindowToVram(0, COPYWIN_FULL);
|
||||
gTasks[taskId].func = Task_NotEnoughForMinBet;
|
||||
gTasks[taskId].tCoins = 0;
|
||||
gTasks[taskId].data[0] = 0;
|
||||
|
||||
Reference in New Issue
Block a user