Posted May 14, 201411 yr How would I render text and blocks of color onto the player's screen? For example a sentence colored red with a blue background highlight? I want to something like the intro to Fez, with the glitchy screen and stuff.
May 14, 201411 yr RenderOverlayGameEvent, use the in-game Minecraft fontrenderer and bind a string to the screen / draw a rectangle.
May 14, 201411 yr I don't see that as a valid event... What do you mean by "valid"? You mean you can't find it in the code source, or you mean you never see it triggered if you subscribe to it? Check out my tutorials here: http://jabelarminecraft.blogspot.com/
May 14, 201411 yr Author I think it is supposed to be RenderGameOverlayEvent. How would I draw stuff to the screen? I have only used the paint(Graphics g) method for drawing to screen before.
May 14, 201411 yr Use this: http://www.minecraftforge.net/wiki/Gui_Overlay It is for 1.5.2, but I'm sure you'll manage. Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!
May 14, 201411 yr Sorry, my bad. I didn't even see that I switched Game and Overlay around. That was my fault. If you still need further help, then re-read my first post. use the in-game Minecraft fontrenderer and bind a string to the screen / draw a rectangle. To put it in-depth: Get the Minecraft instance, and get the fontRenderer of that instance, use that to draw a string, or you can use drawRect (only if you create your own Gui class) Note: If you don't create a new GUI when you draw string or anything else it will override the entire screen forcing the exp/hp/armor bar to not successfully load-creating a graphic glitch with renders all textures useless unless you create a custom GUI. TL;DR - Use Minecraft's fontRenderer to draw the string or use Gui's drawRect (create own GUI). Be sure to create your own GUI class (place the event in there, too) to draw your string and crap if you don't want the game to glitch up because you overwritten the entire GUI for minecraft.
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.