WoW:API Button SetNormalTexture: Difference between revisions
Jump to navigation
Jump to search
(Noted the escape character is used in the texture path.) |
No edit summary |
||
Line 17: | Line 17: | ||
== Details == | == Details == | ||
: You have to use "\\" or "/" in the texture path instead of "\" (since single backslash is the LUA escape character) | : 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. |
Revision as of 06:37, 6 August 2007
← 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)
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.