Out of spite (mostly) and because I forgot to backup my own recent changes to my copy of GridStatusHots, I decided to create an alternative to the GridStatusHots module that would prove much cleaner in terms of code, and thus the initial release of GridStatusHotter is born (thanks Harkle for the name suggestion)!
https://github.com/GabeStah/GridStat...eleases/latest
If you use GridStatusHots and have no issues, this won't be much of an upgrade or difference. The functionality from the user-perspective is much the same, but the entire code base was rewritten to be more efficient and most importantly to me, allows for much simpler new Aura additions in the future.
Adding new Auras simply requires a new entry into the TRACKED_SPELLS table near the top of the GridStatusHotter.lua file. For example:
Code:
[116849] = {
class = 'MONK',
defaultOptions = {
threshold2 = 8,
threshold3 = 4,
},
name = L['Life Cocoon'],
},
[119611] = {
class = 'MONK',
stacksAura = 119607,
defaultOptions = {
stacks = true,
},
name = L['Renewing Mist'],
},
This shows two entries in the table, starting with the table key as the Spell ID of the aura in question, which is Life Cocoon in this case. The table has a few important fields like the class (to determine which Auras will load for your character) and the name. There is also an (optional) sub-table called defaultOptions that allows you to override any of the DEFAULT_STATUS_OPTIONS (found below the TRACKED_SPELLS table) that would normally be applied to this GridStatus, and instead set any of the options to your own defaults. Thus in this example, by default Life Cocoon has a few different time remaining thresholds specified for when to change colors. Renewing Mist uses the default threshold settings, but instead enables the stacks option, which indicates the Status should display the number of stacks the aura has, if applicable.
There's also another optional field in the Renewing Mist settings that is outside of the defaultOptions sub-table, meaning it isn't a UI-configurable option, called stacksAura. This indicates that this Status (Renewing Mist) will use the stack-count of a different aura in the display. In this case for my own usage, I want Renewing Mist to display the stack of its secondary effect, which shows how many "jumps" the Renewing Mist has left to make on any given target.
Anyway, as mentioned I'd encourage GridStatusHot users to try this new module out instead as I think it is already superior (and should prove much easier to manage/upgrade in the future as well). If you notice an Aura you would like tracked by default that isn't in the list (since I mostly just copied the old list for classes I don't play), please let me know here and I'll add them in.