ui border, fixes
This commit is contained in:
parent
a378c69d26
commit
5300c9e4fc
18 changed files with 150 additions and 149 deletions
|
@ -734,7 +734,7 @@ public class Game implements IThreadListener {
|
|||
Drawing.drawTextboxRight(name, x + 250, y, 0x3f000000);
|
||||
Drawing.drawTextbox(String.format(TextColor.GREEN + "%d " + TextColor.GRAY + "/ " + TextColor.NEON + "%d", value, max), x, y, 0x3f000000);
|
||||
// Drawing.drawRectColor(x, y + 20, 250, 10, 0xff000000);
|
||||
Drawing.drawRect2GradBorder(x, y + 20, 250, 10, 0xff000000, 0xff202020, 0xffcfcfcf, 0xff9f9f9f, 0xff9f9f9f, 0xff6f6f6f);
|
||||
Drawing.drawRectBorder(x, y + 20, 250, 10, 0xff000000, 0xff202020, 0xffcfcfcf, 0xff6f6f6f);
|
||||
Drawing.drawGradient(x + 2 + 246 - w, y + 20 + 2, w, 6, color | 0xff000000, Util.mixColor(color | 0xff000000, 0xff000000));
|
||||
return y + 40;
|
||||
}
|
||||
|
@ -743,7 +743,7 @@ public class Game implements IThreadListener {
|
|||
Drawing.drawTextbox(name, x, y, 0x3f000000);
|
||||
// Drawing.drawRectColor(x, y + 20, 250, 10, 0xff000000);
|
||||
// Drawing.drawRectColor(x, y + 20, (int)(250.0f * fill), 10, color | 0xff000000);
|
||||
Drawing.drawRect2GradBorder(x, y + 20, 250, 10, 0xff000000, 0xff202020, 0xffcfcfcf, 0xff9f9f9f, 0xff9f9f9f, 0xff6f6f6f);
|
||||
Drawing.drawRectBorder(x, y + 20, 250, 10, 0xff000000, 0xff202020, 0xffcfcfcf, 0xff6f6f6f);
|
||||
Drawing.drawGradient(x + 2, y + 20 + 2, (int)(246.0f * fill), 6, color | 0xff000000, Util.mixColor(color | 0xff000000, 0xff000000));
|
||||
return y + 40;
|
||||
}
|
||||
|
@ -767,7 +767,7 @@ public class Game implements IThreadListener {
|
|||
int x = this.fb_x / 2 - 180 + n * 40 + 4;
|
||||
int y = this.fb_y - 40;
|
||||
// Drawing.drawRect2Border(x - 1, y - 1, 36, 36, 0xff6f6f6f, selected == n ? 0xffffffff : 0xffafafaf);
|
||||
Drawing.drawRect2GradBorder(x - 1, y - 1, 36, 36, 0xff6f6f6f, selected == n ? 0xffffffff : 0xff000000, 0xffafafaf, 0xff7f7f7f, 0xff7f7f7f, 0xff4f4f4f);
|
||||
Drawing.drawRectBorder(x - 1, y - 1, 36, 36, 0xff6f6f6f, selected == n ? 0xffffffff : 0xff000000, 0xffafafaf, 0xff4f4f4f);
|
||||
}
|
||||
|
||||
ItemStack itemstack = this.thePlayer != null ? this.thePlayer.inventory.getCurrentItem() : null;
|
||||
|
@ -790,7 +790,7 @@ public class Game implements IThreadListener {
|
|||
entity.getHealth() + TextColor.GRAY + " / " + EntityLiving.getMaxHpColor(entity.getMaxHealth()) +
|
||||
entity.getMaxHealth() + TextColor.GRAY + "]";
|
||||
Drawing.drawTextboxCentered(s, x, y, 0x3f000000);
|
||||
Drawing.drawRect2GradBorder(x - 200, y + 20, 400, 10, 0xff000000, 0xff202020, 0xffcfcfcf, 0xff9f9f9f, 0xff9f9f9f, 0xff6f6f6f);
|
||||
Drawing.drawRectBorder(x - 200, y + 20, 400, 10, 0xff000000, 0xff202020, 0xffcfcfcf, 0xff6f6f6f);
|
||||
Drawing.drawGradient(x - 200 + 2, y + 20 + 2, (int)(396.0f * ((float)entity.getHealth() / (float)entity.getMaxHealth())), 6, entity.getColor() | 0xff000000, Util.mixColor(entity.getColor() | 0xff000000, 0xff000000));
|
||||
// Drawing.drawRectColor(x - 200, y + 20, 400, 10, 0xff000000);
|
||||
// Drawing.drawRectColor(x - 200, y + 20, , 0xff000000 | );
|
||||
|
@ -810,7 +810,7 @@ public class Game implements IThreadListener {
|
|||
String name = (potion.isBadEffect() ? TextColor.ORANGE : TextColor.ACID) + potion.getDisplay() + PotionHelper.getPotionPotency(effect.getAmplifier());
|
||||
String desc = TextColor.NEON + Potion.getDurationString(effect);
|
||||
// Drawing.drawRectColor(x, y, 250, Font.DEFAULT.yglyph + 2, color | 0xff000000);
|
||||
Drawing.drawGradient2GradBorder(x, y, 250, Font.YGLYPH + 4, color | 0xff000000, Util.mixColor(color | 0xff000000, 0xff000000), 0xff202020, 0xffcfcfcf, 0xff9f9f9f, 0xff9f9f9f, 0xff6f6f6f);
|
||||
Drawing.drawGradientBorder(x, y, 250, Font.YGLYPH + 4, color | 0xff000000, Util.mixColor(color | 0xff000000, 0xff000000), 0xff202020, 0xffcfcfcf, 0xff6f6f6f);
|
||||
Drawing.drawText(name, x + 4, y + 2, 0xffffffff);
|
||||
Drawing.drawTextRight(desc, x + 250 - 4, y + 2, 0xffffffff);
|
||||
y += 24;
|
||||
|
@ -937,7 +937,7 @@ public class Game implements IThreadListener {
|
|||
if(this.open != null)
|
||||
this.open.render();
|
||||
else if(this.theWorld == null || this.theWorld.hasNoChunks())
|
||||
Drawing.drawScaledBackground(this, Gui.DIRT_BACKGROUND);
|
||||
Drawing.drawScaled(this, Gui.DIRT_BACKGROUND);
|
||||
if(Bind.INFO.isDown() && (this.open == null || !(this.open.selected instanceof Textbox)))
|
||||
this.drawInfo();
|
||||
if(this.hudOverlay && !(this.open instanceof GuiConsole))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue