Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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]

  • 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?

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.

  • 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?

  • Author

assets folder

 

Of course, I know that :P

But I mean where is this folder located?

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.