mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 08:30:13 +00:00
Add movement packed GUID, inventory money display, and character screen buttons
Fix movement packets to include packed player GUID prefix so the server tracks position. Fix inventory money display being clipped by child panels. Add Back and Delete Character buttons to character selection screen with two-step delete confirmation.
This commit is contained in:
parent
e327344a9b
commit
20f89b2d4a
9 changed files with 156 additions and 15 deletions
|
|
@ -31,6 +31,8 @@ public:
|
|||
}
|
||||
|
||||
void setOnCreateCharacter(std::function<void()> cb) { onCreateCharacter = std::move(cb); }
|
||||
void setOnBack(std::function<void()> cb) { onBack = std::move(cb); }
|
||||
void setOnDeleteCharacter(std::function<void(uint64_t)> cb) { onDeleteCharacter = std::move(cb); }
|
||||
|
||||
/**
|
||||
* Check if a character has been selected
|
||||
|
|
@ -42,6 +44,11 @@ public:
|
|||
*/
|
||||
uint64_t getSelectedGuid() const { return selectedCharacterGuid; }
|
||||
|
||||
/**
|
||||
* Update status message
|
||||
*/
|
||||
void setStatus(const std::string& message);
|
||||
|
||||
private:
|
||||
// UI state
|
||||
int selectedCharacterIndex = -1;
|
||||
|
|
@ -54,11 +61,9 @@ private:
|
|||
// Callbacks
|
||||
std::function<void(uint64_t)> onCharacterSelected;
|
||||
std::function<void()> onCreateCharacter;
|
||||
|
||||
/**
|
||||
* Update status message
|
||||
*/
|
||||
void setStatus(const std::string& message);
|
||||
std::function<void()> onBack;
|
||||
std::function<void(uint64_t)> onDeleteCharacter;
|
||||
bool confirmDelete = false;
|
||||
|
||||
/**
|
||||
* Get faction color based on race
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue