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.
-
View User Profile
-
Send Message
Posted Apr 3, 2009suggestion: color copy/paste :D
-> would make it much easier to create matching background parts to puzzle together.
weird stuff:
-> panels randomly change their size (ranges between .5 and 5 pixels :x)
so far, sky
and thanks for a very sweet addon
-
View User Profile
-
Send Message
Posted Apr 4, 2009copy "all" from other panels doesn't work all of the time. (for me 2 times out of 4 attempts -> once it didnt work for a panel, it wont ever (for this panel))
-
View User Profile
-
Send Message
Posted Mar 31, 2009Awesome thanks heaps,resized them and they're working perfectly :D
-
View User Profile
-
Send Message
Posted Mar 30, 2009When adding custom textures remember that the file must have power-of-two dimensions. For reference: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048...
-
View User Profile
-
Send Message
Posted Mar 30, 2009does 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.
-
View User Profile
-
Send Message
Posted Mar 26, 2009-
View User Profile
-
Send Message
Posted Mar 25, 2009Show 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!
-
View User Profile
-
Send Message
Posted Mar 25, 2009A simple self:Hide() on the OnLoad tab solved the problem.
Thx.
-
View User Profile
-
Send Message
Posted Mar 23, 2009-
View User Profile
-
Send Message
Posted Mar 23, 2009if 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
-
View User Profile
-
Send Message
Posted Mar 28, 2009-
View User Profile
-
Send Message
Posted Mar 21, 2009I 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.
-
View User Profile
-
Send Message
Posted Mar 21, 2009-
View User Profile
-
Send Message
Posted Mar 21, 2009I 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.
-
View User Profile
-
Send Message
Posted Mar 19, 2009-
View User Profile
-
Send Message
Posted Mar 19, 2009-
View User Profile
-
Send Message
Posted Mar 19, 2009http://www.planetphotoshop.com/design-with-alpha-channel.html
-
View User Profile
-
Send Message
Posted Mar 19, 2009i cant help you there im a nub when it comes to photoshop
-
View User Profile
-
Send Message
Posted Mar 18, 2009@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.
-
View User Profile
-
Send Message
Posted Mar 17, 2009/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.