WoW:API ItemTextGetMaterial: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API ItemTextGetMaterial to API ItemTextGetMaterial without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<center>'''ItemTextGetMaterial''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}}


Get the material which an item text is written on.
Get the material which an item text is written on.
Line 20: Line 20:
----
----
__NOTOC__
__NOTOC__
{{Template:WoW API}}
[[Category:API Functions|ItemTextGetMaterial]]
[[Category:API Item Text Functions|ItemTextGetMaterial]]

Latest revision as of 04:46, 15 August 2023

WoW API < ItemTextGetMaterial

Get the material which an item text is written on.

materialName = ItemTextGetMaterial()

Parameters[edit]

Arguments[edit]

()

Returns[edit]

materialName
materialName
String - The name of the material touse for displaying the item text. If nil then the material is "Parchment".

Details[edit]

This is used one the ITEM_TEXT_READY event has been received for a page.
See FrameXML/ItemTextFrame.lua for examples of how the material is used to select a set of textures.