wardz / ClassicCastbars

[WoW] Customizable target castbars for Classic and Retail.
63 stars 5 forks source link

ClassicCastbars API #14

Closed illion20 closed 5 years ago

illion20 commented 5 years ago

Is your feature request related to a problem? Yes

Describe the solution or feature you'd like: I would like to have a function in ClassicCastbars that sends back the cast object as such:

function addon:UnitCastingInfo(unitID) if not activeTimers[UnitGUID(unitID)] then return end return activeTimers[UnitGUID(unitID)] end

I tried to add ClassicCastbars as dependency and add the function to the main lua in your addon just to test, then call from my addon:

local cast = ClassicCastbars.UnitCastingInfo("target")

But its always nil

Any additional context: I am a complete WoW addon noob just trying to get by in the world

drveoj commented 5 years ago

Check out LibClassicCast (maintained by me based on this codebase) or LibClassicCasterino (separate but very similar implementation by the author of NugRunning)

wardz commented 5 years ago

This ^

I won't add an API for ClassicCastbars at this point.