Jump to content

How to make a Scrollable list of GuiButtons


ItsAMysteriousYT

Recommended Posts

Hey everyone, i was trying to create a GuiScreen on wich an unlimited number of GuiButtons(People can add and remove buttons) is displayed and when the buttons reach a certain point a scrollbar should show up so one can scroll down. But i have absoloutly no clue how to do it. Hope somebody can help me :D

Link to comment
Share on other sites

I always say this - in GUI stuff you will get no direct help without giving code of what you alredy got.

 

How to start?

Both Minecraft and Forge use what you want inside their classes. When you start coding GUI 1st thing you think about - "Is it alredy there?", and it is. Look at config GUI - "Controls...", use your IDE to find how it works - it's gonna take HELLA LOT of time (relatively) to understand it, but that's only way to start coding good stuff in future.

 

If you want to implement it on your own, you can use GuiScrollingList and create element list that will have GuiButton inside that will be pulled from some data pool (number of buttons).

1.7.10 is no longer supported by forge, you are on your own.

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.