Skip to content

fix(macrofactory): show item options in their saved priority order - #3582

Merged
EllesmereGaming merged 1 commit into
EllesmereGaming:mainfrom
lkshrk:fix/macrofactory-menu-saved-order
Nov 24, 2026
Merged

EllesmereGaming merged 1 commit into
EllesmereGaming:mainfrom
lkshrk:fix/macrofactory-menu-saved-order

Conversation

@lkshrk

@lkshrk lkshrk commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

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?

  • Read the saved Drink order from SavedVariables ({11, 1, 2, ...}) and confirmed the macro body followed it while the menu did not.
  • Guardrails pass.
  • Not yet confirmed in game after the change.

Checklist

  • New settings default OFF: N/A, no new settings
  • Zero cost while disabled: N/A, menu code only
  • Cheap while enabled: no new events or per-frame work
  • No writes onto Blizzard-owned frames
  • Tested in-game on live

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.
@EllesmereGaming
EllesmereGaming merged commit 41b0c06 into EllesmereGaming:main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants