Thread Tools Display Modes
08-26-10, 07:29 AM   #1
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
Skinning bag buttons from cargbags_gnomed/nivaya.

I use a modified version of cargbags_gnomed which is very similar to cargbags_nivaya so users who may have created this for either may assist

How do I skin the normal buttons here, I'm trying to create a 1 pixel square border around the items. I have this from rActionButtonStyler and the textures I need, however I've tried and need to try from scratch again, and for that I need help.

http://pastey.net/140056
__________________

  Reply With Quote
08-26-10, 09:10 AM   #2
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
You can place the code for it in both PostAddButton() and/or UpdateButton()

UpdateButton is called every time the button is updated with new data.
PostAddButton is called whenever a button is added to the container, so fits good for initial setup.

There you can modify the following child regions of the button:
button.Icon
button.NormalTexture (the border/background)
button.Count (fontstring with item count)
button.Cooldown

And there's also the standard:
button:SetHighlightTexture()
button:SetPushedTexture()
__________________
« Website | GitHub »

Oh hai!
  Reply With Quote
08-26-10, 09:16 AM   #3
Quokka
A Chromatic Dragonspawn
 
Quokka's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 196
you could change the buttons direct

Code:
World of Warcraft\Interface\Buttons
and there the file UI-EmptySlot.blp that would change all empty buttons in the game
  Reply With Quote
08-26-10, 09:54 AM   #4
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
Thanks. Fixed it now
__________________

  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Skinning bag buttons from cargbags_gnomed/nivaya.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off