mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: add CHANNEL option to chat type dropdown with channel picker
Adds an 11th chat type "CHANNEL" to the dropdown, displaying a secondary combo box populated from the player's joined channels. Typing /1, /2 etc. in the input now also auto-switches the dropdown to CHANNEL mode and selects the corresponding channel. Input text is colored cyan for channel messages to visually distinguish them from other chat types.
This commit is contained in:
parent
20fef40b7b
commit
afcd6f2db3
2 changed files with 53 additions and 5 deletions
|
|
@ -46,8 +46,9 @@ private:
|
|||
char chatInputBuffer[512] = "";
|
||||
char whisperTargetBuffer[256] = "";
|
||||
bool chatInputActive = false;
|
||||
int selectedChatType = 0; // 0=SAY, 1=YELL, 2=PARTY, 3=GUILD, 4=WHISPER
|
||||
int selectedChatType = 0; // 0=SAY, 1=YELL, 2=PARTY, 3=GUILD, 4=WHISPER, ..., 10=CHANNEL
|
||||
int lastChatType = 0; // Track chat type changes
|
||||
int selectedChannelIdx = 0; // Index into joinedChannels_ when selectedChatType==10
|
||||
bool chatInputMoveCursorToEnd = false;
|
||||
|
||||
// Chat sent-message history (Up/Down arrow recall)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue