World of Warcraft Forever API · C_Flyout.md, for your AI
C_Flyout
6 functions, 2 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_Flyout.FlyoutHasSpell
hasSpell = C_Flyout.FlyoutHasSpell(flyoutID, spellID)
May return nothing.
Arguments
flyoutID | number | |
|---|---|---|
spellID | number |
Returns
hasSpell | bool |
|---|
C_Flyout.GetFlyoutID
flyoutID = C_Flyout.GetFlyoutID(index)
May return nothing.
Arguments
index | luaIndex |
|---|
Returns
flyoutID | number |
|---|
C_Flyout.GetFlyoutInfo
info = C_Flyout.GetFlyoutInfo(flyoutID)
May return nothing.
Arguments
flyoutID | number |
|---|
Returns
info | FlyoutInfo |
|---|
C_Flyout.GetFlyoutSlotInfo
slotInfo = C_Flyout.GetFlyoutSlotInfo(flyoutID, slotIndex)
May return nothing.
Arguments
flyoutID | number | |
|---|---|---|
slotIndex | luaIndex |
Returns
slotInfo | FlyoutSlotInfo |
|---|
C_Flyout.GetFlyoutTexture
textureID = C_Flyout.GetFlyoutTexture(flyoutID)
May return nothing.
Arguments
flyoutID | number |
|---|
Returns
textureID | fileID |
|---|
C_Flyout.GetNumFlyouts
numFlyouts = C_Flyout.GetNumFlyouts()
Returns
numFlyouts | number |
|---|
Tables
FlyoutInfo structure
name | string | |
|---|---|---|
description | string | |
numSlots | number | |
isKnown | bool |
FlyoutSlotInfo structure
spellID | number | |
|---|---|---|
overrideSpellID | number | |
isKnown | bool | |
name | string may be nil | |
specID | number may be nil |