Classic Castbars

Classic Castbars

18M Downloads

Texture selector for the bar?

drveoj opened this issue ยท 5 comments

commented

Awesome addon! Works great and getting that level of sophistication that takes it to a new level with the configuration options.
Would love the ability to modify the Status bar texture (and ideally the font) based on LSM... Is that a possible addition?

commented

Thanks, I'll look into it. I don't want to add any libraries directly to ClassicCastbars as I want the addon to remain as lightweight as possible. But if LSM can still work by only using it in ClassicCastbars_Options, it's something that I can add support for in the future.

commented

I believe this should work. Ultimately you're going to set a variable to the path of a .tga or builtin texture for use in SetStatusBarTexture() - LSM just takes the hard work out of that by building a registry you can select such media from (across the inbuilt paths and any addons registering media)

commented

Gave you a pull request with the suggested changes (at least as a starter for 10 - you could clean it a good bit I expect but it works as a proof of concept and is basically almost a 1 line change in ClassicCastbars (ignoring the addition of some default config fields to Data.lua) - Options mod handles the lifting (also not massive changes required though...)

commented

Oh right, fixed it now. Thanks !

commented

Great work including the styling support! Note: Slight error in SetCastbarStyle() in Frames.lua

castbar:SetStatusBarTexture(db.castStatusbar)

should be

castbar:SetStatusBarTexture(db.castStatusBar)

(i.e. it's ignoring the status bar texture atm because of that typo)