I have a frame that I use to position my unit frames. This code is in onUpdate:
local GBPB = kgPanels:FetchFrame("G_BotPB")
if PitBull4_Frames_player then
PitBull4_Frames_player:SetPoint('TOPLEFT', GBPB, 'TOPLEFT', 3, -42)
end
if PitBull4_Frames_focus then
PitBull4_Frames_focus:SetPoint('TOPRIGHT', GBPB, 'TOPRIGHT', -3, -42)
end
if PitBull4_Frames_target then
PitBull4_Frames_target:SetPoint('TOP', GBPB, 'TOP', 0, -3)
end
if PitBull4_Frames_pet then
PitBull4_Frames_pet:SetPoint('BOTTOMRIGHT', GBPB, 'TOPLEFT', -125, 10)
end
if PitBull4_Frames_pettarget then
PitBull4_Frames_pettarget:SetPoint('BOTTOMRIGHT', GBPB, 'TOPLEFT', -125, 65)
end
if PitBull4_Groups_Party then
PitBull4_Groups_Party:SetPoint('BOTTOMLEFT', GBPB, 'TOPRIGHT', 16, 16)
end
if clcprotFrame then
clcprotFrame:SetPoint('BOTTOMLEFT', GBPB, 'TOPLEFT', 52, 56)
end
I'm curious if anyone knows of a better way to do this? Or if I'm missing something essential.
My goal is to have these elements positioned relatively from a central location rather than use their own settings. This way if my resolution changes, their position is still okay and I'm also able to edit all of their positions from one simple config area rather than each individual addon.
I also use similar scripts for my ChatFrame(s), bartender bars, and skada.
Alright, I'm going to see if any progress has been made on the pixel-perfect front with the way the WoW engine works and how kgpanels works.
Basically, (TukUI for example has it coded, and if I'm not mistaken adding "virtual pizels" or something of the sort to get pixel-perfect on any resolution) I'm trying to get pixel-perfect borders...
Multisampling is set to 1x.
Granted, for the past 2-3 months I've been using a 720p LCD TV, I'm playing at 1360x768. Is there any hope of getting pixel-perfect borders with kgpanels?
I've made the 1px file in TGA format, and while the right/left border will be perfect, the top/bottom one is fuzzy. To get the top/bottom one perfect, I nudge it which changes the position slightly and does it but them the left/right borders get all jacked up.
While learning/editing LUA is a solution, I'm not looking to get into that aspect of it. I prefer a GUI style of editing things, so I don't really want to go the TukUI route of hardcoding panels and such. I'm just wondering if anyone found a "always working" way of getting pixel perfect borders?
Trying to write script which shrinks/grows panel depend on number of bars in Recount
if Recount_MainWindow_Bar3:IsShown() and
Recount_MainWindow_Bar0:IsShown()
then
self:SetWidth(260)
self:SetHeight(67)
self:SetAlpha(1)
else
if Recount_MainWindow_Bar3:IsShown()
then
self:SetWidth(260)
self:SetHeight(52)
self:SetAlpha(1)
else
if Recount_MainWindow_Bar2:IsShown() and
Recount_MainWindow_Bar0:IsShown()
then
self:SetWidth(260)
self:SetHeight(52)
self:SetAlpha(1)
else
if Recount_MainWindow_Bar2:IsShown()
then
self:SetWidth(260)
self:SetHeight(37)
self:SetAlpha(1)
else
if Recount_MainWindow_Bar1:IsShown() and
Recount_MainWindow_Bar0:IsShown()
then
self:SetWidth(260)
self:SetHeight(37)
self:SetAlpha(1)
else
if Recount_MainWindow_Bar0:IsShown()
then
self:SetWidth(260)
self:SetHeight(22)
self:SetAlpha(1)
else
if Recount_MainWindow_Bar1:IsShown()
then
self:SetWidth(260)
self:SetHeight(22)
self:SetAlpha(1)
else
self:SetAlpha(0)
end
end
end
end
end
end
end
All work fine, but after restarting the game code has broken down. I was find the occasion: it's additional bar which enabled in Recount and shows total value (Recount_MainWindow_Bar0), after disabling/enabling him all again works. Need help to fix problem.
I wanted to do a little BladeFlurry thingie and didn't want to do a whole addon for it. So I added a new frame, registered the combatlog event and tried to get arg12 (spellID since BladeFlurry is considered SPELL_DAMAGE) to work but not much luck so far.
I have read on the main page that kgPanels only registers the first 10 arguments - so is there a way to get my spellID or do I have to put it in a seperate addon?
So, I am having the damnedest time trying to figure out how to use Kgpanels to display character portraits. So I could have a decent looking 3d picture next to my frame and my target frame. Would anyone be so kind as to how I would go about doing this?
Hey i cant find a way to set up my panel to increase decrease the opacity level by being in combat and not.
for example: A panel is being 100% opacity while not in combat but when in combat i want it to be reduced ...let's say 30%
Is that possible ?
Hello, people! Excuse me for my bad speak English, but i need solution for my problem with your addon! =)
I write script that show panel when i target anything, and hide panel when target is none =) (bugaga, i like tumba-yumba)
And when show/hide panel, it's show/hide after 1-1,5 seconds, but i need instant show! How do instant show? =)
Tried to use the OnClick event and it looks like it's firing twice. Once for MouseDown and once for MouseUp. Is there a way to capture just the MouseUp?
I'm trying to do the following:
if kgPanel2:IsVisible() then
kgPanel2:Hide()
else
kgPanel2:Show()
end
Unfortunately what's happening is that kgPanel2 hides on MouseDown, but reappears on MouseUp.
Yes; kgPanels panels aren't buttons, so they don't actually have an OnClick script. Instead, kgPanels calls your "OnClick" code for both the OnMouseUp and OnMouseDown. However, in addition to the self and button arguments, it passes additional arguments named pressed and released, to tell you whether the mouse button is being pressed (OnMouseDown) or released (OnMouseUp).
if pressed then return end
-- your actual script here
Hi i am pretty new to Kgpanel, i have been looking for a fix to this the last hour, but i can't find any.
What i am trying to do is doing so a Kgpanel i have made to contain my skada windows is only visible when my skada windows are.
Does any of you know how to do this, if it helps are my 3 windows called: Healing, Damage Done and damagetaken.
I'm curious if anyone knows of a better way to do this? Or if I'm missing something essential.
My goal is to have these elements positioned relatively from a central location rather than use their own settings. This way if my resolution changes, their position is still okay and I'm also able to edit all of their positions from one simple config area rather than each individual addon.
I also use similar scripts for my ChatFrame(s), bartender bars, and skada.
Thanks
Basically, (TukUI for example has it coded, and if I'm not mistaken adding "virtual pizels" or something of the sort to get pixel-perfect on any resolution) I'm trying to get pixel-perfect borders...
Multisampling is set to 1x.
Granted, for the past 2-3 months I've been using a 720p LCD TV, I'm playing at 1360x768. Is there any hope of getting pixel-perfect borders with kgpanels?
I've made the 1px file in TGA format, and while the right/left border will be perfect, the top/bottom one is fuzzy. To get the top/bottom one perfect, I nudge it which changes the position slightly and does it but them the left/right borders get all jacked up.
While learning/editing LUA is a solution, I'm not looking to get into that aspect of it. I prefer a GUI style of editing things, so I don't really want to go the TukUI route of hardcoding panels and such. I'm just wondering if anyone found a "always working" way of getting pixel perfect borders?
All work fine, but after restarting the game code has broken down. I was find the occasion: it's additional bar which enabled in Recount and shows total value (Recount_MainWindow_Bar0), after disabling/enabling him all again works. Need help to fix problem.
if Recount_MainWindow_Bar1 and Recount_MainWindow_Bar1:IsShown()
o, thanks. now all work perfectly ;D
I wanted to do a little BladeFlurry thingie and didn't want to do a whole addon for it. So I added a new frame, registered the combatlog event and tried to get arg12 (spellID since BladeFlurry is considered SPELL_DAMAGE) to work but not much luck so far.
I have read on the main page that kgPanels only registers the first 10 arguments - so is there a way to get my spellID or do I have to put it in a seperate addon?
for example: A panel is being 100% opacity while not in combat but when in combat i want it to be reduced ...let's say 30%
Is that possible ?
-W.
OnLoad:
OnEvent:
I write script that show panel when i target anything, and hide panel when target is none =) (bugaga, i like tumba-yumba)
And when show/hide panel, it's show/hide after 1-1,5 seconds, but i need instant show! How do instant show? =)
Type /framestack and move your mouse over your target frame - this will tell you the frame name.
Then, at the bottom of the main settings for your panel (below colors, size, etc), enter this frame name as your panel's parent.
I'm trying to do the following:
if kgPanel2:IsVisible() then
kgPanel2:Hide()
else
kgPanel2:Show()
end
Unfortunately what's happening is that kgPanel2 hides on MouseDown, but reappears on MouseUp.
Any thoughts?
You may also want to read the kgPanels project page which provides this and other information.
Is there anyway to Lock/Unlock a kgPanel through scripting?
Tried a bunch of combinations like...
kgPanels:FetchFrame("myFrame"):SetMovable(true)
kgPanels:FetchFrame("myFrame").IsMovable = true
etc...
What i am trying to do is doing so a Kgpanel i have made to contain my skada windows is only visible when my skada windows are.
Does any of you know how to do this, if it helps are my 3 windows called: Healing, Damage Done and damagetaken.
Would really appreciate some help! :)
Set your frame as the parent of your kgPanel.
http://wow.gamepedia.com/Parent