mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-10 06:32:03 +00:00
New HUD_Perks
This commit is contained in:
parent
d8d6bce891
commit
b4e0906fdb
1 changed files with 48 additions and 45 deletions
|
@ -933,54 +933,57 @@ int current_perk_order;
|
||||||
|
|
||||||
void HUD_Perks (void)
|
void HUD_Perks (void)
|
||||||
{
|
{
|
||||||
int i;
|
int row, column = 0;
|
||||||
int y;
|
int x, y = 0;
|
||||||
y = vid.height - sb_round[1]->height - jugpic->height - 14;
|
|
||||||
|
|
||||||
for (i = 0; i < 9; i++)
|
#ifdef VITA
|
||||||
{
|
int x = 36;
|
||||||
if (perk_order[i])
|
int y = 4;
|
||||||
{
|
#else
|
||||||
if (perk_order[i] == P_JUG)
|
int x = 26;
|
||||||
{
|
int y = 364;
|
||||||
Draw_Pic (2, y, jugpic);
|
#endif // VITA
|
||||||
y = y - 34;
|
|
||||||
|
// Draw Even numbered Perks first -- these need to be
|
||||||
|
// overlayed below odd numbers/starts of columns.
|
||||||
|
for (int i = 0; i < 9; i++) {
|
||||||
|
if (i % 2 == 0) {
|
||||||
|
if (perk_order[i]) {
|
||||||
|
if (perk_order[i] == P_JUG) {Draw_StretchPic(x, y, jugpic, 28, 28);}
|
||||||
|
if (perk_order[i] == P_DOUBLE) {Draw_StretchPic(x, y, doublepic, 28, 28);}
|
||||||
|
if (perk_order[i] == P_SPEED) {Draw_StretchPic(x, y, speedpic, 28, 28);}
|
||||||
|
if (perk_order[i] == P_REVIVE) {Draw_StretchPic(x, y, revivepic, 28, 28);}
|
||||||
|
if (perk_order[i] == P_FLOP) {Draw_StretchPic(x, y, floppic, 28, 28);}
|
||||||
|
if (perk_order[i] == P_STAMIN) {Draw_StretchPic(x, y, staminpic, 28, 28);}
|
||||||
|
if (perk_order[i] == P_DEAD) {Draw_StretchPic(x, y, deadpic, 28, 28);}
|
||||||
|
if (perk_order[i] == P_MULE) {Draw_StretchPic(x, y, mulepic, 28, 28);}
|
||||||
}
|
}
|
||||||
else if (perk_order[i] == P_DOUBLE)
|
y += 28;
|
||||||
{
|
|
||||||
Draw_Pic (2, y, doublepic);
|
|
||||||
y = y - 34;
|
|
||||||
}
|
}
|
||||||
else if (perk_order[i] == P_SPEED)
|
|
||||||
{
|
|
||||||
Draw_Pic (2, y, speedpic);
|
|
||||||
y = y - 34;
|
|
||||||
}
|
}
|
||||||
else if (perk_order[i] == P_REVIVE)
|
|
||||||
{
|
#ifdef VITA
|
||||||
Draw_Pic (2, y, revivepic);
|
int x = 12;
|
||||||
y = y - 34;
|
int y = 4;
|
||||||
}
|
#else
|
||||||
else if (perk_order[i] == P_FLOP)
|
int x = 10;
|
||||||
{
|
int y = 364;
|
||||||
Draw_Pic (2, y, floppic);
|
#endif // VITA
|
||||||
y = y - 34;
|
|
||||||
}
|
// Now the Odd numbered ones.
|
||||||
else if (perk_order[i] == P_STAMIN)
|
for (int i = 0; i < 9; i++) {
|
||||||
{
|
if (i % 2 != 0) {
|
||||||
Draw_Pic (2, y, staminpic);
|
if (perk_order[i]) {
|
||||||
y = y - 34;
|
if (perk_order[i] == P_JUG) {Draw_StretchPic(x, y, jugpic, 28, 28);}
|
||||||
}
|
if (perk_order[i] == P_DOUBLE) {Draw_StretchPic(x, y, doublepic, 28, 28);}
|
||||||
else if (perk_order[i] == P_DEAD)
|
if (perk_order[i] == P_SPEED) {Draw_StretchPic(x, y, speedpic, 28, 28);}
|
||||||
{
|
if (perk_order[i] == P_REVIVE) {Draw_StretchPic(x, y, revivepic, 28, 28);}
|
||||||
Draw_Pic (2, y, deadpic);
|
if (perk_order[i] == P_FLOP) {Draw_StretchPic(x, y, floppic, 28, 28);}
|
||||||
y = y - 34;
|
if (perk_order[i] == P_STAMIN) {Draw_StretchPic(x, y, staminpic, 28, 28);}
|
||||||
}
|
if (perk_order[i] == P_DEAD) {Draw_StretchPic(x, y, deadpic, 28, 28);}
|
||||||
else if (perk_order[i] == P_MULE)
|
if (perk_order[i] == P_MULE) {Draw_StretchPic(x, y, mulepic, 28, 28);}
|
||||||
{
|
|
||||||
Draw_Pic (2, y, mulepic);
|
|
||||||
y = y - 34;
|
|
||||||
}
|
}
|
||||||
|
y += 28;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue