[idea]What about scrollable inventory lists in formspecs?

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

[idea]What about scrollable inventory lists in formspecs?

by orwell » Tue Mar 22, 2016 15:06

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!!!
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

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

by MineYoshi » Tue Mar 22, 2016 20:43

Explain i don't understand the idea, or someone do that for him!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

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

by orwell » Wed Mar 23, 2016 19:46

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
Attachments
scroll_list.png
scroll_list.png (433 Bytes) Viewed 484 times
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

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

by MineYoshi » Wed Mar 23, 2016 20:53

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!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 19 guests

cron