BuffSkin (1.33 Beta)

Change Log:
--------------------
1.31 fixed a missing statement at line 60 that prevented gloss textures from being un hidden %26gt;%26lt;



1.32 commented out a debugging line that was spamming a bit, added gloss and glossalpha as extra commands.



1.33 changed getglobal to _G at request of Mikari :)

Description:
--------------------
Quick hotfix to comment out a debugging line that was spamming the debuff type(thanka to Calmindon for spotting this.)

Also added a couple of extra commands:

/buffskin gloss - removes the gloss layer completely(reload the set to bring it back)

/buffskin glossalpha(0.01 to 1) (changes the transparency of the gloss)



The code for these is a bit crude at the mo, but it does the job, i'll re write a slightly cleaner method in the next version. Please feel free to let me know if you find any other bugs :)



Very simple, lightweight addon to skin the default buff frames. I called it "BuffSkin" because it.. er.. skins buffs!



The idea is this file stays as small as possible so only 1 skin is included, check out the optional files for more skins.





New Version: BuffSkin is Bigger!(and smaller)

I've just uploaded a new update, with a lot more features, in a smaller file size!

I'll go through what it contains:



General extra's:

Added the option to have a seperate gloss texture

Added changing the debuff texture colour by debufftype: eg the white parts of the debuff texture would turn green if the debuff were a poison.(the gloss would still stay white due to the new gloss layer.)

Added the option to set the texture layer larger(or smaller) than the debuff icon, eg for textures that need to imitate shadows.

If only one texture fiel is present (and called texture.tga) then it will be used for all buff frames (buff, debuff, and weapon enchant)



Changing textures In-Game



To allow basic ingame config, while keeping the addon lightwieght, i have added a seperate module called BuffSkinLoader.

For those who are comfortable with lua, this file can just be deleted, and you can change your loaded texture's using BuffSkin.lua, which now has a simple table to fill in with textures.



BuffSkinLoader will load any folders in the buffskin directory named "SetX" where X is between 1 and 20. This should make it easier for people to change skins, as all they need to do is drag the new texture folder into the buffskin folder, start the game up, and change to that skin.

The commands are as follows:

"/buffskin" - returns all valid commands that can be entered:

"/buffskin list" returns a list of all skins that can be loaded

"/buffskin SetX" re skins the buffs with the desired skin, for example "/buffskin Set5" will load skins from the folder "Set5" (if it exists)

"buffskin offsetX" will increase the size of the skin to X pixels bigger than the buff icon.





Recomended format for uploading skins:

The folder must be called "SetX", where X is a number between 1 and 20, that isnt already listed under optional addons.

The folder can contain either or but not both. Gloss.tga is optional for both.

If you dont want the gloss on the debuff icons to change colour with debufftype, the gloss must be included as a seperate layer (Gloss.tga)

If needed, include a help file with instructions for your textures, eg gloss alpha values, or offset values.

see my "Set1" file for an example.





This addon is beta at best and so all feedback and/or ideas for next version is appreciated! Also note that the current optional skins will not work until i have had the chance to update them.