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);
|
2011-04-13 18:37:12 +00:00
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
bool m_WasActive;
|
|
|
|
bool m_Active;
|
2011-04-13 18:37:12 +00:00
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
vec2 m_SelectorMouse;
|
|
|
|
int m_SelectedEmote;
|
2015-11-14 23:31:24 +00:00
|
|
|
int m_SelectedEyeEmote;
|
2010-05-29 07:25:38 +00:00
|
|
|
|
2011-08-13 00:11:06 +00:00
|
|
|
static void ConKeyEmoticon(IConsole::IResult *pResult, void *pUserData);
|
|
|
|
static void ConEmote(IConsole::IResult *pResult, void *pUserData);
|
2011-04-13 18:37:12 +00:00
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
public:
|
|
|
|
CEmoticon();
|
2022-01-31 02:11:47 +00:00
|
|
|
virtual int Sizeof() const override { return sizeof(*this); }
|
2011-04-13 18:37:12 +00:00
|
|
|
|
2022-01-30 23:43:56 +00:00
|
|
|
virtual void OnReset() override;
|
|
|
|
virtual void OnConsoleInit() override;
|
|
|
|
virtual void OnRender() override;
|
|
|
|
virtual void OnRelease() override;
|
2022-06-06 20:03:24 +00:00
|
|
|
virtual bool OnCursorMove(float x, float y, IInput::ECursorType CursorType) override;
|
2010-05-29 07:25:38 +00:00
|
|
|
|
2022-01-23 18:16:23 +00:00
|
|
|
void Emote(int Emoticon);
|
2015-11-14 23:31:24 +00:00
|
|
|
void EyeEmote(int EyeEmote);
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|