Jump to content

[1.14.4] Slider GUI Component.


Cerandior

Recommended Posts

I am currently trying to make a multi-block structure for handling storage. Basically you connect things that have inventories with pipes to a controller block, and then through this block you can access all of those inventories at once. The problem that I have right now, is that I obviously need to accommodate a huge number of slots in this gui, so a slider is the obvious choice. However I am not entirely sure how would I implement this. I have an idea, but I don't like it because it doesn't seem very efficient. I was thinking of using the slider as some sort of "offsett" applier, and depending on this offset I reload the slot contents into the gui to the appropriate chests/inventories. Now that would mean that every time I change this slider value I am essentially removing and re-assigning slots to the container, and that doesn't seem like a good idea if there are a lot of inventories connected to this block. I also had another idea but I am not sure this one is possible. I was thinking about adding all the slots at the beginning and using the slider offset value as a "guide" on which part of the gui to render. Can you do that? The next choice, which is also the easiest one, is to create "pages" of slots and I can use two buttons to navigate through them, but I don't like the aesthetic of this solution. Could someone offer some help with the slider?

Edited by Cerandior
Link to comment
Share on other sites

Also, look at the creative inventory gui for doing scrolling stuff.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.