I've been thinking about the design of my unit frames and my HUD and batting around a few ideas. My current design is largely inspired by my old design -- which was created in Stuf and suffered some limitations inherent with using an addon. I've been checking out some more outside-the-box concepts, including an addon simply called Hud, and I'm thinking I want more from my design then what I have.
I've also been having some strange bugs. Well, one strange bug. Specifically, for no conceivable reason, my player unit frame disappears and is never seen or heard from again. It doesn't happen when I zone. It's not when I enter combat. It has nothing to do with attacking or taking damage. It's not even from dying. But it happens time and time again. I decided to take inspiration from Stuf, and their approach to creating unit frames is far different from what Blizzard does. I want to look at a few more unit frame addons, particularly oUF. I may decide to take a new approach here.
In other development news, I grabbed all the icons that my unit frame is using from all the different folders, converted them to PNGs, combined them into one file with their grayscale counterparts, and converted them back into a blp. I was trying to convert them to a tga, but simply removing the background and creating a 32-bit tga file didn't work. It gave it a white background with no transparency. Saving to a png and converting back to a blp worked great for me.
Each icon is centered within a grid space. The PVP icons use 3/4 of that grid space. The Status and voice icons use 1/4. This way, it should be easy to specify what I want from the file. Then simply adding 50% on the x-axis will give me the disabled version. And if in the future, I ever want my own icons (I'm personally not too happy with that "X" as the mute icon, for instance), then I simply update the file rather then creating a new file on the fly and going back into my code to update any place using the old file to point to the new one instead.
No comments:
Post a Comment