about summary refs log tree commit diff
path: root/src/game/client/components/chat.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-12-16 02:31:12 +0100
committeroy <Tom_Adams@web.de>2010-12-16 02:31:12 +0100
commit6063b4c14dd26b84c91a8e8d62f3921b4789a80a (patch)
tree2871f293948ee7b4f28745395290e874b8314c7f /src/game/client/components/chat.h
parent1d7df01e9a8e4e2bf77caf6e23f0d1eb24529073 (diff)
downloadzcatch-6063b4c14dd26b84c91a8e8d62f3921b4789a80a.tar.gz
zcatch-6063b4c14dd26b84c91a8e8d62f3921b4789a80a.zip
added auto completion of nicknames and highlighted nicknames in chat. Closes #218
Diffstat (limited to 'src/game/client/components/chat.h')
-rw-r--r--src/game/client/components/chat.h5
1 files changed, 5 insertions, 0 deletions
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);