Statusbar borders
1 Attachment(s)
Hello =)
I'm currently playing around with some status bars, and I've been having some trouble fitting the border textures. As far as I've been able to google myself to, I need to use the SetBackdrop() method, however this places the borders behind my status bar and after even further investigation, I still haven't been able to get them placed in a proper position. I've included an image to clarify what I'm talking about. Code:
local time = 0 |
Try changing the insets...
lua Code:
Play with those values, until you get the border positioned where you wont... you can also do negative numbers for the inset as well. That will move the border out from its anchored position - or making it larger than the bg its attached to - Which might be what you need to do. Example: lua Code:
|
Thanks for your answer. I just tried entering an exaggerated amount. It only appears to affect the background texture, the edgetexture stay where it is. =/
|
Hrm I'll play with my crappy oUF layout tomorrow see if I can come up with something else to help you. If you figure it out before then YAY!
|
I'm fairly certain that you can't use regular backdrop borders on status bars because a status bar texture covers the entire frame, and a backdrop cannot be larger than its parent. So, you have to use a separate frame or texture.
|
Quote:
|
Code:
frame.border = CreateFrame("Frame", nil, MyStatusBar) |
I copied the code from Sniffles and made the proper adjustments and now it works flawlessly. =)
Thanks for the help! |
Yay! Glad you got it working.
|
All times are GMT -6. The time now is 10:31 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI