Wet-Boys / LookingGlass

A QoL UI mod that exposes statistics for items and the player, adjusts the size and features of command and scrapper menus, and much more. Fully open source and compatible with RiskUI!
https://thunderstore.io
GNU Lesser General Public License v3.0
9 stars 5 forks source link

More options for item sorting #80

Open SSM240 opened 4 days ago

SSM240 commented 4 days ago

Bit of a bigger feature this time, this overhauls the sorting settings to be more customizable.

Code-wise, the things worth pointing out / commenting on are:

Considerations / known issues:

SSM240 commented 4 days ago

Just thought of a potentially better way to handle the presets thing - if it's possible to create a dropdown that's not directly tied to a setting that gets saved, we could use that for presets instead, and add more of them (like "Legacy" ones that use the current tier sorting?) without taking up a bunch of space in the menu. I'll have to look at that later when I get the chance.

(EDIT: this might not be possible actually, ChoiceOption seems to always expect there to be a ConfigEntry... maybe if we create our own option class but that feels like overkill đŸ˜…)