jMonkeyEngine-Contributions / Lemur

Lemur is a jMonkeyEngine-based UI toolkit.
http://jmonkeyengine-contributions.github.io/Lemur/
BSD 3-Clause "New" or "Revised" License
116 stars 33 forks source link

Feature Request: Add horizontal listbox #80

Open Ali-RS opened 5 years ago

Ali-RS commented 5 years ago

Currently Listbox only supports vertical mode with slider in Y axis, It will be useful to add a horizontal mode with slider in X axis.

pspeed42 commented 5 years ago

This could mean a lot of different things. Do you mean a single column list box that can have items larger than can be displayed (super hard without proper clipping)? Or do you mean a single row list box that is essentially flipped on its side? Or do you mean a multi-column list box?

...or something else?

Ali-RS commented 5 years ago

Or do you mean a single row list box that is essentially flipped on its side?

Yes, this one.

Edit: To be crystal clear, I made this quick image : horizontal-listbox

Ali-RS commented 5 years ago

Regarding a multi-row horizontal listbox, lisbox-multirow afaik ListBox uses a grid panel, so this should be possible. So having an option to set number of rows seems to be a very nice feature :) (The same can be done for a vertical multi-column ListBox )

Aufricer commented 5 years ago

2019-05-30_152705

My lemur changed files can be found in my profile https://github.com/Aufricer/Lemur_Enhancements/tree/master/Export_LemurChanges/src

I have not followed the lemur updates since 2 or 3 months. In case anything else had changed in the relevant files I might not have taken care off it.

As Pspeed has mentioned there are some difficulties.

Aufricer commented 5 years ago

My example also has a "dynamic" slider and an optional multi select of listbox. But for the basic PR, a multi column or multiline and multicolumn listbox the files may give an idea.