v0.13.8

C_ActionBar

namespaceavailable in: camelot

Status in wowlua

72 functions: 22 implemented, 11 recorded, 39 guessed. 15 events, 13 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
EnableActionRangeCheckUsed in conjunction with ACTION_RANGE_CHECK_UPDATE to inform the UI when an action goes in or out of range with its current target.
(actionID: number, enable: boolean)
guessed
FindAssistedCombatActionButtonsReturns the list of action bar slots that contain the Assisted Combat action spell.
(setToSearch: ActionBarSet): number[]?
guessed
FindFlyoutActionButtonsReturns the action slots that hold the flyout. · by wowlua
(flyoutID: number, setToSearch: ActionBarSet): number[]?
guessed
FindPetActionButtonsReturns the action slots that hold the pet action. · by wowlua
(petActionID: number, setToSearch: ActionBarSet): number[]?
guessed
FindSpellActionButtonsReturns the list of action bar slots that contain a specified spell.
(spellID: SpellIdentifier, setToSearch: ActionBarSet): number[]?
implemented
ForceUpdateActionForce updates some internals for an action button slot.
(slotID: number, suppressEvents: boolean)
guessed
GetActionAutocastReturns whether the action slot's pet action can autocast, and whether its autocast is on. · by wowlua
(actionID: number): (boolean, boolean)
guessed
GetActionBarPageReturns the action bar page the main bar shows. · by wowlua
(): number
implemented
GetActionChargeDurationReturns a duration object describing the active recharge time for an action.
(actionID: number): LuaDurationObject
guessed
GetActionChargesReturns the charges of the action in the slot. · by wowlua
(actionID: number): SpellChargeInfo
implemented
GetActionCooldownReturns the cooldown of the action in the slot. · by wowlua
(actionID: number): SpellCooldownInfo
implemented
GetActionCooldownDurationReturns a duration object describing the active cooldown duration for an action.
(actionID: number, ignoreGCD: boolean): LuaDurationObject
guessed
GetActionDisplayCountDepending on the action type, return a string that is either the use count or number of charges. If value is beyond the display count parameter, returns the replacementString (defaults to '*').
(actionID: number, maxDisplayCount: number, replacementString: string): string
implemented
GetActionLossOfControlCooldownDurationReturns a duration object describing the active loss of control cooldown duration for an action.
(actionID: number): LuaDurationObject
guessed
GetActionLossOfControlCooldownInfoReturns the loss-of-control lockout on the action in the slot. · by wowlua
(actionID: number): SpellLossOfControlInfo
implemented
GetActionTextReturns the text the action slot shows, such as a macro's name, or nil when it has none. · by wowlua
(actionID: number): string?
implemented
GetActionTextureReturns the icon of the action in the slot. · by wowlua
(actionID: number): number
implemented
GetActionUseCountReturns how many times the action in the slot can be used, such as an item's count. · by wowlua
(actionID: number): number
guessed
GetBonusBarIndexReturns the action bar page of the bonus bar the player is on, such as a druid's form bar, or 0 without one. · by wowlua
(): number
guessed
GetBonusBarIndexForSlotReturns the bonus bar page the action slot belongs to, or nil when it belongs to none. · by wowlua
(slotID: number): number?
guessed
GetBonusBarOffsetReturns the offset of the bonus bar the player is on, such as for a stance or form, or 0 without one. · by wowlua
(): number
recorded
GetExtraBarIndexReturns the action bar page of the extra action bar. · by wowlua
(): number
recorded
GetItemActionOnEquipSpellIDReturns the spell the item in the action slot gives while equipped. · by wowlua
(actionID: number): number?
guessed
GetMultiCastBarIndexReturns the action bar page of the multi-cast (totem) bar. · by wowlua
(): number
recorded
GetOverrideBarIndexReturns the action bar page of the override bar. · by wowlua
(): number
guessed
GetOverrideBarSkinReturns the skin of the override bar, or nil without one. · by wowlua
(): number?
guessed
GetPetActionPetBarIndicesReturns the pet bar slots that hold the pet action. · by wowlua
(petActionID: number, setToSearch: ActionBarSet): number[]?
guessed
GetProfessionQualityReturns the crafting quality of the item in the action slot. · by wowlua
(actionID: number): number?
guessed
GetProfessionQualityInfoReturns information about the crafting quality of the item in the action slot. · by wowlua
(actionID: number): CraftingQualityInfo?
guessed
GetSpellReturns the ID of the spell in the action slot, or 0 when it holds none. · by wowlua
(actionID: number): number
implemented
GetTempShapeshiftBarIndexReturns the action bar page of the temporary shapeshift bar. · by wowlua
(): number
guessed
GetVehicleBarIndexReturns the action bar page of the vehicle bar. · by wowlua
(): number
guessed
HasActionReturns true if an actionbar slot is populated with an action.
(actionID: number): boolean
implemented
HasAssistedCombatActionButtonsWhether an action slot holds the assisted combat action. · by wowlua
(setToSearch: ActionBarSet): boolean
recorded
HasBonusActionBarWhether the player has a bonus action bar, such as for a stance or form. · by wowlua
(): boolean
recorded
HasExtraActionBarWhether the extra action bar is shown. · by wowlua
(): boolean
recorded
HasFlyoutActionButtonsWhether an action slot holds the flyout. · by wowlua
(flyoutID: number, setToSearch: ActionBarSet): boolean
guessed
HasOverrideActionBarWhether the player has an override action bar. · by wowlua
(): boolean
recorded
HasPetActionButtonsTrue if the pet action is currently on your action bars.
(petActionID: number, setToSearch: ActionBarSet): boolean
guessed
HasPetActionPetBarIndicesWhether a pet bar slot holds the pet action. · by wowlua
(petActionID: number, setToSearch: ActionBarSet): boolean
guessed
HasRangeRequirementsWhether the action in the slot has a range, such as a spell with one. · by wowlua
(actionID: number): boolean
guessed
HasSpellActionButtonsWhether an action slot holds the spell. · by wowlua
(spellID: SpellIdentifier, setToSearch: ActionBarSet): boolean
guessed
HasTempShapeshiftActionBarWhether the player has a temporary shapeshift action bar. · by wowlua
(): boolean
recorded
HasVehicleActionBarWhether the player has a vehicle action bar. · by wowlua
(): boolean
recorded
IsActionInRangeWhether the unit is in range of the action in the slot, or nil when the action has no range. · by wowlua
(actionID: number, target: string?): boolean?
guessed
IsAssistedCombatActionReturns whether the given action button contains the Assisted Combat action spell.
(slotID: number): boolean
implemented
IsAttackActionWhether the action slot holds Auto Attack. · by wowlua
(actionID: number): boolean
implemented
IsAutoCastPetActionWhether the pet action in the slot can autocast. · by wowlua
(slotID: number): boolean
implemented
IsAutoRepeatActionWhether the action in the slot is repeating, such as Auto Shot. · by wowlua
(actionID: number): boolean
implemented
IsConsumableActionWhether the action slot holds a consumable item. · by wowlua
(actionID: number): boolean
guessed
IsCurrentActionWhether the action in the slot is in use, such as a spell being cast or awaiting a target. · by wowlua
(actionID: number): boolean
implemented
IsEnabledAutoCastPetActionWhether autocast is on for the pet action in the slot. · by wowlua
(slotID: number): boolean
implemented
IsEquippedActionWhether the action slot holds an item the player has equipped. · by wowlua
(actionID: number): boolean
implemented
IsEquippedGearOutfitActionWhether the action slot holds the equipment set the player has equipped. · by wowlua
(slotID: number): boolean
implemented
IsHarmfulActionReturns true if the specified action is a harmful one.
(actionID: number, useNeutral: boolean): boolean
guessed
IsHelpfulActionReturns true if the specified action is a helpful one.
(actionID: number, useNeutral: boolean): boolean
guessed
IsInterruptActionReturns whether the given action button contains a spell that can interrupt spellcasting.
(slotID: number): boolean
guessed
IsItemActionWhether the action slot holds an item. · by wowlua
(actionID: number): boolean
implemented
IsMacroActionWithShowTooltipReturns whether the given action button contains a macro with an explicit #showtooltip directive.
(actionID: number): boolean
guessed
IsOnBarOrSpecialBarWhether an action slot, the special bars included, holds the spell. · by wowlua
(spellID: SpellIdentifier, setToSearch: ActionBarSet): boolean
guessed
IsPossessBarVisibleWhether the possess bar is shown. · by wowlua
(): boolean
recorded
IsStackableActionWhether the action slot holds an item that stacks. · by wowlua
(actionID: number): boolean
guessed
IsUsableActionReturns whether the action in the slot is usable, and whether it lacks only power (such as mana) to be. · by wowlua
(actionID: number): (boolean, boolean)
implemented
PutActionInSlotPlaces what the cursor holds in the action slot. · by wowlua
(slotID: number)
guessed
RegisterActionUIButtonRegisters the button as showing the action slot, so the game updates it and its cooldown. · by wowlua
(checkboxFrame: Checkbox, actionID: number, cooldownFrame: CooldownFrame)
guessed
SetActionBarPageSwitches the main action bar to the page. · by wowlua
(pageIndex: number)
implemented
ShouldOverrideBarShowHealthBarWhether the override bar shows a health bar. · by wowlua
(): boolean
guessed
ShouldOverrideBarShowManaBarWhether the override bar shows a power bar. · by wowlua
(): boolean
guessed
ShouldShowKeyringWhether the keyring button is shown. · by wowlua
(): boolean
recorded
ToggleAutoCastPetActionTurns autocast on or off for the pet action in the slot. · by wowlua
(slotID: number)
guessed
UnregisterActionUIButtonStops the game updating the button registered with RegisterActionUIButton. · by wowlua
(checkboxFrame: Checkbox)
guessed
UsesActionTextWhether the action slot shows text, such as a macro's name. · by wowlua
(actionID: number): boolean
implemented

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
ACTIONBAR_HIDEGRIDno payloadimplemented
ACTIONBAR_PAGE_CHANGEDno payloadimplemented
ACTIONBAR_SHOWGRIDno payloadimplemented
ACTIONBAR_SHOW_BOTTOMLEFTno payloadnot implemented
ACTIONBAR_SLOT_CHANGEDslot: numberimplemented
ACTIONBAR_UPDATE_COOLDOWNno payloadimplemented
ACTIONBAR_UPDATE_STATEno payloadimplemented
ACTIONBAR_UPDATE_USABLEno payloadimplemented
ACTION_RANGE_CHECK_UPDATEslot: number, isInRange: boolean, checksRange: booleanimplemented
ACTION_USABLE_CHANGEDchanges: ActionUsableState[]implemented
PET_BAR_UPDATEno payloadimplemented
UPDATE_BONUS_ACTIONBARno payloadimplemented
UPDATE_EXTRA_ACTIONBARno payloadimplemented
UPDATE_MULTI_CAST_ACTIONBARno payloadnot implemented
UPDATE_OVERRIDE_ACTIONBARno payloadimplemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("ACTIONBAR_SHOW_BOTTOMLEFT").

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (ActionBar system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.