Repository navigation
fix(macrofactory): show item options in their saved priority order - #3582
Merged
EllesmereGaming merged 1 commit intoNov 24, 2026
Merged
EllesmereGaming merged 1 commit into
EllesmereGaming merged 1 commit into
Conversation
The right-click menu built its rows in the default list order while the macro follows the saved order, so after a reload the menu showed a different priority than the macro used, and a drag moved the wrong entry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
The Macro Factory's right-click menu for item macros (Food, Drink, potions, stones) listed the options in the default order, while the macro itself follows the saved priority order. After a reload, any reordered macro showed one priority in the menu and used another. On Forever, for example, the Drink macro used Melon Juice before conjured water while the menu showed conjured water on top. A drag in that state also moved the wrong entry, because it took the row's on-screen position as an index into the saved order.
The menu now builds its rows from the saved order, the same way it already relays them out after a drag.
How was it tested?
{11, 1, 2, ...}) and confirmed the macro body followed it while the menu did not.Checklist