mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
feat: handle SMSG_PET_RENAMEABLE to auto-open pet rename dialog on first tame
When the server sends SMSG_PET_RENAMEABLE (after taming a pet for the first time), the pet rename modal now automatically opens so the player can name their new pet without needing to right-click the pet frame.
This commit is contained in:
parent
113be66314
commit
5df5f4d423
3 changed files with 14 additions and 1 deletions
|
|
@ -629,6 +629,12 @@ void GameScreen::render(game::GameHandler& gameHandler) {
|
|||
renderPetFrame(gameHandler);
|
||||
}
|
||||
|
||||
// Auto-open pet rename modal when server signals the pet is renameable (first tame)
|
||||
if (gameHandler.consumePetRenameablePending()) {
|
||||
petRenameOpen_ = true;
|
||||
petRenameBuf_[0] = '\0';
|
||||
}
|
||||
|
||||
// Totem frame (Shaman only, when any totem is active)
|
||||
if (gameHandler.getPlayerClass() == 7) {
|
||||
renderTotemFrame(gameHandler);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue