Texture selector for the bar?
drveoj opened this issue ยท 5 comments
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?
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.
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)
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...)