Posted September 4, 201510 yr Hello Guys, I am developing a Minecraft mod for my server, and I wanted to know if it is possible to change the Main screen. Is it possible for me to use a JPanel for the startscreen, because I have an Eclipse Modification called "WindowBuilder" with that I can easily edit and create windows with JPanels, JLabels etc. The startscreen should look like this: Thanks for you help
September 4, 201510 yr I'm pretty sure you can't. Minecraft uses LWJGL, not Swing, which means it's not built off of JFrames and JPanels. There was another question a few days ago asking the same thing, here it is[/url. Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
September 4, 201510 yr Author LordMastodon: Thanks for your help, actually I just copied the Minecraft Main Menu, catched the GUIOpenEvent and set a new Mainmenu. The point is, that I don't know how to use custom graphics for my buttons etc. Do you know how I could do this?
September 4, 201510 yr 1. GL > Swing in terms of games. 2. You did right thing. 3. As to buttons - extend GuiButton and Override drawing method. Use: this.mc.getTextureManager().bindTexture(resourceOfTexture); this.drawTexturedModalRect(params...); To draw texture onto button. 1.7.10 is no longer supported by forge, you are on your own.
September 4, 201510 yr Author 1. GL > Swing in terms of games. 2. You did right thing. 3. As to buttons - extend GuiButton and Override drawing method. Use: this.mc.getTextureManager().bindTexture(resourceOfTexture); this.drawTexturedModalRect(params...); To draw texture onto button. Ok, and where should I place my textures?
September 4, 201510 yr Author assets folder Of course, I know that But I mean where is this folder located?
September 4, 201510 yr Swing is POSSIBLE, because I'm in the middle of making it work, is it worth it? No.
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.