Fix formatting.

This commit is contained in:
ultima-soul 2019-04-03 21:15:45 -07:00
parent 91a94a0ca1
commit 64da3d051e

View file

@ -1653,7 +1653,7 @@ void DrawLevelUpWindowPg1(u16 arg0, u16 *statStoreLocation1, u16 *statStoreLocat
s32 var; s32 var;
u8 padding; u8 padding;
s32 var3; s32 var3;
u8 color[11]; u8 color[11];
FillWindowPixelBuffer(arg0, PIXEL_FILL(arg3)); FillWindowPixelBuffer(arg0, PIXEL_FILL(arg3));
@ -1665,28 +1665,28 @@ void DrawLevelUpWindowPg1(u16 arg0, u16 *statStoreLocation1, u16 *statStoreLocat
array[5] = statStoreLocation2[STAT_SPEED] - statStoreLocation1[STAT_SPEED]; array[5] = statStoreLocation2[STAT_SPEED] - statStoreLocation1[STAT_SPEED];
color[0] = arg3; color[0] = arg3;
color[1] = arg4; color[1] = arg4;
color[2] = arg5; color[2] = arg5;
for(i = 0; i <= 5; i++) for(i = 0; i <= 5; i++)
{ {
AddTextPrinterParameterized3(arg0, AddTextPrinterParameterized3(arg0,
1, 1,
0, 0,
15 * i, 15 * i,
color, color,
TEXT_SPEED_FF, TEXT_SPEED_FF,
gUnknown_08625B54[i]); gUnknown_08625B54[i]);
statVal = &array[i]; statVal = &array[i];
text = array[i] >= 0 ? (u8 *) gText_UnkCtrlF904 : (u8 *) gText_Dash;//Plus sign for stat gain, dash for none maybe text = array[i] >= 0 ? (u8 *) gText_UnkCtrlF904 : (u8 *) gText_Dash;//Plus sign for stat gain, dash for none maybe
StringCopy(&text2, text); StringCopy(&text2, text);
AddTextPrinterParameterized3(arg0, AddTextPrinterParameterized3(arg0,
1, 1,
56, 56,
15 * i, 15 * i,
color, color,
TEXT_SPEED_FF, TEXT_SPEED_FF,
&text2); &text2);
var3 = *statVal; var3 = *statVal;
var = var3; var = var3;
@ -1709,12 +1709,12 @@ void DrawLevelUpWindowPg1(u16 arg0, u16 *statStoreLocation1, u16 *statStoreLocat
ConvertIntToDecimalStringN(&text2, var3, STR_CONV_MODE_LEFT_ALIGN, 2); ConvertIntToDecimalStringN(&text2, var3, STR_CONV_MODE_LEFT_ALIGN, 2);
AddTextPrinterParameterized3(arg0, AddTextPrinterParameterized3(arg0,
1, 1,
padding + 56, padding + 56,
15 * i, 15 * i,
color, color,
TEXT_SPEED_FF, TEXT_SPEED_FF,
&text2); &text2);
} }
} }
#else #else
@ -1889,7 +1889,7 @@ void DrawLevelUpWindowPg2(u16 arg0, u16 *statStoreLocation1, u8 arg2, u8 arg3, u
s32 numDigits; s32 numDigits;
u8 text; u8 text;
s16 array[6]; s16 array[6];
u8 color[11]; u8 color[11];
FillWindowPixelBuffer(arg0, PIXEL_FILL(arg2)); FillWindowPixelBuffer(arg0, PIXEL_FILL(arg2));
@ -1900,9 +1900,9 @@ void DrawLevelUpWindowPg2(u16 arg0, u16 *statStoreLocation1, u8 arg2, u8 arg3, u
array[4] = statStoreLocation1[STAT_SPDEF]; array[4] = statStoreLocation1[STAT_SPDEF];
array[5] = statStoreLocation1[STAT_SPEED]; array[5] = statStoreLocation1[STAT_SPEED];
color[0] = arg2; color[0] = arg2;
color[1] = arg3; color[1] = arg3;
color[2] = arg4; color[2] = arg4;
for(i = 0; i <= 5; i++) for(i = 0; i <= 5; i++)
{ {
@ -1917,19 +1917,19 @@ void DrawLevelUpWindowPg2(u16 arg0, u16 *statStoreLocation1, u8 arg2, u8 arg3, u
} }
ConvertIntToDecimalStringN(&text, array[i], STR_CONV_MODE_LEFT_ALIGN, numDigits); ConvertIntToDecimalStringN(&text, array[i], STR_CONV_MODE_LEFT_ALIGN, numDigits);
AddTextPrinterParameterized3(arg0, AddTextPrinterParameterized3(arg0,
1, 1,
0, 0,
15 * i, 15 * i,
color, color,
TEXT_SPEED_FF, TEXT_SPEED_FF,
gUnknown_08625B54[i]); gUnknown_08625B54[i]);
AddTextPrinterParameterized3(arg0, AddTextPrinterParameterized3(arg0,
1, 1,
6 * (4 - numDigits) + 56, 6 * (4 - numDigits) + 56,
15 * i, 15 * i,
color, color,
TEXT_SPEED_FF, TEXT_SPEED_FF,
&text); &text);
} }
} }
#else #else
@ -2071,32 +2071,10 @@ _081D3808:\n\
void GetMonLevelUpWindowStats(struct Pokemon *mon, u16 *statStoreLocation) void GetMonLevelUpWindowStats(struct Pokemon *mon, u16 *statStoreLocation)
{ {
statStoreLocation[STAT_HP] = GetMonData(mon, MON_DATA_MAX_HP); statStoreLocation[STAT_HP] = GetMonData(mon, MON_DATA_MAX_HP);
statStoreLocation[STAT_ATK] = GetMonData(mon, MON_DATA_ATK); statStoreLocation[STAT_ATK] = GetMonData(mon, MON_DATA_ATK);
statStoreLocation[STAT_DEF] = GetMonData(mon, MON_DATA_DEF); statStoreLocation[STAT_DEF] = GetMonData(mon, MON_DATA_DEF);
statStoreLocation[STAT_SPEED] = GetMonData(mon, MON_DATA_SPEED); statStoreLocation[STAT_SPEED] = GetMonData(mon, MON_DATA_SPEED);
statStoreLocation[STAT_SPATK] = GetMonData(mon, MON_DATA_SPATK); statStoreLocation[STAT_SPATK] = GetMonData(mon, MON_DATA_SPATK);
statStoreLocation[STAT_SPDEF] = GetMonData(mon, MON_DATA_SPDEF); statStoreLocation[STAT_SPDEF] = GetMonData(mon, MON_DATA_SPDEF);
} }