WoW:API Button SetNormalTexture: Difference between revisions
Jump to navigation
Jump to search
m
Move page script moved page API Button SetNormalTexture to WoW:API Button SetNormalTexture without leaving a redirect
No edit summary |
m (Move page script moved page API Button SetNormalTexture to WoW:API Button SetNormalTexture without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{widgetmethod}} __NOTOC__ | |||
You have to use \\ instead of \ | |||
Sets the normal texture for a button. | |||
Button:SetNormalTexture(texture or "texturePath") | |||
== Arguments == | |||
:; texture : [[UIObject 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. | |||