How could I make this code much neater?
So, I currently have the following code written.
Lua Code:
The reason that I created another texture called Background is to create a outer background like the following image: However, I would like to Create "DruidMana" as a "Frame" rather than "StatusBar" and create "StatusBar" called "Bar" which becomes child object of "DruidMana" then Set Backdrop for "DruidMana" which I would like to use as outer frame instead of using texture called "Background". Which would become: Lua Code:
I actually tried it, but it was not possible to set "DruidMana" as "f.DruidMana" since "DruidMana" was set to "Frame", not "StatusBar". In addition to that even if I set "Bar" as "f.DruidMana", "DruidMana" does not hide on shape shift... Could I please get an advice regarding this? |
Why don't you just create a frame for the backdrop and give it a framelevel below the statusbar?
Lua Code:
Additionally. I'm a bit rusty but can't you just add the backdrop to the statusbar? |
Quote:
Could you please provide me with an example, if you don't mind :p |
I checked one of my outdated addons. I sort of did what you are looking for. I used a helper frame to work around issues with backdrop insets.
https://github.com/zorker/rothui/blo.../core.lua#L118 http://www.wowinterface.com/download...UF_Simple.html Be aware that the example is for an outdated version of oUF but the statusbar and backdrops have not changed. |
Quote:
Thank you for your help! |
All times are GMT -6. The time now is 01:29 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI