Fix formatting.
This commit is contained in:
parent
91a94a0ca1
commit
64da3d051e
1 changed files with 43 additions and 65 deletions
|
@ -1653,10 +1653,10 @@ 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));
|
||||||
|
|
||||||
array[0] = statStoreLocation2[STAT_HP] - statStoreLocation1[STAT_HP];
|
array[0] = statStoreLocation2[STAT_HP] - statStoreLocation1[STAT_HP];
|
||||||
array[1] = statStoreLocation2[STAT_ATK] - statStoreLocation1[STAT_ATK];
|
array[1] = statStoreLocation2[STAT_ATK] - statStoreLocation1[STAT_ATK];
|
||||||
array[2] = statStoreLocation2[STAT_DEF] - statStoreLocation1[STAT_DEF];
|
array[2] = statStoreLocation2[STAT_DEF] - statStoreLocation1[STAT_DEF];
|
||||||
|
@ -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,21 +1889,21 @@ 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));
|
||||||
|
|
||||||
array[0] = statStoreLocation1[STAT_HP];
|
array[0] = statStoreLocation1[STAT_HP];
|
||||||
array[1] = statStoreLocation1[STAT_ATK];
|
array[1] = statStoreLocation1[STAT_ATK];
|
||||||
array[2] = statStoreLocation1[STAT_DEF];
|
array[2] = statStoreLocation1[STAT_DEF];
|
||||||
array[3] = statStoreLocation1[STAT_SPATK];
|
array[3] = statStoreLocation1[STAT_SPATK];
|
||||||
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++)
|
||||||
{
|
{
|
||||||
numDigits = 3; //3 digit stat
|
numDigits = 3; //3 digit stat
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue