Slothpala / RaidFrameSettings

RaidFrameSettings is a party/raid frame add-on that enhances the default World of Warcraft raid frames with many customization options and aura indicators.
https://www.curseforge.com/wow/addons/raid-frame-settings
GNU General Public License v2.0
4 stars 4 forks source link

Allow spellName to be entered in the spellId field. #49

Closed excorp closed 2 months ago

excorp commented 6 months ago

I made it possible to enter spellName instead of spellId.

This feature uses the WeakAurasOptions add-on to get the spellId from the spellName. So this will only work if you have the WeakAurasOptions addon installed.

I tried to copy weakaura's Cache.lua code and use it, but it took too long to collect spellIds with a coroutine running in the background. I decided to just use weakaura because it stores the cache in SavedVariables, so it's available almost immediately.

However, I believe many people use WeakAuras, and if they don't have it, they still can get the spellId from their spellbook.

excorp commented 6 months ago

If the weakauras add-on is not present, I've built my own spellCache to use. The code for spellCache is copied from weakauras.