Port watermark mod
This commit is contained in:
parent
8e4b97e760
commit
b624959f84
Binary file not shown.
Binary file not shown.
|
@ -20,7 +20,7 @@ public class ServerInfo extends RenderModule{
|
||||||
|
|
||||||
public String getText(){
|
public String getText(){
|
||||||
if(mc.getNetHandler() != null){
|
if(mc.getNetHandler() != null){
|
||||||
return "[Playing on: " + mc.getNetHandler().getNetManager().getServerURI() + "]";
|
return "[Playing on: " + "Placeholder" + "]";
|
||||||
}
|
}
|
||||||
return "[Playing on: Not connected]";
|
return "[Playing on: Not connected]";
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,8 @@ import dev.resent.Resent;
|
||||||
import dev.resent.module.base.Category;
|
import dev.resent.module.base.Category;
|
||||||
import dev.resent.module.base.RenderModule;
|
import dev.resent.module.base.RenderModule;
|
||||||
import dev.resent.util.render.Color;
|
import dev.resent.util.render.Color;
|
||||||
GlStateManager.popMatrix();
|
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
|
||||||
import net.minecraft.src.FontRenderer;
|
import net.minecraft.client.gui.FontRenderer;
|
||||||
|
|
||||||
public class Watermark extends RenderModule{
|
public class Watermark extends RenderModule{
|
||||||
|
|
||||||
|
@ -23,11 +23,11 @@ public class Watermark extends RenderModule{
|
||||||
this.setWidth(fr.getStringWidth(Resent.NAME + " client 3.2 ")*2);
|
this.setWidth(fr.getStringWidth(Resent.NAME + " client 3.2 ")*2);
|
||||||
|
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
EaglerAdapter.glTranslatef(this.x + 1, this.y + 1, 0);
|
GlStateManager.translate(this.x + 1, this.y + 1, 0);
|
||||||
EaglerAdapter.glTranslatef(-(this.x + 1), -(this.y + 1), 0);
|
GlStateManager.translate(-(this.x + 1), -(this.y + 1), 0);
|
||||||
EaglerAdapter.glScalef(2f, 2f, 2f);
|
GlStateManager.scale(2f, 2f, 2f);
|
||||||
int i = fr.drawString(Resent.NAME + " client", (this.x+1)/2, (this.y+1)/2, Color.RED.getRGB(), true);
|
int i = fr.drawString(Resent.NAME + " client", (this.x+1)/2, (this.y+1)/2, Color.RED.getRGB(), true);
|
||||||
EaglerAdapter.glScalef(0.5f, 0.5f, 0.5f);
|
GlStateManager.scale(0.5f, 0.5f, 0.5f);
|
||||||
fr.drawString(Resent.VERSION + "", (i*2), this.y+(fr.FONT_HEIGHT*2-7), -1, true);
|
fr.drawString(Resent.VERSION + "", (i*2), this.y+(fr.FONT_HEIGHT*2-7), -1, true);
|
||||||
GlStateManager.popMatrix();
|
GlStateManager.popMatrix();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user