mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-30 08:20:58 +00:00
1d385ec5bf
- added +attack2 - fade blink reworked - onos charge reworked git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@348 67975925-1194-0748-b3d5-c16f83f1a3a1
38 lines
No EOL
798 B
C++
38 lines
No EOL
798 B
C++
#ifndef CHAT_PANEL_H
|
|
#define CHAT_PANEL_H
|
|
|
|
#include <VGUI_Panel.h>
|
|
#include "game_shared/VGUI_DefaultInputSignal.h"
|
|
|
|
#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();
|
|
|
|
const static char* chatModeAll;
|
|
const static char* chatModeTeam;
|
|
|
|
private:
|
|
std::string mText;
|
|
std::string mChatMode;
|
|
|
|
bool mKeyPushed[256];
|
|
|
|
};
|
|
|
|
#endif |