Posted June 9, 201312 yr just wath screenshot's. code: Client side proxy: MinecraftForge.EVENT_BUS.register(new GUI()); GUI: public class GUI extends Gui { public GUI() { super(); } @ForgeSubscribe(priority = EventPriority.LOWEST) public void draw(RenderGameOverlayEvent event) { if (FMLClientHandler.instance().getClient().inGameHasFocus) { Minecraft.getMinecraft().fontRenderer.drawString("some text", 5, 45, 0xffffffff); } } } pictures: http://prntscr.com/192wv1
June 9, 201312 yr What's weird about it? You asked Minecraft to draw "some text" at (5,45) and it did. BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 10, 201312 yr FontRendere binds the texture but desn't unbind it, you need to make sure you reset it before exiting. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
June 10, 201312 yr Oh, lol, I can't read. Wasn't thinking about the GUI part. BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 10, 201312 yr Author now question:how do i need to unbind it......glBindTexture(2D,0) dont work.....
June 10, 201312 yr Author ok,now it work's a loooot better.if (event.type.equals(event.type.TEXT)) <- that is asome check
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.