Text clean-up, TEXT_SPEED_FF to TEXT_SKIP_DRAW
This commit is contained in:
@@ -1223,7 +1223,7 @@ static void CB2_LoadRoulette(void)
|
||||
SetMultiplierSprite(SELECTION_NONE);
|
||||
DrawGridBackground(SELECTION_NONE);
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_ControlsInstruction, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_ControlsInstruction, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
gSpriteCoordOffsetX = -60;
|
||||
gSpriteCoordOffsetY = 0;
|
||||
@@ -1294,7 +1294,7 @@ static void Task_AskKeepPlaying(u8 taskId)
|
||||
{
|
||||
DisplayYesNoMenuDefaultYes();
|
||||
DrawStdWindowFrame(sTextWindowId, 0);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_KeepPlaying, 0, 1, TEXT_SPEED_FF, 0);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_KeepPlaying, 0, 1, TEXT_SKIP_DRAW, 0);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
DoYesNoFuncWithChoice(taskId, &sYesNoTable_KeepPlaying);
|
||||
}
|
||||
@@ -1806,14 +1806,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);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_Jackpot, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
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);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_ItsAHit, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
}
|
||||
break;
|
||||
@@ -1821,7 +1821,7 @@ static void Task_PrintSpinResult(u8 taskId)
|
||||
default:
|
||||
m4aSongNumStart(SE_FAILURE);
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_NothingDoing, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_NothingDoing, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
break;
|
||||
}
|
||||
@@ -1866,7 +1866,7 @@ static void Task_PrintPayout(u8 taskId)
|
||||
ConvertIntToDecimalStringN(gStringVar1, (sRoulette->minBet * gTasks[taskId].tMultiplier), STR_CONV_MODE_LEFT_ALIGN, 2);
|
||||
StringExpandPlaceholders(gStringVar4, Roulette_Text_YouveWonXCoins);
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
gTasks[taskId].tPayout = (sRoulette->minBet * gTasks[taskId].tMultiplier);
|
||||
gTasks[taskId].data[7] = 0;
|
||||
@@ -1902,7 +1902,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);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_BoardWillBeCleared, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
StartTaskAfterDelayOrInput(taskId, Task_ClearBoard, NO_DELAY, A_BUTTON | B_BUTTON);
|
||||
}
|
||||
@@ -1910,7 +1910,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);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_CoinCaseIsFull, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
StartTaskAfterDelayOrInput(taskId, Task_AskKeepPlaying, NO_DELAY, A_BUTTON | B_BUTTON);
|
||||
}
|
||||
@@ -1924,7 +1924,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);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_NoCoinsLeft, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
StartTaskAfterDelayOrInput(taskId, Task_StopPlaying, 60, A_BUTTON | B_BUTTON);
|
||||
}
|
||||
@@ -1949,7 +1949,7 @@ static void Task_ClearBoard(u8 taskId)
|
||||
if (gTasks[taskId].tCoins == MAX_COINS)
|
||||
{
|
||||
DrawStdWindowFrame(sTextWindowId, FALSE);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_CoinCaseIsFull, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
AddTextPrinterParameterized(sTextWindowId, FONT_NORMAL, Roulette_Text_CoinCaseIsFull, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(sTextWindowId, COPYWIN_FULL);
|
||||
StartTaskAfterDelayOrInput(taskId, Task_AskKeepPlaying, NO_DELAY, A_BUTTON | B_BUTTON);
|
||||
}
|
||||
@@ -3426,7 +3426,7 @@ static void Task_PrintMinBet(u8 taskId)
|
||||
ConvertIntToDecimalStringN(gStringVar1, minBet, STR_CONV_MODE_LEADING_ZEROS, 1);
|
||||
StringExpandPlaceholders(gStringVar4, Roulette_Text_PlayMinimumWagerIsX);
|
||||
DrawStdWindowFrame(0, FALSE);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(0, COPYWIN_FULL);
|
||||
gTasks[taskId].func = Task_ShowMinBetYesNo;
|
||||
}
|
||||
@@ -3445,7 +3445,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);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, Roulette_Text_SpecialRateTable, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(0, COPYWIN_FULL);
|
||||
gTasks[taskId].func = Task_PrintMinBet;
|
||||
}
|
||||
@@ -3454,7 +3454,7 @@ static void Task_PrintRouletteEntryMsg(u8 taskId)
|
||||
// Print minimum bet
|
||||
StringExpandPlaceholders(gStringVar4, Roulette_Text_PlayMinimumWagerIsX);
|
||||
DrawStdWindowFrame(0, FALSE);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(0, COPYWIN_FULL);
|
||||
gTasks[taskId].func = Task_ShowMinBetYesNo;
|
||||
}
|
||||
@@ -3464,7 +3464,7 @@ static void Task_PrintRouletteEntryMsg(u8 taskId)
|
||||
// Not enough for minimum bet
|
||||
StringExpandPlaceholders(gStringVar4, Roulette_Text_NotEnoughCoins);
|
||||
DrawStdWindowFrame(0, FALSE);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SPEED_FF, NULL);
|
||||
AddTextPrinterParameterized(0, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SKIP_DRAW, NULL);
|
||||
CopyWindowToVram(0, COPYWIN_FULL);
|
||||
gTasks[taskId].func = Task_NotEnoughForMinBet;
|
||||
gTasks[taskId].tCoins = 0;
|
||||
|
||||
Reference in New Issue
Block a user