Jump to content

How to make a Scrollable list of GuiButtons


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

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now


  • Create New...

Important Information

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