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.
does panel art need to be a certain resolution and aspect ratio to be displayed,eg. 512x512. I made some panel art but they wont show up, made them 24bit targa files.
Show a panel based on being in combat
OnLoad
self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
OnEvent
if event == "PLAYER_REGEN_ENABLED" then
self:Hide()
elseif event == "PLAYER_REGEN_DISABLED" then
self:Show()
end
It works great, the only problem is that when i log in to the game, the combat frame is shown... and then i have to enter combat and leave it to make it go away. Isn't there a way to make that panel hidden upon login, so it would be shown for the fist time only when i enter combat?
Thanks a lot and grats for your excelent work!
A simple self:Hide() on the OnLoad tab solved the problem.
Thx.
if button == "RightButton" and released then
ToggleFrame(WorldMapFrame)
end
I added suppor ti 1.24 to let you onClick script see mouse up/down states via the local variabled
pressed
released
I have a panel that sits over my minimap with OnClick script:
if button == "RightButton" then
ToggleFrame(WorldMapFrame)
end
So when I right clicked it, it opened up my map. Now, its acting more like OnMouseDown instead of OnClick. When I'm holding my right mouse button down on the panel it shows the map, but as soon as I release it toggles again.
I also changed the image sized to 512 X 256
Using the path \\Interface\\Addons\\textures\\test.tga
Still getting the texture missing line =(
This makes me sad because I'm currently using Electroflux Textronator to texture my addon, and I'm trying to switch to a more updated add-on.
http://www.planetphotoshop.com/design-with-alpha-channel.html
i cant help you there im a nub when it comes to photoshop
@Nae-Blis
"Dimensions must be powers of 2, e.g.: 2, 4, 8, 16, 32, 64, 128, 256, 512"
Change your dimensions to 512 x 256 and it should upload.
/tar self
/facepalm
thanks lol
I am having trouble figuring out how to get the background of my art to be transparent. Every time I upload it I have my art, but it's in a big box. Any suggestions, because I'm pretty new to photoshop.
I have tried saving it as both a 24 and 32bit/pixel without having any compression.
The size is 512 X 250 pixels
However I can't get kgpanels to find my file.
I get the following error in WoW:
[13:43:56]kgPanels: Texture missing! \\Interface\\textures\\test.tga
I have it saved in:
C:\Users\Public\Games\World of Warcraft\Interface\textures\test.tga
I enter \\Interface\\textures\\test.tga in the artwork path field under the artwork name field and artwork type drop down menu.
I understand Ripstorm93 has the same symptoms, but I noticed that the solution to his problem is that his filepath isn't pointing to the correct directory due to the path pointing to a textures folder that doesn't exist in the addons directory.
Mine seems to be in all the right places.
Any help would be appreciated.
put you textures under Interface\Addons\textures
not Interface\textures
Hi everyone, I'm new to using kgPanels and am having some problems. I've read some tutorials and watched some vids and stuff but I can't manage to upload my own artwork/textures. So hopefully one of you can tell me what I'm doing wrong.
I am using Microsoft Digital Image (Starter Addition) to create the file as .tga
Here's where I am saving the file.
C:\Program Files\World of Warcraft\Interface\textures\Rip.tga
Dimensions of the file are 128 by 128.
Here's my Path that I am using
\\Interface\\AddOns\\textures\\Rip.tga
So what am I doing wrong because I don't see my texture being uploaded?