mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
remove unused chains
This commit is contained in:
parent
440337eb5c
commit
f21687a927
|
@ -151,13 +151,7 @@ void CChat::ConEcho(IConsole::IResult *pResult, void *pUserData)
|
||||||
((CChat *)pUserData)->Echo(pResult->GetString(0));
|
((CChat *)pUserData)->Echo(pResult->GetString(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CChat::ConchainChatTee(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
|
void CChat::ConchainChatOld(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
|
||||||
{
|
|
||||||
pfnCallback(pResult, pCallbackUserData);
|
|
||||||
((CChat *)pUserData)->RebuildChat();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CChat::ConchainChatBackground(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
|
|
||||||
{
|
{
|
||||||
pfnCallback(pResult, pCallbackUserData);
|
pfnCallback(pResult, pCallbackUserData);
|
||||||
((CChat *)pUserData)->RebuildChat();
|
((CChat *)pUserData)->RebuildChat();
|
||||||
|
@ -175,8 +169,7 @@ void CChat::OnConsoleInit()
|
||||||
Console()->Register("chat", "s['team'|'all'] ?r[message]", CFGFLAG_CLIENT, ConChat, this, "Enable chat with all/team mode");
|
Console()->Register("chat", "s['team'|'all'] ?r[message]", CFGFLAG_CLIENT, ConChat, this, "Enable chat with all/team mode");
|
||||||
Console()->Register("+show_chat", "", CFGFLAG_CLIENT, ConShowChat, this, "Show chat");
|
Console()->Register("+show_chat", "", CFGFLAG_CLIENT, ConShowChat, this, "Show chat");
|
||||||
Console()->Register("echo", "r[message]", CFGFLAG_CLIENT, ConEcho, this, "Echo the text in chat window");
|
Console()->Register("echo", "r[message]", CFGFLAG_CLIENT, ConEcho, this, "Echo the text in chat window");
|
||||||
Console()->Chain("cl_chat_tee", ConchainChatTee, this);
|
Console()->Chain("cl_chat_old", ConchainChatOld, this);
|
||||||
Console()->Chain("cl_chat_background", ConchainChatBackground, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CChat::OnInput(IInput::CEvent Event)
|
bool CChat::OnInput(IInput::CEvent Event)
|
||||||
|
|
|
@ -107,8 +107,7 @@ class CChat : public CComponent
|
||||||
static void ConShowChat(IConsole::IResult *pResult, void *pUserData);
|
static void ConShowChat(IConsole::IResult *pResult, void *pUserData);
|
||||||
static void ConEcho(IConsole::IResult *pResult, void *pUserData);
|
static void ConEcho(IConsole::IResult *pResult, void *pUserData);
|
||||||
|
|
||||||
static void ConchainChatTee(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData);
|
static void ConchainChatOld(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData);
|
||||||
static void ConchainChatBackground(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData);
|
|
||||||
|
|
||||||
bool LineShouldHighlight(const char *pLine, const char *pName);
|
bool LineShouldHighlight(const char *pLine, const char *pName);
|
||||||
void StoreSave(const char *pText);
|
void StoreSave(const char *pText);
|
||||||
|
|
Loading…
Reference in a new issue