Wikia

WoWWiki

API Button SetNormalTexture

Talk0
102,280pages on
this wiki
Revision as of 23:34, July 14, 2008 by Charibot (Talk | contribs)

Widget API



Sets the normal texture for a button.

Button:SetNormalTexture(texture or "texturePath")


Arguments

texture 
Texture - The texture to use
texturePath 
String - The path to the texture


Returns

nil


Details

You have to use "\\" or "/" in the texture path instead of "\" (since single backslash is the LUA escape character)

Although a texture object can be used as the argument, the texture will be re-parented to the button. Therefore, this function cannot be used to 'share' a texture between different widgets.

Around Wikia's network

Random Wiki