Wikia

WoWWiki

Changes: API Button SetNormalTexture

Edit

Back to page

m (catfix, Replaced: {{widgetmethod}} → {{widgetmethod}}<br>)
m (catfix, Replaced: {{widgetmethod}}<br> → {{widgetmethod}})
 
Line 1: Line 1:
{{widgetmethod}}<br> __NOTOC__
+
{{widgetmethod}} __NOTOC__
   
   

Latest revision as of 23:50, July 14, 2008

Widget API


Sets the normal texture for a button.

Button:SetNormalTexture(texture or "texturePath")


Arguments Edit

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


Returns Edit

nil


Details Edit

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