kgPanels
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 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.
Hi, the Ulduar patch in Classic WOTLK broke this addon :(
In reply to Azarias59:
Manually downloading the latest version (1.4.2) fixed it for me. It's not marked for WOTLK, so the Curseforge client won't grab it.
Does anyone know how to hide a panel when in an instance (any size)?
Thank you!
Message: [string "target_OnEvent"]:32: attempt to call method 'SetGradientAlpha' (a nil value)
Time: Mon Dec 5 12:02:13 2022
Count: 8
Stack: [string "target_OnEvent"]:32: attempt to call method 'SetGradientAlpha' (a nil value)
[string "target_OnEvent"]:32: in function <[string "target_OnEvent"]:1>
Locals: self = kgPanel1 {
0 = <userdata>
_backdrop_options = <table> {
}
SetBackdropGradientAlpha = <function> defined @Interface/AddOns/kgPanels/Libs/LibBackdrop-1.0/LibBackdrop-1.0.lua:540
OnBackdropLoaded = <function> defined @Interface/SharedXML/Backdrop.lua:152
GetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:390
_backdrop = Frame {
}
_GetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:409
SetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:422
bg = Texture {
}
text = FontString {
}
SetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:329
ClearBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:282
GetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:409
GetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:347
SetBackdropGradient = <function> defined @Interface/AddOns/kgPanels/Libs/LibBackdrop-1.0/LibBackdrop-1.0.lua:533
SetBorderBlendMode = <function> defined @Interface/SharedXML/Backdrop.lua:266
Center = Texture {
}
_GetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:390
RightEdge = Texture {
}
_SetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:329
_SetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:399
GetBackdropBorderSection = <function> defined @Interface/AddOns/kgPanels/Libs/LibBackdrop-1.0/LibBackdrop-1.0.lua:160
BottomEdge = Texture {
}
SetBackdropBorderGradientAlpha = <function> defined @Interface/AddOns/kgPanels/Libs/LibBackdrop-1.0/LibBackdrop-1.0.lua:573
SetupTextureCoordinates = <function> defined @Interface/SharedXML/Backdrop.lua:214
OnBackdropSizeChanged = <function> defined @Interface/SharedXML/Backdrop.lua:182
HasBackdropInfo = <function> defined @Interface/SharedXML/Backdrop.lua:278
missing_anchor_at_load = false
BottomRightCorner = Texture {
}
BottomLeftCorner = Texture {
}
TopRightCorner = Texture {
}
GetEdgeSize = <function> defined @Interface/SharedXML/Backdrop.lua:188
TopLeftCorner = Texture {
}
backdropInfo = <table> {
}
TopEdge = Texture {
}
missing_parent_at_load = false
scripts_loaded = false
BorderTextureFunction = <function> defined @Interface/AddOns/kgPanels/Libs/LibBackdrop-1.0/LibBackdrop-1.0.lua:141
GetBackdropBackground = <function> defined @Interface/AddOns/kgPanels/Libs/LibBackdrop-1.0/LibBackdrop-1.0.lua:152
SetBackdropBorderGradient = <function> defined @Interface/AddOns/kgPanels/Libs/LibBackdrop-1.0/LibBackdrop-1.0.lua:547
_GetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:347
_SetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:422
SetupPieceVisuals = <function> defined @Interface/SharedXML/Backdrop.lua:246
SetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:399
LeftEdge = Texture {
}
ApplyBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:294
}
event = "PLAYER_TARGET_CHANGED"
arg1 = nil
arg2 = nil
arg3 = nil
arg4 = nil
arg5 = nil
arg6 = nil
arg7 = nil
arg8 = nil
arg9 = nil
arg10 = nil
kgPanels = <table> {
SetDefaultModuleLibraries = <function> defined @Interface/AddOns/kgPanels/Libs/AceAddon-3.0/AceAddon-3.0.lua:363
FetchFont = <function> defined @Interface/AddOns/kgPanels/kgPanels.lua:394
SetupScript = <function> defined @Interface/AddOns/kgPanels/kgPanels.lua:1029
Enable = <function> defined @Interface/AddOns/kgPanels/Libs/AceAddon-3.0/AceAddon-3.0.lua:290
RegisterChatCommand = <function> defined @Interface/AddOns/kgPanels/Libs/AceConsole-3.0/AceConsole-3.0.lua:81
EnableModule = <function> defined @Interface/AddOns/kgPanels/Libs/AceAddon-3.0/AceAdd
because of action targetting PLAYER_TARGET_CHANGED is called more often sometimes with different stuff? adding
Hey, LOVE this addon, but one of my panels keeps resetting its position no matter how many times I lock it, or reload, or even relog. It's always misplaced when I log back in. What can I do?
Hello, is this being worked on for Dragonflight? I am currently getting some errors on the PTR.
Thanks
On the tutorial video, the patch to the .tga files DOES NOT start with "\\", it just simply starts with "Interface\".
I'm assuming the Blizzard API changed since that video was made.
Also, I made tried "\\" didn't work and that artwork would not work even when I fixed it: the name would not show in the Panel Texture Options. I had to delete the artwork and add it back in correctly.
In reply to fireymerlin:
Thank God for you!! I wish they allowed comment on that video it might actually be helpful to bounce ideas like this off of each other. It's not always negative feedback. I really needed this help to make an old addon with art work for me.
Not sure what is going wrong or if I am doing something wrong, but I cannot get the colors to save profile specific. It seems that all the profiles are changing the colors when I make adjustments on one profile.
Ive removed/reinstalled as I thought maybe the LUA was corrupt, still happening.
Any ideas?
For some reason, it will not let me reply below. Having the same issue with config not working. Have tried every way but config will do nothing when typed.
I went back to the last version I had installed from 2018. Funny enough, the addon did not work, obviously, but config DID work. It would pull up the config window.
Any ideas?
In reply to Forge_User_65019214:
Is this a broken addon?
Bug report
Appears on loading.
v1.24
1x ...ns\kgPanels\Libs\LibBackdrop-1.0\LibBackdrop-1.0-3.lua:112: attempt to call method 'GetBackdrop' (a nil value)
[string "@kgPanels\Libs\LibBackdrop-1.0\LibBackdrop-1.0-3.lua"]:112: in function `EnableEnhancements'
[string "@kgPanels\Libs\LibBackdrop-1.0\LibBackdrop-1.0-3.lua"]:57: in function `EnhanceBackdrop'
[string "@kgPanels\kgPanels-1.24.lua"]:405: in function <kgPanels\kgPanels.lua:394>
[string "@kgPanels\kgPanels-1.24.lua"]:801: in function `PlaceFrame'
[string "@kgPanels\kgPanels-1.24.lua"]:716: in function `ApplyLayout'
[string "@kgPanels\kgPanels-1.24.lua"]:514: in function <kgPanels\kgPanels.lua:510>
[string "=[C]"]: ?
[string "@Masque\Libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:70: in function <...aceMasque\Libs\AceAddon-3.0\AceAddon-3.0.lua:65>
[string "@Masque\Libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:527: in function `EnableAddon'
[string "@Masque\Libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:630: in function <...aceMasque\Libs\AceAddon-3.0\AceAddon-3.0.lua:615>
Please help, cant bring the configuration window.
/Kgpanels config or any other command is not working
However the addon on the previous layout is working fine but cant modify it..
In reply to safw008:
Just read the comment below from "podden" and myself and apply the fixes and it'll work again.
In reply to Venaraa:
I have modified the files as per the mentions earlier, so far no error coming up, but commands are not working (/kgpanels config or layout or panels etc)
1- kgPanels.lua (inside\Interface\AddOns\kgPanels)
Line 400:
frame = CreateFrame("Frame","kgPanel"..panelIndex,parents["UIParent"])
to
frame = CreateFrame("Frame","kgPanel"..panelIndex,parents["UIParent"],"BackdropTemplate")
2- kgPanelGuideFrame.lua (inside\Interface\AddOns\kgPanelsConfig)
Line 34:
guide = CreateFrame("Frame", nil, frame)
to
guide = CreateFrame("Frame", nil, frame, "BackdropTemplate")
Any other changes that can help resolving this issue?
In reply to safw008:
Not sure why this isn't working for you, it's working fine here. I've zipped up my addon files, maybe I made another change somewhere and forgot. Try and see if this works for you :)
https://drive.google.com/file/d/1LyX7tC2cgvOAqkkK4U500lCycpS3CkLq/view?usp=sharing
In reply to Venaraa:
many thanks for your prompt replay, means alot.
I have downloaded the shared files and check it in game, but again cant toggle /kgpanels config.
I asked a friend to downloads the files and toggle: /kgpanels config , and he got LUA error as below (maybe it will help to exclude the problem)
((
Message: Interface\AddOns\kgPanelsConfig\kgPanelsConfig.lua:605: Cannot find a library instance of "LibDualSpec-1.0".
Time: Fri Oct 16 22:33:57 2020
Count: 1
Stack: Interface\AddOns\kgPanelsConfig\kgPanelsConfig.lua:605: Cannot find a library instance of "LibDualSpec-1.0".
[string "=[C]"]: in function `error'
[string "@Interface\AddOns\kgPanels\Libs\LibStub\LibStub.lua"]:23: in function `LibStub'
[string "@Interface\AddOns\kgPanelsConfig\kgPanelsConfig.lua"]:605: in function <Interface\AddOns\kgPanelsConfig\kgPanelsConfig.lua:596>
[string "=[C]"]: ?
[string "@Interface\AddOns\kgPanels\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:70: in function <...e\AddOns\kgPanels\Libs\AceAddon-3.0\AceAddon-3.0.lua:65>
[string "@Interface\AddOns\kgPanels\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:498: in function `InitializeAddon'
[string "@Interface\AddOns\kgPanels\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:623: in function <...e\AddOns\kgPanels\Libs\AceAddon-3.0\AceAddon-3.0.lua:615>
[string "=[C]"]: in function `LoadAddOn'
[string "@Interface\AddOns\kgPanels\kgPanels.lua"]:634: in function `?'
[string "@Interface\AddOns\kgPanels\Libs\AceConsole-3.0\AceConsole-3.0.lua"]:94: in function `?'
[string "@Interface\FrameXML\ChatFrame.lua"]:5073: in function `ChatEdit_ParseText'
[string "@Interface\FrameXML\ChatFrame.lua"]:4737: in function `ChatEdit_SendText'
[string "@Interface\FrameXML\ChatFrame.lua"]:4773: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>
Locals: <none>
))
In reply to safw008:
I can't reproduce this on my end, everything works fine. However, your error is pretty clear: Your client doesn't appear to load "LibDualSpec-1.0", which is then producing this error.
You could try installing LibDualSpec-1.0 separately and see if that works:
https://www.curseforge.com/wow/addons/libdualspec-1-0
I don't actually run this lib separately as it is included in kgPanels, but I do run Ace3 separately. Might be worth a shot installing that:
https://www.curseforge.com/wow/addons/ace3
I'm not really sure how to help you beyond that, sorry :(
In reply to Venaraa:
I downloaded LibDualSpec-1.0 ==> And replace the old files.
Same for Ace, and included in Libs folders in kgpanels & config.
Sadly no success on toggling /kgpanels config
I sees it like a dead end.
Anyhow, thanks alot man for the support and the prompt reply, it lessen this problem :>