Create panels for customizing your UI, sucessor to eePanels
OnClick now provides a pressed and released variable you can check for.
if pressed then -- do mouse down actions elsif 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.
Facts
- Date created
- 16 Sep 2008
- Category
- Last update
- 09 Aug 2009
- Development stage
- Release
- Language
- enUS
- frFR
- koKR
- zhCN
- License
- All Rights Reserved
- Curse link
- kgPanels
- Reverse relationships
- 1
- Recent files
Authors
Relationships
- Embedded library
- Ace3
- AceGUI-3.0-SharedMediaWidgets
- CallbackHandler-1.0
- LibSharedMedia-3.0
- LibStub
- #99
zernon916 Sat, 24 Oct 2009 18:40:27For Pitbull4 I used: Anchor = Pitbull4_Frames_targettarget Parent = Pitbull4_Frames_targettarget
Dont capitalize Targettarget. It is cap sensitive. targettarget is the correct way :)
- #98
arturogatti Sat, 24 Oct 2009 03:12:02hmm... 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 ;)
- #97
ImpalerCore Fri, 23 Oct 2009 21:14:06If 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.
- #96
arturogatti Fri, 23 Oct 2009 16:45:41Hi 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 ;)
- #95
zernon916 Thu, 22 Oct 2009 21:02:40Hi, 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.
- #94
Farside1234 Fri, 16 Oct 2009 12:05:49Thanks 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
- #93
ImpalerCore Fri, 16 Oct 2009 01:02:13I 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.
You can also do this for the focus using PLAYER_FOCUS_CHANGED a la
- #92
Farside1234 Thu, 15 Oct 2009 22:34:44Thanks 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.
- #91
ImpalerCore Thu, 15 Oct 2009 13:19:33Glad 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.
- #90
Farside1234 Wed, 14 Oct 2009 23:21:51I 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