Welcome, Guest.

Author Topic: Interwebz healthbar source  (Read 50 times)

Online KittoniuM

  • Administrator
  • Level 8 - Tru Packet
  • *
  • Posts: 1004
    • View Profile
  • Canada
Interwebz healthbar source
« on: July 24, 2018, 07:03:52 pm »
Code: [Select]
void DrawinterwebzHealthbar(const CColor& OutlineClr, const CColor& EspClr, const CColor& HealthColor, const CColor& Bicks, int X, int Y, const int& W, const int& HealthBarWidth)
{
int Index = 0;
int BackupX = X;
int BackupY = Y;

// Male Male :)
for (Index = 0; Index < 5; Index++)
{
g_Canvas->Fill(CInt2(X - Index, Y + Index), CInt2(W, 1), OutlineClr);
g_Canvas->Fill(CInt2(X - Index, Y + Index), CInt2(HealthBarWidth + 2, 1), EspClr);
g_Canvas->Fill(CInt2(X - 3, Y + 3), CInt2(HealthBarWidth + 2, 1), HealthColor);
g_Canvas->Fill(CInt2(X - 4, Y + 4), CInt2(HealthBarWidth + 2, 1), HealthColor);
}

// Oben
g_Canvas->Fill(CInt2(X, Y), CInt2(W, 1), Bicks);

// Unten
g_Canvas->Fill(CInt2((X + 1) - 5, Y + 5), CInt2(W, 1), Bicks);

for (Index = 0; Index < 5; Index++)
{
// Schr?g links
g_Canvas->Fill(CInt2(X, Y), CInt2(1, 1), Bicks);
X--;
Y++;
}

X = BackupX;
Y = BackupY;

for (Index = 0; Index < 5; Index++)
{
// Schr?g rechts
if (Index != 0)
g_Canvas->Fill(CInt2(X + W, Y), CInt2(1, 1), Bicks);

X--;
Y++;
}
}




Total Members


  • Youtube Youtube
  • Facebook Facebook
  • Twitter Twitter
  • Steam Steam

  • Powered by SMF | SMF © 2018, Simple Machines

    2018 BigPackets. All rights reserved. All other trademarks, logos and copyrights are the property of their respective owners. This site is not associated with any company in any way.