Lemmings Forums

NeoLemmix => Bugs & Suggestions => Closed => Topic started by: mobius on March 10, 2019, 02:53:09 PM

Title: [sug] Organization of lists in editor
Post by: mobius on March 10, 2019, 02:53:09 PM
Could their be a better way to organize the items in the background, theme and style lists in the editor? In alphabetic order perhaps?? As it is; I have no idea how they are organized but finding anything is  always a chore. I know what I want but because it's in seemingly no order, or order that I understand I have to spend a long time going through the entire list to find what I want.

The theme and style lists aren't so bad; they seem to be ordered by having official sets first then ordered by author, though I still sometimes have trouble finding something especially if it's a custom set and if I'm not sure who did it. It's especially a problem in the background list. Seriously; how is this ordered? It's not alphabetical by name or author; it seems just random ??? ???
Title: Re: [sug] Organization of lists in editor
Post by: namida on March 10, 2019, 06:44:01 PM
Styles (and the themes corresponding to them) are ordered based on the "styles.ini" file. You can modify that yourself if you prefer a specific order (you can't break things too badly here - at worst you'll mess up the order, not have missing or broken styles as a result). Any not listed in that file will go to the end of the list, I'm not sure how they're ordered - I think it may just be "the order the operating system reports the folders in".

Backgrounds, I'm not sure if there's any rules as such (probably again "the order the operating system reports them"), except that the currently selected theme's backgrounds are moved to the top of the list.
Title: Re: [sug] Organization of lists in editor
Post by: mobius on March 11, 2019, 11:50:50 PM
Styles (and the themes corresponding to them) are ordered based on the "styles.ini" file. You can modify that yourself if you prefer a specific order (you can't break things too badly here - at worst you'll mess up the order, not have missing or broken styles as a result). Any not listed in that file will go to the end of the list, I'm not sure how they're ordered - I think it may just be "the order the operating system reports the folders in".

Backgrounds, I'm not sure if there's any rules as such (probably again "the order the operating system reports them"), except that the currently selected theme's backgrounds are moved to the top of the list.

well, what files contain the lists for the backgrounds and themes? It's not in the styles.ini And it can't be based on folder structure (my folder list isn't at all like my styles list, I have my styles folder set to ).
The theme list is the same as the styles because (well for obvious reasons I guess)

The background list is the real issue for me here. When I scroll through it only has the name of most backgrounds with no author or anything and since it's in no order; alphabetical or anything how are you supposed to find anything?
nessy
aqua_2
candies
blue_bg ... ???

Note it also can't  be based on the order of the styles because in 'nessy' is the first backgroudn in my list yet Arty's lego is the first style in my folder structure but original dirt is first in the list, but then next background is colors and fire is the next style.
Title: Re: [sug] Organization of lists in editor
Post by: namida on March 12, 2019, 08:29:50 AM
I'm pretty sure that whatever theme you currently have selected, backgrounds for that theme appear first in the list. But I don't know what the rules are beyond that.

EDIT: From a very quick look at the source code repo, it'd appear they should be sorted alphabetically by the style's displayed-in-editor name, and when multiple exist for the same style, by the background's name.
Title: Re: [sug] Organization of lists in editor
Post by: namida on June 05, 2020, 01:53:31 AM
Commit c821e96 implements nicer background selection, similar to that of terrain pieces or objects. Some later commits fix bugs with this.