WoWInterface

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

Lily.Petal 05-22-11 10:42 PM

KGPanels + Stuf Tables
 
I know it's possible to attach Panels to Stuf frames, but is it possible to attach it to, as an example, The targets Threat bar? Using /fstack I get with this example:

table: 20BC37EO
table: 20BC3790
table: 20BC27B8

Hope to get some insight on this ;D

Ketho 05-23-11 07:09 AM

afaik you can't ..

Maybe this thread will provide some information with :GetRegions()
http://www.wowinterface.com/forums/showthread.php?t=38911&page=2#27

Lordyfrb 05-23-11 08:44 AM

Now you can
 
Hi,
I've been working on this problem to, and have finally figured how to achieve this.

If you open Stuf\core.lua
And search for this line:
Code:

local f = CreateFrame(frametype or "Frame", nil, uf)
and replace it with this line:
Code:

local f = CreateFrame(frametype or "Frame", "Stuf."..unit.."."..name, uf)
It will then name each of the elements of the unit frame to something more usable.

i.e. the targets threat bar will now be named:
Code:

Stuf.target.threatbar
Hope this helps you.

Lily.Petal 05-23-11 09:02 AM

Quote:

Originally Posted by Ketho (Post 237840)
afaik you can't ..

Maybe this thread will provide some information with :GetRegions()
http://www.wowinterface.com/forums/showthread.php?t=38911&page=2#27

Thank you very much for the response, was about to start reading it when Lord posted.

Quote:

Originally Posted by Lordyfrb (Post 237847)
Hi,
I've been working on this problem to, and have finally figured how to achieve this.

If you open Stuf\core.lua
And search for this line:
Code:

local f = CreateFrame(frametype or "Frame", nil, uf)
and replace it with this line:
Code:

local f = CreateFrame(frametype or "Frame", "Stuf."..unit.."."..name, uf)
It will then name each of the elements of the unit frame to something more usable.

i.e. the targets threat bar will now be named:
Code:

Stuf.target.threatbar
Hope this helps you.

Genius good sir, thank you very much

red8981 05-23-11 11:50 AM

same can be used in litepanels, right?

Lily.Petal 05-23-11 01:12 PM

Quote:

Originally Posted by red8981 (Post 237862)
same can be used in litepanels, right?

I'd assume so since the change doesn't effect KGPanels, but stuf. Just makes it so that the tables have names instead of regions.

red8981 05-23-11 02:10 PM

Cool, Cool, Thanks

Lordyfrb 05-23-11 05:00 PM

Glad to help you out.

I'm currently writing a guide on some edits I have done to Stuf, 3 so far but thinking of other ones, this is going to be one of them, but the other 2 I have at the moment are pretty big changes that I'm sure will impress you.

And yes this change can be used with Litepanels, as Lily.Petal pointed out it only changes Stuf, and thus can be used with a addon to attach things to Stuf UF elements.

Lordyfrb


All times are GMT -6. The time now is 11:10 AM.

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