Originally Posted by
Zac343
if you look where it is drawing search like combat box or hpoverlay and then it will say like BoldFont change to small font
This is what I have
Code:
public void drawCombatBox(int xPos, int yPos, int width, int height, int currentHp, int maxHp, int hpBarXPps) { double percentOfHpLeft = (((double) currentHp / (double) maxHp) * 100);
double percentOfHpLost = 100-percentOfHpLeft;
int hpBarYPos = yPos + height - 20;
TextDrawingArea.drawAlphaFilledPixels(xPos, yPos, width, height, 000000, 80);
DrawingArea.drawPixels(15, hpBarYPos, hpBarXPps + (int) percentOfHpLeft, 11356749, (int) percentOfHpLost);
DrawingArea.drawPixels(15, hpBarYPos, hpBarXPps/*-(int)percentOfHpLost*/, 46336, (int) percentOfHpLeft);
newBoldFont.drawCenteredString(currentHp + "/" + maxHp, xPos + (width/2), hpBarYPos + 13,16777215,0);
}
i don't see how boldfont would work here.