kgPanels

Create panels for customizing your UI, sucessor to eePanels

Wiki and FAQ

Sample Scripts

OnClick now provides a pressed and released variable you can check for.

if pressed then
  -- do mouse down actions
elseif released then
  -- do mouse up actions
end

This means your script will get called twice when someone clicks the panel.

Here is a youtube link to a video Tutorial

Ive created an Example Texture Pack.

This example pack is just a template. If you want to use it as a storage spot for your art, look at the read me file for directions on usage.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of zernon916 zernon916 Oct 24, 2009 at 18:40 UTC - 0 likes

    For Pitbull4 I used: Anchor = Pitbull4_Frames_targettarget Parent = Pitbull4_Frames_targettarget

    Dont capitalize Targettarget. It is cap sensitive. targettarget is the correct way :)

  • Avatar of arturogatti arturogatti Oct 24, 2009 at 03:12 UTC - 0 likes

    hmm... i think im doing it all correctly but the frame doesnt load when the Pitbull4_Frames_Targettarget shows. (yes, im using pitbull4)

    i think im parenting it well...

    im setting "PitBull4_Frames_targettarget" on both Parent Frame and Anchor Frame. They're both set to Center.

    so... am i missing somethin? :x

    thanks once again ;)

  • Avatar of ImpalerCore ImpalerCore Oct 23, 2009 at 21:14 UTC - 0 likes

    If these panels are decorations, then it should be as simple as using the frame finder to find the name of the Pitbull Frame, and then just set the parent of your kgpanel to that frame.

    I.E. for Pitbull3, the TargetOfTarget frame should be PitBullUnitFrame3, so that would be the name you would enter as the parent of your kgpanel.

    Use the frame finder on the pet frame and parent it to that and you should be set.

  • Avatar of arturogatti arturogatti Oct 23, 2009 at 16:45 UTC - 0 likes

    Hi again! :)

    Now i have two doubts...

    I just need to keep a panel hidden when my pet isnt active. (when players pet is visible, frame shows, if not it hides)

    I mean.. when my warlocks pet is summoned the panel opens up, and when it dies or isnt summoned the panel hides.

    and

    Pretty much the same thing has above but now it shows/hides when my target has a target or not. (when targets target frame is visible, frame shows, if not it hides)

    PS: I use pitbull for portraits frames and bars. Please explain it well cause im not into code thing. :P

    Thanks in advance ;)

  • Avatar of zernon916 zernon916 Oct 22, 2009 at 21:02 UTC - 0 likes

    Hi, Love this addon. I have been working on using this to skin a Druid UI. I am attempting to use it to change the borders of most of the target, player, focus, focus target, chat, targettarget, buffs, and many other frames. I am running into a problem with getting the Chat, and Minimap frame. I am using the parrent setting to show only when I have a buff active. It works until I log out. Once I log out and back in, those 2 panels decide to not show any more. I have tried to change the transpariency setting, with no luck. If anyone can help that would be awsome.

  • Avatar of Farside1234 Farside1234 Oct 16, 2009 at 12:05 UTC - 0 likes

    Thanks again for all your time, and input. That code worked perfectly,I now have working,and dragable on screen Target :HP/MP/Combo Point boxes.

    Farside
  • Avatar of ImpalerCore ImpalerCore Oct 16, 2009 at 01:02 UTC - 0 likes

    I got on WoW and did some testing, you can also try this. The self.text:SetText( "" ) didn't work as I saw the "Target" text also, so I went to LibDogTags documenation and found a RemoveFontString. This should also work for you.

    <OnLoad> 
    self:RegisterEvent("PLAYER_TARGET_CHANGED") 
    
    <OnEvent> 
    if UnitExists("target") then 
        LibStub("LibDogTag-3.0"):AddFontString(self.text, self, [[[thickoutline][( [IsPlayer ? Name:ClassColor ! IsPet ? Name:ClassColor ! IsEnemy ? Name:HostileColor ! PvP ? Name:HostileColor ! Name:ClassColor] )] ]], "Unit", { unit = "target"}) 
    else 
        LibStub("LibDogTag-3.0"):RemoveFontString(self.text) 
    end
    

    You can also do this for the focus using PLAYER_FOCUS_CHANGED a la

    <OnLoad> 
    self:RegisterEvent("PLAYER_FOCUS_CHANGED") 
    
    <OnEvent> 
    if UnitExists("focus") then 
        LibStub("LibDogTag-3.0"):AddFontString(self.text, self, [[[thickoutline][( [IsPlayer ? Name:ClassColor ! IsPet ? Name:ClassColor ! IsEnemy ? Name:HostileColor ! PvP ? Name:HostileColor ! Name:ClassColor] )] ]], "Unit", { unit = "focus"}) 
    else 
        LibStub("LibDogTag-3.0"):RemoveFontString(self.text) 
    end
    
    Last edited Oct 16, 2009 by ImpalerCore
  • Avatar of Farside1234 Farside1234 Oct 15, 2009 at 22:34 UTC - 0 likes

    Thanks again, I reworked this code:

    OnLoad

    self:RegisterEvent("UNIT_TARGET")

    self:Hide()

    OnEvent:

    if UnitExists("target") == nil then

    self:Hide()

    return

    else

    self:Show()

    return

    LibStub("LibDogTag-3.0"):AddFontString(self.text, kgPanels, [thickoutline][( [IsPlayer ? Name:ClassColor ! IsPet ? Name:ClassColor ! IsEnemy ? Name:HostileColor ! PvP ? Name:HostileColor ! Name:ClassColor] )], "Unit", { unit = "target"})

    end

    This works great. I appreciate all your help.

    Last edited Oct 15, 2009 by Farside1234
  • Avatar of ImpalerCore ImpalerCore Oct 15, 2009 at 13:19 UTC - 0 likes

    Glad to hear it's working for you!

    The issue you are describing is because the unit does not exist and DogTags still gives you a text string. You can combine your dogtag line with my kgpanel script below to set the text to "" when the unit does not exist.

    ---kgNamePanel---
    
    <OnLoad>
    self:RegisterEvent("PLAYER_TARGET_CHANGED")
    
    <OnEvent>
    if UnitExists("target") ~= nil then
        LibStub("LibDogTag-3.0"):AddFontString(self.text, kgPanels, [[[thickoutline][( [IsPlayer ? Name:ClassColor ! IsPet ? Name:ClassColor ! IsEnemy ? Name:HostileColor ! PvP ? Name:HostileColor ! Name:ClassColor] )] ]], "Unit", { unit = "target"}) 
    else
        self.text:SetText("")
    end
    
    Last edited Oct 15, 2009 by ImpalerCore
  • Avatar of Farside1234 Farside1234 Oct 14, 2009 at 23:21 UTC - 0 likes

    I have this code working:

    OnLoad:

    self:RegisterEvent("PLAYER_TARGET_CHANGED")

    OnEvent:

    LibStub("LibDogTag-3.0"):AddFontString(self.text, kgPanels, [[[thickoutline][( [IsPlayer ? Name:ClassColor ! IsPet ? Name:ClassColor ! IsEnemy ? Name:HostileColor ! PvP ? Name:HostileColor ! Name:ClassColor] )] ]], "Unit", { unit = "target"})

    Works great!,but one problem when I don't have any target I get this text in the center of the box. "Target" without the ""

    Thank you, Farside
    Last edited Oct 15, 2009 by Farside1234

Facts

Date created
Sep 16, 2008
Category
Last update
Oct 24, 2014
Development stage
Release
Language
  • enUS
  • frFR
  • koKR
  • zhCN
License
All Rights Reserved
Curse link
kgPanels
Reverse relationships
1
Downloads
1,837,812
Recent files
  • R: 1.20 for 6.0.2 Oct 24, 2014
  • R: 1.19 for 6.0.2 Oct 17, 2014
  • A: r433 for 6.0.2 Oct 17, 2014
  • A: r432 for 6.0.2 Oct 17, 2014
  • R: 1.18 for 5.4.8 Oct 14, 2014

Authors