Thread Tools Display Modes
03-24-10, 02:33 PM   #1
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 354
kgpanel

sorry, fixed :P

Last edited by mankeluvsit : 03-24-10 at 11:39 PM.
  Reply With Quote
03-24-10, 03:09 PM   #2
Taryble
A Molten Giant
 
Taryble's Avatar
Join Date: Jan 2009
Posts: 811
Why not use the built-in Parenting in kgPanels, instead of trying to script it? Just set the Parent frame (on the main page of the panel's config) to the name of StUF's Target frame.
__________________
-- Taryble
  Reply With Quote
03-24-10, 03:20 PM   #3
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 354
idk why i didnt think of that /:

thanks
  Reply With Quote
03-24-10, 06:02 PM   #4
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by mankeluvsit View Post
im trying to make my panel hide untill the frame is selected.

but, its not working

onload


onevent


and i know this hasnt to do with kgpanels, but every time i load wow, i have to re-scale my ui to minimal, cause it resets.
Stuf.units.target or anything like it are not units, they are "namespaced frame names". Valid examples of units are player, pet, target, focus, party1, raid1, etc.

Onload
Code:
self:RegisterEvent("PLAYER_TARGET_CHANGED")
OnEvent
Code:
if UnitExists("target") then self:Show() else self:Hide() end
  Reply With Quote
03-24-10, 11:30 PM   #5
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 354
edited, need diffferent kind of helpl.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » kgpanel


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