Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change level select index sorting order #26

Open
SuperFromND opened this issue May 5, 2023 · 0 comments
Open

Change level select index sorting order #26

SuperFromND opened this issue May 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@SuperFromND
Copy link
Contributor

Right now, Open Manifold's level list is quite simple: it indexes the folder path of every level in the levels folder, sorts it alphabetically, and... that's it!

This works fine enough, but I think it can be improved in a few different ways. I've created a couple different issues to lay out some improvement ideas I've had here and there.

Probably activated by pressing Triangle, this change would be pretty easy to implement as there's already a global level_index vector that can be re-sorted. All you'd have to do is use something like std::sort.

Alphabetically ascending and descending are trivial to implement this way, but more complicated sort orders (e.g. sorting by author name) would require indexing more data than just level paths, which we don't do right now.

@SuperFromND SuperFromND added the enhancement New feature or request label May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant