World of Warcraft Forever API · C_BarberShop.md, for your AI
C_BarberShop
29 functions, 7 events, 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_BarberShop.ApplyCustomizationChoices
success = C_BarberShop.ApplyCustomizationChoices()
Returns
success | bool |
|---|
C_BarberShop.Cancel
C_BarberShop.Cancel()
C_BarberShop.ClearPreviewChoices
C_BarberShop.ClearPreviewChoices([clearSavedChoices])
Arguments
clearSavedChoices | bool default false |
|---|
C_BarberShop.GetAvailableCustomizations
categories = C_BarberShop.GetAvailableCustomizations()
May return nothing.
Returns
categories | CharCustomizationCategory[] |
|---|
C_BarberShop.GetCurrentCameraZoom
zoomLevel = C_BarberShop.GetCurrentCameraZoom()
Returns
zoomLevel | number |
|---|
C_BarberShop.GetCurrentCharacterData
characterData = C_BarberShop.GetCurrentCharacterData()
May return nothing.
Returns
characterData | PlayerInfoCharacterData |
|---|
C_BarberShop.GetCurrentCost
cost = C_BarberShop.GetCurrentCost()
Returns
cost | number |
|---|
C_BarberShop.GetViewingChrModel
chrModelID = C_BarberShop.GetViewingChrModel()
Returns
chrModelID | number may be nil |
|---|
C_BarberShop.HasAlteredForm
hasAlteredForm = C_BarberShop.HasAlteredForm()
Returns
hasAlteredForm | bool |
|---|
C_BarberShop.HasAnyChanges
hasChanges = C_BarberShop.HasAnyChanges()
Returns
hasChanges | bool |
|---|
C_BarberShop.HasCustomizationFeature
hasCustomizationFeature = C_BarberShop.HasCustomizationFeature(featureMask)
Arguments
featureMask | ChrModelFeatureFlags |
|---|
Returns
hasCustomizationFeature | bool |
|---|
C_BarberShop.IsViewingAlteredForm
isViewingAlteredForm = C_BarberShop.IsViewingAlteredForm()
Returns
isViewingAlteredForm | bool |
|---|
C_BarberShop.MarkCustomizationChoiceAsSeen
C_BarberShop.MarkCustomizationChoiceAsSeen(choiceID)
Arguments
choiceID | number |
|---|
C_BarberShop.MarkCustomizationOptionAsSeen
C_BarberShop.MarkCustomizationOptionAsSeen(optionID)
Arguments
optionID | number |
|---|
C_BarberShop.PreviewCustomizationChoice
C_BarberShop.PreviewCustomizationChoice(optionID, choiceID)
Arguments
optionID | number | |
|---|---|---|
choiceID | number |
C_BarberShop.RandomizeCustomizationChoices
C_BarberShop.RandomizeCustomizationChoices()
C_BarberShop.ResetCameraRotation
C_BarberShop.ResetCameraRotation()
C_BarberShop.ResetCustomizationChoices
C_BarberShop.ResetCustomizationChoices()
C_BarberShop.RotateCamera
C_BarberShop.RotateCamera(diffDegrees)
Arguments
diffDegrees | number |
|---|
C_BarberShop.SaveSeenChoices
C_BarberShop.SaveSeenChoices()
C_BarberShop.SetCameraDistanceOffset
C_BarberShop.SetCameraDistanceOffset(offset)
Arguments
offset | number |
|---|
C_BarberShop.SetCameraZoomLevel
C_BarberShop.SetCameraZoomLevel(zoomLevel, [keepCustomZoom])
Arguments
zoomLevel | number | |
|---|---|---|
keepCustomZoom | bool may be nil |
C_BarberShop.SetCustomizationChoice
C_BarberShop.SetCustomizationChoice(optionID, choiceID)
Arguments
optionID | number | |
|---|---|---|
choiceID | number |
C_BarberShop.SetModelDressState
C_BarberShop.SetModelDressState(dressedState)
Arguments
dressedState | bool |
|---|
C_BarberShop.SetSelectedSex
C_BarberShop.SetSelectedSex(sex)
Arguments
sex | UnitSex |
|---|
C_BarberShop.SetViewingAlteredForm
C_BarberShop.SetViewingAlteredForm(isViewingAlteredForm)
Arguments
isViewingAlteredForm | bool |
|---|
C_BarberShop.SetViewingChrModel
C_BarberShop.SetViewingChrModel([chrModelID], [spellShapeshiftFormID])
Arguments
chrModelID | number may be nil | |
|---|---|---|
spellShapeshiftFormID | number may be nil |
C_BarberShop.SetViewingShapeshiftForm
C_BarberShop.SetViewingShapeshiftForm([shapeshiftFormID])
Arguments
shapeshiftFormID | number may be nil |
|---|
C_BarberShop.ZoomCamera
C_BarberShop.ZoomCamera(zoomAmount)
Arguments
zoomAmount | number |
|---|
Events
BARBER_SHOP_APPEARANCE_APPLIED
No payload.
BARBER_SHOP_CAMERA_VALUES_UPDATED
No payload.
BARBER_SHOP_CLOSE
No payload.
BARBER_SHOP_COST_UPDATE
No payload.
BARBER_SHOP_FORCE_CUSTOMIZATIONS_UPDATE
No payload.
BARBER_SHOP_OPEN
No payload.
BARBER_SHOP_RESULT
success | bool |
|---|