Thread Tools Display Modes
01-03-11, 01:51 AM   #1
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
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
  Reply With Quote
01-03-11, 09:03 AM   #2
Sideshow
A Flamescale Wyrmkin
 
Sideshow's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 103
just open the lua file, make the "bar" var a global var and acces it then with bar[i] in a loop
  Reply With Quote
06-10-11, 10:15 PM   #3
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
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

local bar = {}
Do I just change it to:
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.
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah

Last edited by Lily.Petal : 06-10-11 at 10:20 PM.
  Reply With Quote
06-11-11, 02:32 AM   #4
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
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?
__________________

Tukui | Github
  Reply With Quote
06-11-11, 06:06 AM   #5
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by Sideshow View Post
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

Last edited by Ketho : 06-11-11 at 06:10 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » KGPanels + TinyDPS

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off