Jump to content

Recommended Posts

Posted

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: 86a409-1441372259.png

 

Thanks for you help ;D

Posted

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.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

Posted

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?

Posted

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.

Posted

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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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