WoW:API GetCraftSkillLine: Difference between revisions
Jump to navigation
Jump to search
(GetCraftSkillLine - explained this function and removed the deletion request since it definitely exists and has a (slim) purpose.) |
(upgraded deprecated template) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
This command tells the caller which, if any, crafting window is currently open. | This command tells the caller which, if any, crafting window is currently open. | ||
Line 18: | Line 19: | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
Revision as of 17:30, 6 January 2007
This command tells the caller which, if any, crafting window is currently open.
currentCraftingWindow = GetCraftSkillLine(n)
Parameters
Arguments
- 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
- 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
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".