Jump to content

[1.8.9] Best way to create a GUI with buttons?


GalianRyu

Recommended Posts

Hey All,

 

So all I want to do is present a user with a simple "Yes/No" option when an Item is used that determines what the item actually does.  I have utilized GuiScreen a lot (for books/tutorials), so making a GUI isn't hard, but I'm curious what the best way is to make the server aware of which button is pressed?

 

Most GUI tutorials literally just say "do something here" and I've looked at packeting tutorials and every different one has you doing different things to create a packet so I'm not sure what's the best/cleanest/least-likely-to-cause-problems way to handle this fairly simple return to the server?

 

Any help is greatly appreciated.

Check out my Mod: The RPCraft Toolkit!

Link to comment
Share on other sites

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.