WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   KGPanels + TinyDPS (https://www.wowinterface.com/forums/showthread.php?t=38089)

Lily.Petal 01-03-11 01:51 AM

KGPanels + TinyDPS
 
Hello, I'm currently trying to skin my UI with KGpanels, and everything so far is going great until I ended up at TinyDPS. I'm trying to border each BAR in the list.

Problem is, I can't figure out what the parent/anchor name is, besides tdpsStatusBar, which it seems is the name of every bar.

Tried to do tdpsStatusBar1, tdpsStatusBar2, tdpsStatusBar3, etc, but didn't seem to have any effect.

Was hoping someone out there was able to do it successfully, or who might know or how to figure it out.

Thank you for reading <3

Sideshow 01-03-11 09:03 AM

just open the lua file, make the "bar" var a global var and acces it then with bar[i] in a loop

Lily.Petal 06-10-11 10:15 PM

Sorry about necro'ing this thread. But I need to clarify something.

How do I change it to a global?

in the variables I see

Quote:

local bar = {}
Do I just change it to:
Quote:

bar[i] = {}
?

EDIT: I tried doing what was said in this thread, but I'm not using just a background image.

I'm also trying to make each bar have it's own individual border instead of having a border around all the bars.

jasje 06-11-11 02:32 AM

Code:

for i = 1 do
 bar[i].border = CreateFrame("Frame", nil, bar[i])
 bar[i].border:SetPoint("TOPLEFT", bar[i], "TOPLEFT", -2, 2)
 bar[i].border:SetPoint("BOTTOMRIGHT", bar[i], "BOTTOMRIGHT", 2, -2)

Something like this?

Ketho 06-11-11 06:06 AM

Quote:

Originally Posted by Sideshow (Post 225297)
just open the lua file, make the "bar" var a global var and acces it then with bar[i] in a loop

Uhmm again what Sideshow said
Code:

local bar = {}
Code:

bar = {}

------
???
------

for i = 1, #bar do
--        do stuff with bar[i]
end

I don't really understand the context though (between arrays/tables and the Frame stuff Jasje mentioned) :(
You also might want to change the name to be more unique if it's in the global namespace


All times are GMT -6. The time now is 09:24 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI