mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 10:38:20 +00:00
1820a0e168
Let's see if it works out, if not, we can revert it.
37 lines
1 KiB
C++
37 lines
1 KiB
C++
/* (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. */
|
|
#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);
|
|
|
|
bool m_WasActive;
|
|
bool m_Active;
|
|
|
|
vec2 m_SelectorMouse;
|
|
int m_SelectedEmote;
|
|
int m_SelectedEyeEmote;
|
|
|
|
static void ConKeyEmoticon(IConsole::IResult *pResult, void *pUserData);
|
|
static void ConEmote(IConsole::IResult *pResult, void *pUserData);
|
|
|
|
public:
|
|
CEmoticon();
|
|
virtual int Sizeof() const override { return sizeof(*this); }
|
|
|
|
virtual void OnReset() override;
|
|
virtual void OnConsoleInit() override;
|
|
virtual void OnRender() override;
|
|
virtual void OnRelease() override;
|
|
virtual bool OnMouseMove(float x, float y) override;
|
|
|
|
void Emote(int Emoticon);
|
|
void EyeEmote(int EyeEmote);
|
|
};
|
|
|
|
#endif
|