View Single Post
07-07-11, 04:27 PM   #13
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Yeah, you need the name of the frame to do this.

Code:
local f = kgPanel:Fetch("myframenameforspec2")  --or whatever this line should be
local spec = GetActiveTalentGroup(false,false)

if spec == 1 then
     self:Show()
     f:Hide()
elseif spec == 2 then
     self:Hide()
     f:Show()
end
Put the above in the OnEvent section of your spec1 panel. In OnLoad, you'll need to register for ACTIVE_TALENT_GROUP_CHANGED
Code:
self:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED")
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote