I just came back to the game and am updating my personal layout, and have noticed a few discrepancies between the
oUF 7.0 Upgrade thread and the current code.
The thread says the AlternativePower element's PostUpdate callback should now be sending (unit, cur, min, max) but it's sending (unit, cur, max) with no "min" (
additionalpower.lua:125). Hopefully this was just overlooked in the code, and "min" should be added to match the Power element's PostUpdate callback.
The thread says the ClassPower element's PostUpdate callback should be sending (unit, cur, max, hasMaxChanged, powerType) but it's sending (cur, max, hasMaxChanged, powerType) with no "unit" (
classpower.lua:158). But, since this element only works on the player unit, the "unit" parameter would always be "player", so this was probably just a mistake in the thread and it isn't supposed to be in the code?
I can make a PR on GitHub, but I didn't know whether it was the code or the info thread that should be updated.
Thanks for all your hard work keeping oUF going!