Jump to content

Recommended Posts

Posted

Hey Guys.

 

I searched for about 4 hours for this problem and I don't found anything...

 

Now here is my Question:

    How can I edit the Main Menu (delete Buttons, edit Buttons, create new Buttons, etc.)?

 

Please be insightful for my bad English (I'm German) and I warn you I'm a beginner ;) ...

 

Posted

Oh well, that a thema where I'm missing a tutorial. Well I think a year ago I had the same question and didn't find a tutorial or anything that would help me and so I gave there for one year up.

Developer of Primeval Forest.

Posted

Yes, but how do I add this code? With an event?

 

CoolBoy above already mentioned an event that looks like it would work.  However, based on your questions it sounds like you've never done a mod that has intercepted an event before.  So maybe you need to try out some tutorials on that first.

 

No offense but when you ask for help you need to show you know enough that you can use the help and that you're not being too lazy.  So create an event handler and try to intercept the event that CoolBoy mentioned and see what happens.  If it doesn't work, post your code that you tried here and we can help further.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

I got a NullPointerException:

import net.minecraftforge.client.event.GuiOpenEvent;
import net.minecraftforge.event.ForgeSubscribe;

public class Core_Listener {	

@ForgeSubscribe
public void Menu(GuiOpenEvent e){
	e.gui.drawScreen(50, 10, 5f);
}
}

Posted

Do not start your methods with a capital letter; it's bad convention. You may want to create your own separate GuiScreen class that mimics the Main Menu screen. That way, you don't have to worry about deleting or screwing around with the vanilla screen, just make your own. Besides, it's a good learning experience. :)

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.