mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 00:20:16 +00:00
feat: implement barber shop UI with hair/facial customization
Adds a functional barber shop window triggered by SMSG_ENABLE_BARBER_SHOP. Players can adjust hair style, hair color, and facial features using sliders bounded by race/gender max values. Sends CMSG_ALTER_APPEARANCE on confirm; server result closes the window on success. Escape key also closes the barber shop.
This commit is contained in:
parent
8dfd916fe4
commit
64fd7eddf8
6 changed files with 160 additions and 1 deletions
|
|
@ -5878,5 +5878,14 @@ network::Packet SetTitlePacket::build(int32_t titleBit) {
|
|||
return p;
|
||||
}
|
||||
|
||||
network::Packet AlterAppearancePacket::build(uint32_t hairStyle, uint32_t hairColor, uint32_t facialHair) {
|
||||
// CMSG_ALTER_APPEARANCE: uint32 hairStyle + uint32 hairColor + uint32 facialHair
|
||||
network::Packet p(wireOpcode(Opcode::CMSG_ALTER_APPEARANCE));
|
||||
p.writeUInt32(hairStyle);
|
||||
p.writeUInt32(hairColor);
|
||||
p.writeUInt32(facialHair);
|
||||
return p;
|
||||
}
|
||||
|
||||
} // namespace game
|
||||
} // namespace wowee
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue