From 6063b4c14dd26b84c91a8e8d62f3921b4789a80a Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 16 Dec 2010 02:31:12 +0100 Subject: added auto completion of nicknames and highlighted nicknames in chat. Closes #218 --- src/game/client/components/chat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/client/components/chat.h') diff --git a/src/game/client/components/chat.h b/src/game/client/components/chat.h index 8289bb9e..da6a3b16 100644 --- a/src/game/client/components/chat.h +++ b/src/game/client/components/chat.h @@ -23,6 +23,7 @@ class CChat : public CComponent int m_NameColor; char m_aName[64]; char m_aText[512]; + bool m_Highlighted; }; CLine m_aLines[MAX_LINES]; @@ -41,6 +42,10 @@ class CChat : public CComponent bool m_InputUpdate; int m_ChatStringOffset; int m_OldChatStringLength; + int m_CompletionChosen; + char m_aCompletionBuffer[256]; + int m_PlaceholderOffset; + int m_PlaceholderLength; static void ConSay(IConsole::IResult *pResult, void *pUserData); static void ConSayTeam(IConsole::IResult *pResult, void *pUserData); -- cgit 1.4.1