ddnet/src/game/client/components/emoticon.h

35 lines
956 B
C
Raw Normal View History

2010-11-20 10:37:14 +00:00
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
2010-05-29 07:25:38 +00:00
#ifndef GAME_CLIENT_COMPONENTS_EMOTICON_H
#define GAME_CLIENT_COMPONENTS_EMOTICON_H
#include <base/vmath.h>
#include <game/client/component.h>
class CEmoticon : public CComponent
{
void DrawCircle(float x, float y, float r, int Segments);
2010-05-29 07:25:38 +00:00
bool m_WasActive;
bool m_Active;
2010-05-29 07:25:38 +00:00
vec2 m_SelectorMouse;
int m_SelectedEmote;
2010-08-25 20:30:21 +00:00
static void ConKeyEmoticon(IConsole::IResult *pResult, void *pUserData, int ClientID);
static void ConEmote(IConsole::IResult *pResult, void *pUserData, int ClientID);
2010-05-29 07:25:38 +00:00
public:
CEmoticon();
2010-05-29 07:25:38 +00:00
virtual void OnReset();
virtual void OnConsoleInit();
virtual void OnRender();
virtual void OnRelease();
2010-05-29 07:25:38 +00:00
virtual void OnMessage(int MsgType, void *pRawMsg);
virtual bool OnMouseMove(float x, float y);
void Emote(int Emoticon);
};
#endif