mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
Add chat channels, chat settings, and fix missing chat text
Fix WotLK chat parser not stripping null terminators from messages, fix channel message local echo missing channelName, expand default channels to General/Trade/LocalDefense/LookingForGroup with configurable auto-join, add Classic packet format for join/leave channel, display channel index prefix in chat, and add Chat settings tab with timestamps, font size, and auto-join toggles.
This commit is contained in:
parent
54ad8f38b2
commit
6b392a5dd8
8 changed files with 197 additions and 7 deletions
|
|
@ -234,6 +234,16 @@ public:
|
|||
void leaveChannel(const std::string& channelName);
|
||||
const std::vector<std::string>& getJoinedChannels() const { return joinedChannels_; }
|
||||
std::string getChannelByIndex(int index) const;
|
||||
int getChannelIndex(const std::string& channelName) const;
|
||||
|
||||
// Chat auto-join settings (set by UI before autoJoinDefaultChannels)
|
||||
struct ChatAutoJoin {
|
||||
bool general = true;
|
||||
bool trade = true;
|
||||
bool localDefense = true;
|
||||
bool lfg = true;
|
||||
};
|
||||
ChatAutoJoin chatAutoJoin;
|
||||
|
||||
// Chat bubble callback: (senderGuid, message, isYell)
|
||||
using ChatBubbleCallback = std::function<void(uint64_t, const std::string&, bool)>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue