WoW API: GetCraftSkillLine

From AddOn Studio
Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetCraftSkillLine to API GetCraftSkillLine without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetCraftSkillLine

This command tells the caller which, if any, crafting window is currently open.

currentCraftingWindow = GetCraftSkillLine(n)

Arguments[edit]

n
Numeric - Not sure how this is used, but any number greater than zero seems to behave identically. Passing zero always results in a nil return value.

Returns[edit]

currentCraftingWindow
String - The name of the currently opened crafting window, or nil if no crafting window is open. This will be one of "Enchanting" or "Beast Training".

Details[edit]

This function is not quite the same as GetCraftDisplaySkillLine(). The latter returns nil in case the Beast Training window is open, while the current function returns "Beast Training".