2005-03-09 01:31:56 +00:00
|
|
|
#ifndef CHAT_PANEL_H
|
|
|
|
#define CHAT_PANEL_H
|
|
|
|
|
|
|
|
#include <VGUI_Panel.h>
|
2005-04-01 03:04:57 +00:00
|
|
|
#include "game_shared/VGUI_DefaultInputSignal.h"
|
2005-03-09 01:31:56 +00:00
|
|
|
|
|
|
|
#include "mod/AvHFont.h"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class ChatPanel : public vgui::Panel, public vgui::CDefaultInputSignal
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ChatPanel(int x, int y, int wide, int tall);
|
|
|
|
|
|
|
|
void CancelChat();
|
|
|
|
void SetChatMode(std::string sChatMode);
|
|
|
|
|
|
|
|
void KeyDown(int virtualKey, int scanCode);
|
|
|
|
|
|
|
|
// Checks if a key was pushed since the chat window was opened.
|
|
|
|
bool WasKeyPushed(int virtualKey) const;
|
|
|
|
|
|
|
|
virtual void paint();
|
|
|
|
virtual void paintBackground();
|
|
|
|
|
2005-04-01 03:04:57 +00:00
|
|
|
const static char* chatModeAll;
|
|
|
|
const static char* chatModeTeam;
|
|
|
|
|
2005-03-09 01:31:56 +00:00
|
|
|
private:
|
|
|
|
std::string mText;
|
|
|
|
std::string mChatMode;
|
|
|
|
|
|
|
|
bool mKeyPushed[256];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|