I've been messing around and I think I've narrowed down my problem. Every time I try to anchor or parent a kgpanels frame to a pitbull frame, the onload scripts stop working. I've tried anchoring/parenting the frames to other frames from other addons and all my scripts work fine, it's just a problem with pitbull. Any ideas on what I could do to fix it would be appreciated.
I wiped out my interface and wtf folder and only have kgpanels ver. 1.14 installed in an effort to get scripts to work. I make a new panel. Set background color style and border texture to none, then set background texture to solid. I parent it to the standard bliz player frame (PlayerFrame) and copy/paste the script code from your samples to color based on your class into the onload and hit accept. Once i get the frame set, I lock it, it works like it should so I reload. Thats when the problems come. I have to open kgpanels after reload and re-click accept for the script to load. Then I have to click on the background color picker and hit cancel to get the classed color frame to show properly again.
Am I setting the panel up wrong? The changes listed above are the only changes being made to a fresh panel. Thanks in advance.
some people report this issue, but i havent been able to replicate it. my script dont require reloading .. the only diff is I didnt parent them for a unit frame. ill try that this weekend.
It works properly. be sure you check your script .. setting the alpha to 0 on border and background changes makes it invisible. The sample script had an error in it where it was setting the alpha to 0 so it would be invisible.
Alrighty, so, I am making a Ui for a Dk and I want to do paneling for my rune add-on. I am unable to parent panels to this particular add-on frame. So I would love it if someone could tell me what script I could use for a panel to achieve the following:
Panel only shows if the character is in combat AND also only if the character is a Dk.
Thanks for the script fix, they work great now. The only issue I am having is a sleight delay for my target pane when i change targets with a different class. I parented the panel to the target frame, put self:RegisterEvent("UNIT_TARGET") in Onload, and put the appropriate class color code in Onevent. There probably isnt anything that can be done about the delay, but it does work and I am very happy :D
yeah instead of waiting for the event, put the logic in onShow so as soon as the target frame becomes visible you execute instead of waiting ont he event to propogate
Alrighty, so, I am making a Ui for a Dk and I want to do paneling for my rune add-on. I am unable to parent panels to this particular add-on frame. So I would love it if someone could tell me what script I could use for a panel to achieve the following:
Panel only shows if the character is in combat AND also only if the character is a Dk.
:D
OnLoad
if select(2, UnitClass("player")) ~= "DEATHKNIGHT" then
self:Hide()
return
end
self:RegisterEvent("PLAYER_REGEN_ENABLED")
self:RegisterEvent("PLAYER_REGEN_DISABLED")
OnEvent
if event == "PLAYER_REGEN_DISABLED" then
self:Show()
else
self:Hide()
end
Onshow worked if I did not have a current target, but it would stick to the same color if I changed targets. OnUpdate worked like a charm though. Thanks again:p
i want to create a party frame panel that changes its offset position based on the number of party members i don't want to use resizing for this since i am using custom texture graphics and don't want to distort the look of the graphic
also another thing i want to do is create a sliding panel based on the upper most bar of dotimer or ellipsis but the frame names are constantly changing and none of the addons Ive tried seem to have an easy to use anchor frame like omen uses a script for this might be my only option im thinking but i don't even know where to start on interacting with addons i have basic skills when it comes to scripting for kgpanels so only simple things i know how to do so far like hiding and showing panes
for the repositioning based on party members, just register the party changed event and do a self:SetPoint appropriately. as for the second seems like what you want would be more complicated than a simple script. Scripting was added for advanced users so maybe you can get lucky and someone would write it for you. (I dont have the time)
as for the second seems like what you want would be more complicated than a simple script. Scripting was added for advanced users so maybe you can get lucky and someone would write it for you. (I dont have the time)
this sounds overly complicated do you know of a an addon that supports a proper anchor frame or a allows me to add one in my self
Am I setting the panel up wrong? The changes listed above are the only changes being made to a fresh panel. Thanks in advance.
Panel only shows if the character is in combat AND also only if the character is a Dk.
:D
Thanks again
OnLoad
OnEvent
also another thing i want to do is create a sliding panel based on the upper most bar of dotimer or ellipsis but the frame names are constantly changing and none of the addons Ive tried seem to have an easy to use anchor frame like omen uses a script for this might be my only option im thinking but i don't even know where to start on interacting with addons i have basic skills when it comes to scripting for kgpanels so only simple things i know how to do so far like hiding and showing panes
Ive also switched over to use the new wowace localization system so you guys can update as you need and dont ned to send me files directly.
this sounds overly complicated do you know of a an addon that supports a proper anchor frame or a allows me to add one in my self
magicrunes use lib bars to make the anchor and its a unnamed button