Skip to content

Add sorting for modifier dropdowns in crafting UI - #10120

Merged
LocalIdentity merged 5 commits into
PathOfBuildingCommunity:devfrom
vaisest:craft-sort
Aug 5, 2026
Merged

Add sorting for modifier dropdowns in crafting UI#10120
LocalIdentity merged 5 commits into
PathOfBuildingCommunity:devfrom
vaisest:craft-sort

Conversation

@vaisest

@vaisest vaisest commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #10023

Description of the problem being solved:

This adds a dropdown selector to the rare item crafting UI which controls sorting for the rare dropdowns. This allows for adding the modifier which grants the most power easily.

This also slightly refactors the dropdown code, which means that cluster jewels now have their modifiers combined. I couldn't see any reason for why they weren't included in the code and they seem to work fine.

I also moved the quality label by 4 px. It looked weird when everything else was in a straight line.

Steps taken to verify a working solution:

  • Modifiers are sorted
  • Cluster crafting works (sorting doesn't, though, because comparisons for these aren't really a thing)
  • Performance is acceptable, though not great. Only one mod per combined group is tested. The selected mod is based on the default item affix quality similar to what is done for the tooltips.

This is not super well tested, but is feature complete.

Link to a build that showcases this PR:

Before screenshot:

image image

After screenshot:

image image

vaisest and others added 4 commits August 4, 2026 21:35
The sorted list wasn't removing the current mod from the item before sorting the list so it could be skewed by the current selection
Also disables the sort from running if the selection is hidden. The sort was running in the background for the cluster jewels even though it was hidden
@LocalIdentity LocalIdentity added the enhancement New feature, calculation, or mod label Aug 5, 2026
The dropdown cut off the longer named stats

@LocalIdentity LocalIdentity left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I fixed an issue with it not removing the currently selected mod from the item before sorting and also made the dropdown wider as it was cutting off stats

@LocalIdentity
LocalIdentity merged commit 3c91ce8 into PathOfBuildingCommunity:dev Aug 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, calculation, or mod

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Item affix selectors sort by power gain

2 participants