Page 1 of 1

[idea]What about scrollable inventory lists in formspecs?

PostPosted: Tue Mar 22, 2016 15:06
by orwell
Had this idea recently:
scroll_list[<inventory location>;<list name>;<X>,<Y>;<W>,<H>;(starting_index)]
As long as all inventory slots fit into the W,H rectangle, it behaves like a regular list[] element.
As soon as the inventory has more than W*H slots, a scroll bar is added on the right and the list can be scrolled.
Is this difficult to implement, or can it be achieved in finite time?
Further ideas:
- horizontal scroll lists
- scroll containers (for any gui elements) (I think we will not need this)
- we need to make textareas scrollable!!!

Re: [idea]What about scrollable inventory lists in formspecs

PostPosted: Tue Mar 22, 2016 20:43
by MineYoshi
Explain i don't understand the idea, or someone do that for him!

Re: [idea]What about scrollable inventory lists in formspecs

PostPosted: Wed Mar 23, 2016 19:46
by orwell
Imagine an inventory that has 8*5=40 slots, but in your GUI there's only space for a 8*3 inventory.
As of now, you would create a button [Next Page] to show the remaining 16 inventory slots.
With this approach, a scrollbar would be automatically added so that you can scroll down until you see the last 2 lines.
See also this image to see what I mean:
Image

Re: [idea]What about scrollable inventory lists in formspecs

PostPosted: Wed Mar 23, 2016 20:53
by MineYoshi
Now i understand, and in really is a good idea!

But better say someone, e.j Rubenwardy if it's a good idea!


And if is possible that can be in MT (It's a good idea IMHO) or maybe in a mod!

And if it's so hard!

i am a simple human, so i can't say you anything about if i can do this!