Lemmings Forums

Lix => Lix Main => Topic started by: Forestidia86 on October 30, 2019, 06:50:58 PM

Title: Sort tilesets by alphabetical order
Post by: Forestidia86 on October 30, 2019, 06:50:58 PM
The ordering of the tilesets is still dependant on the name of the author although in the editor only the name of the tileset is shown. For me ordering the tilesets alphabetically by their name would help to find tilesets.
But I don't know if anyone else is used to the current ordering.
Title: Re: Sort tilesets by alphabetical order
Post by: Simon on October 30, 2019, 06:56:40 PM
Yeah, this is a problem. I never made a new button class for these, nor did I reorder.

We can reorder by tileset name alphabetically.

Alternatively, we can add the author, e.g., in darker text above the bright tileset name. But the author is a weak criterion anyway, therefore I'd rather reorder by tileset name.

-- Simon
Title: Re: Sort tilesets by alphabetical order
Post by: namida on October 30, 2019, 07:13:38 PM
For comparison, NeoLemmix implementation: The user can have a "styles.ini" file that specifically tells NL what order to put styles in; it can also set user-friendly names for them that differ from the folder names. If this file is absent, or for any style not listed in it (in this latter case, unlisted styles are always after the listed styles), the remainder are sorted alphabetically by style name. (With this being said, in NL, almost all style names are in turn prefixed with the author name though, so this essentially becomes sort-by-author. There's a few that are instead prefixed with "orig" or "ohno", as well as three that are not prefixed, two of which are special-cases - "default" and "special" - and one of which comes from an official game that only has one style - "xmas".)

NeoLemmix ships with a styles.ini file that contains most styles anyway. Here's a copy of the default.
Title: Re: Sort tilesets by alphabetical order
Post by: Simon on November 02, 2019, 06:29:39 PM
This is now github issue #394 (https://github.com/SimonN/LixD/issues/394).

Re ordering file: We have these ordering files for level directories. Ordering file even worked out-of-the-box in the tileset directory before I flattened the tree listing to show all tilesets in a flat list. It seems overkill for this listing of ~20 tilesets that all fit on a single screen.

Re fit on a single screen: This dovetails into Icho's complaint that open tileset browser should not obscure the map. Solution for that is best left to standalone editor application with OS-native GUI, but I don't have time to write such an editor.

-- Simon