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.
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?
http://www.mmo-champion.com/index.php?topic=44318.msg742364#msg742364
I set up with a new texture. The result is a big white square. The only way to get the texture to display is by ticking "Tile Background". It displays (stretched into a square, which isn't so fine).
After playing around for some time, half the textures I've tracked down work fine and the other half will only display when you tile.
Any ideas on what it could be?
it is the grey square around the chat on this screenshot (my old ui)
http://img201.imageshack.us/my.php?image=wowscrnshot010509021358fy3.jpg
for #1
use onShow
PlaySoundFile("sound file path")
to swap the textures
I am doing some scripting and while I've figured out most of it. Im wondering if it is possible to do a couple things.
1.) Any way to have kgpanels trigger a sound when a pannels shows. A simple thing to do with other mods but I'd like to keep it down to as few as possible.
2.) After I've triggered a panel to show, is there any way to have it hide itself after a set amount of time?
3.) In one area of my UI, I have some artwork I use as a background that changes based on a number of things happening. Right now I just have a few frames on top of eachother and I am simply hiding everything but the one I want shown at a certain time. Potentially this could change frequently and I would rather keep any stress on the game to a minimum. Is there a 'better' way to do it, say having them all shown but swapping transparencies, etc. or is it really going to make any difference how I go about doing it?
I had hell to get my eePanels2 to look like I wanted and am not that excited to have to re-do it all again =/
works perfect, thank you!
ive just commited a fix, thanks to Stanzilla for helping debug
I've created a ticket with the scripts I'm using... nothing changed with the new version...
Thos of you who were having the 'it doesnt stick on reload' please double check the values you were setting for alpha in the colors. I noticed teh sample scripts had a alpha of 0 so it actually was working properly and applying an alpha of 0 which would make it non visible. Ive updated the samples to reflect proper values. You should also try to kep scripts with the panel it modifies OnShow is your friend for panels that are visible only with their parent.