WoW:API GetCraftDisplaySkillLine: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(GetCraftDisplaySkillLine - initial explanation.)
 
m (Move page script moved page API GetCraftDisplaySkillLine to API GetCraftDisplaySkillLine without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{removedapi|3.0|Crafting API was absorbed into [[World of Warcraft API#TradeSkill Functions|Tradeskill API]].}}
{{wowapi}}
This command retrieves displayable information for the current craft.
This command retrieves displayable information for the current craft.


Line 21: Line 23:
----
----
__NOTOC__
__NOTOC__
{{WoW API}}

Latest revision as of 04:45, 15 August 2023

WoW API < GetCraftDisplaySkillLine

This command retrieves displayable information for the current craft.

name, rank, maxRank = GetCraftDisplaySkillLine()

Parameters[edit]

Returns[edit]

name
String - The name of the active craft, or nil if the current craft has no displayable name. Also nil if there are no active crafting windows.
rank
Numeric - The player's current rank for the named craft, if applicable.
maxRank
Numeric - The maximum rank for the named craft, if applicable.

Details[edit]

The two crafts, Beast Training and Enchanting, have a slightly different UI: the latter has a blue progress bar at the top of the window indicating the player's rank while the former does not. Accordingly, this function returns nil when the Beast Training window is open, while all return values should be valid when the Enchanting window is open.

See Also[edit]

GetCraftSkillLine() returns the name of the currently active crafting window regardless of whether the name should be displayed.