Jump to content

Help with adding a scroll bar in a gui


Mecblader

Recommended Posts

So I have a gui that I made and I have it setup similar in appearance to how the creative gui looks. It is not similar in code because I cannot understand the code in the class because many methods and fields are name with fuction_XXXXXXX and field _XXXXXXX. What I need is a way to add a scroll bar to my gui because I have 55 slot on the gui in a single tab and I need 468 in each tab. I already have the tab system working, but I don't really know how to add a scroll bar and I need to add one. So, if anyone has done this before and have example code to reference or know of an open source mod that adds this sort of thing in one of their guis and their code is relatively easy to read and figure out what is going on, or at least easier to read and comprehend than the Minecraft creative gui. All help is appreciated, Thank You!

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

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.