Jump to content

Pulsior

Members
  • Posts

    5
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Pulsior's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I searched for some tutorials on the subject, and they all tell me to do something like this: TextureManager e = Minecraft.getMinecraft().renderEngine; e.bindTexture(new ResourceLocation(TheOnePower.MODID, "textures/gui/spirit.png") ); Tessellator t = Tessellator.instance; t.startDrawingQuads(); t.addVertexWithUV(0, 0, 0, 0, 0);//bottom left texture t.addVertexWithUV(0, 64, 0, 0, 0);//top left t.addVertexWithUV(64, 64, 0, 1, 1);//top right t.addVertexWithUV(64, 0, 0, 64, 0);//bottom right t.draw(); But there's nothing happening. What's wrong in here?
  2. I can see that RenderGameOverlayEvent is posted when the GUI is updated. But how can I actually render my precious little icons? (by listening to RenderGameOverlayEvent, or in another way) Would you please, please give me a code example?
  3. I know how to listen in on the event, but I want the buttons to appear on screen when a key is pressed, and remove them with the another key. How should I make the buttons appear by listening in on an event which basically just allows me to get the x and y position of the rendered element?
  4. I am, but how should a use such a RenderGameOverlayEvent?
  5. So I recently started with modding, and I wondered how to show these buttons on screen, like this: I guess it has something to do with net.minecraft.client.gui, but I couldn't really find out how. Thanks in advance!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.