Widget API: Button:SetNormalTexture

From AddOn Studio
Revision as of 15:45, 27 June 2007 by WoWWiki>Ravas (Noted the escape character is used in the texture path.)
Jump to navigation Jump to search

Widget API ← Button < SetNormalTexture


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)