oUF CastBar Spark
I recently took the plunge and started playing with oUF in the hopes of replacing Pitbull/Quartz/etc. I've used oUF_Caelian as an example to work from.
My question centers around adding a spark to the casting bar a la the Blizzard or Pitbull versions. Looking in oUF/elements/castbar.lua, I can see that there is code to support this, should a Spark frame exist. How do I add this frame properly? How I've added it clearly isn't correct. Thus far, I've modified what Kyron has for casting bar initialization, but I'm sure I'm missing something trivial. (I'll post all of the code, though I think only the last bit is relevant) Code:
self.Castbar = CreateFrame('StatusBar', nil, self) |
is this a GCD spark like from quartz?
|
I'm not that ambitious quite yet. It's just the visual element at the leading end of the cast bar. I believe the default Blizzard castbar has a similar element.
|
And just like that, an oUF library update solves it all!
Now I can add the following code (to what I had before) to make it 'just work': Code:
self.Castbar.Spark = self.Castbar:CreateTexture(nil, 'OVERLAY') |
All times are GMT -6. The time now is 11:24 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI