Author Topic: Sort tilesets by alphabetical order  (Read 118 times)

0 Members and 1 Guest are viewing this topic.

Offline Forestidia86

  • Posts: 540
    • View Profile
Sort tilesets by alphabetical order
« 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.

Offline Simon

  • Administrator
  • Posts: 2730
    • View Profile
    • Lix
Re: Sort tilesets by alphabetical order
« Reply #1 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

Online namida

  • Administrator
  • Posts: 9491
    • View Profile
    • NeoLemmix Website
Re: Sort tilesets by alphabetical order
« Reply #2 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.
« Last Edit: October 31, 2019, 02:09:05 am by namida »

Offline Simon

  • Administrator
  • Posts: 2730
    • View Profile
    • Lix
Re: Sort tilesets by alphabetical order
« Reply #3 on: November 02, 2019, 06:29:39 pm »
This is now github issue #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