v0.13.8

C_BarberShop

namespaceavailable in: camelot

Status in wowlua

29 functions: 0 implemented, 0 recorded, 29 guessed. 7 events, 0 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
ApplyCustomizationChoicesSubmits chosen barber shop customizations to the server for application.
(): boolean
guessed
CancelDismisses the barber shop UI, cancelling all customizations.
()
guessed
ClearPreviewChoicesClears all actively previewed customization choices on the character.
(clearSavedChoices: boolean)
guessed
GetAvailableCustomizationsReturns the customization categories, with their options and choices, offered at the barber shop. · by wowlua
(): CharCustomizationCategory[]?
guessed
GetCurrentCameraZoomReturns the current camera zoom level.
(): number
guessed
GetCurrentCharacterDataReturns information about the character being customized at the barber shop. · by wowlua
(): PlayerInfoCharacterData?
guessed
GetCurrentCostReturns the cost of the currently selected customizations.
(): number
guessed
GetViewingChrModelReturns the ID of the character model shown at the barber shop, or nil. · by wowlua
(): number?
guessed
HasAlteredFormWhether the character has an alternate form (such as a worgen's human form) at the barber shop. · by wowlua
(): boolean
guessed
HasAnyChangesWhether any customization has been changed at the barber shop. · by wowlua
(): boolean
guessed
HasCustomizationFeatureWhether the character model has the given customization feature. · by wowlua
(featureMask: ChrModelFeatureFlags): boolean
guessed
IsViewingAlteredFormReturns true if the player is currently customizing an alternate form.
(): boolean
guessed
MarkCustomizationChoiceAsSeenMarks a new customization choice as seen, so it is no longer highlighted. · by wowlua
(choiceID: number)
guessed
MarkCustomizationOptionAsSeenMarks a new customization option as seen, so it is no longer highlighted. · by wowlua
(optionID: number)
guessed
PreviewCustomizationChoicePreviews a customization choice on the character without selecting it.
(optionID: number, choiceID: number)
guessed
RandomizeCustomizationChoicesPicks random choices for the character's customizations at the barber shop. · by wowlua
()
guessed
ResetCameraRotationResets the camera rotation.
()
guessed
ResetCustomizationChoicesResets all selected customization choices.
()
guessed
RotateCameraRotates the camera by the specified number of degrees.
(diffDegrees: number)
guessed
SaveSeenChoicesSaves which customization choices have been seen. · by wowlua
()
guessed
SetCameraDistanceOffsetSets the distance offset of the camera.
(offset: number)
guessed
SetCameraZoomLevelSets the zoom level of the camera.
(zoomLevel: number, keepCustomZoom: boolean?)
guessed
SetCustomizationChoiceSelects a customization choice.
(optionID: number, choiceID: number)
guessed
SetModelDressStateControls whether or not the character should be dressed.
(dressedState: boolean)
guessed
SetSelectedSexChanges the selected gender of the character.
(sex: UnitSex)
guessed
SetViewingAlteredFormControls whether the alternate form for a character is being customized.
(isViewingAlteredForm: boolean)
guessed
SetViewingChrModelSets the character model, or shapeshift form, shown at the barber shop. · by wowlua
(chrModelID: number?, spellShapeshiftFormID: number?)
guessed
SetViewingShapeshiftFormChanges the shapeshift form being customized. Set to nil to revert to customizing the characters' normal form.
(shapeshiftFormID: number?)
guessed
ZoomCameraZooms the camera by a specifed amount.
(zoomAmount: number)
guessed

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

Events

eventpayloadfired by the emulator
BARBER_SHOP_APPEARANCE_APPLIEDno payloadnot implemented
BARBER_SHOP_CAMERA_VALUES_UPDATEDno payloadnot implemented
BARBER_SHOP_CLOSEno payloadnot implemented
BARBER_SHOP_COST_UPDATEno payloadnot implemented
BARBER_SHOP_FORCE_CUSTOMIZATIONS_UPDATEno payloadnot implemented
BARBER_SHOP_OPENno payloadnot implemented
BARBER_SHOP_RESULTsuccess: booleannot implemented

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

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (BarberShop 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.