debug overlay and others
This commit is contained in:
parent
8038516a66
commit
d629e8fb7b
4 changed files with 115 additions and 67 deletions
|
@ -1655,28 +1655,6 @@ private static final Random RANDOM = new Random();
|
|||
|
||||
|
||||
|
||||
private String formatPing(int ping) {
|
||||
TextColor base;
|
||||
if(ping < 0) {
|
||||
base = TextColor.GRAY;
|
||||
}
|
||||
else if(ping < 80) {
|
||||
base = TextColor.DARK_GREEN;
|
||||
}
|
||||
else if(ping < 160) {
|
||||
base = TextColor.GREEN;
|
||||
}
|
||||
else if(ping < 350) {
|
||||
base = TextColor.YELLOW;
|
||||
}
|
||||
else if(ping < 700) {
|
||||
base = TextColor.RED;
|
||||
}
|
||||
else {
|
||||
base = TextColor.DARK_RED;
|
||||
}
|
||||
return base + (ping < 10000 ? String.format("%d", ping) + "ms" : String.format("%.1f", ((float)ping) / 1000.0f) + "s");
|
||||
}
|
||||
|
||||
private void drawPing(int width, int xPos, int yPos, int ping) {
|
||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
|
@ -2030,30 +2008,6 @@ private void renderBossHealth() {
|
|||
|
||||
|
||||
|
||||
private void renderWorldDirections(float partialTicks)
|
||||
{
|
||||
if (this.gm.showDebugInfo && this.gm.thirdPersonView == 0 && !this.gm.hideGUI)
|
||||
{
|
||||
Entity entity = this.gm.getRenderViewEntity();
|
||||
GlState.enableBlend();
|
||||
GlState.tryBlendFuncSeparate(770, 771, 1, 0);
|
||||
SKC.glLineWidth(1.0F);
|
||||
GlState.disableTexture2D();
|
||||
GlState.depthMask(false);
|
||||
SKC.glPushMatrix();
|
||||
SKC.glMatrixMode(5888);
|
||||
SKC.glLoadIdentity();
|
||||
this.orientCamera(partialTicks);
|
||||
SKC.glTranslatef(0.0F, entity.getEyeHeight(), 0.0F);
|
||||
RenderGlobal.drawOutlinedBoundingBox(new BoundingBox(0.0D, 0.0D, 0.0D, 0.005D, 1.0E-4D, 1.0E-4D), 255, 0, 0, 255);
|
||||
RenderGlobal.drawOutlinedBoundingBox(new BoundingBox(0.0D, 0.0D, 0.0D, 1.0E-4D, 1.0E-4D, 0.005D), 0, 0, 255, 255);
|
||||
RenderGlobal.drawOutlinedBoundingBox(new BoundingBox(0.0D, 0.0D, 0.0D, 1.0E-4D, 0.0033D, 1.0E-4D), 0, 255, 0, 255);
|
||||
SKC.glPopMatrix();
|
||||
GlState.depthMask(true);
|
||||
GlState.enableTexture2D();
|
||||
GlState.disableBlend();
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue