Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.mc.getTextureManager().bindTexture(TEXTUREPATH);
- int counter, pos;
- ScaledResolution resolution = new ScaledResolution(this.mc, this.mc.displayWidth, this.mc.displayHeight);
- int horizontalStart = resolution.getScaledWidth() / 2 - 91;
- int verticalStart = resolution.getScaledHeight() - 49;
- //int screenHeight = resolution.getScaledHeight();
- for (counter = 0; counter < 10; counter++){
- if(currentMana > 0){
- pos = horizontalStart + counter * 8;
- if (counter * 2 + 1 < currentMana)
- {
- this.drawTexturedModalRect(pos, verticalStart, 10, 0, 9, 9);
- }
- if (counter * 2 + 1 == currentMana)
- {
- this.drawTexturedModalRect(pos, verticalStart, 20, 0, 9, 9);
- }
- if (counter * 2 + 1 > currentMana)
- {
- this.drawTexturedModalRect(pos, verticalStart, 0, 0, 9, 9);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment