feat: fire BARBER_SHOP_OPEN and BARBER_SHOP_CLOSE events

Fire BARBER_SHOP_OPEN when the barber shop UI is enabled
(SMSG_ENABLE_BARBER_SHOP). Fire BARBER_SHOP_CLOSE when the barber
shop completes or is dismissed. Used by UI customization addons.
This commit is contained in:
Kelsi 2026-03-21 07:54:30 -07:00
parent 5ee2b55f4b
commit 2da0883544
2 changed files with 3 additions and 1 deletions

View file

@ -1300,7 +1300,7 @@ public:
// Barber shop
bool isBarberShopOpen() const { return barberShopOpen_; }
void closeBarberShop() { barberShopOpen_ = false; }
void closeBarberShop() { barberShopOpen_ = false; if (addonEventCallback_) addonEventCallback_("BARBER_SHOP_CLOSE", {}); }
void sendAlterAppearance(uint32_t hairStyle, uint32_t hairColor, uint32_t facialHair);
// Instance difficulty (0=5N, 1=5H, 2=25N, 3=25H for WotLK)