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

29 lines
591 B
C++
Raw Normal View History

#include <base/vmath.hpp>
#include <game/client/component.hpp>
class EMOTICON : public COMPONENT
{
void draw_circle(float x, float y, float r, int segments);
2008-08-30 08:20:06 +00:00
bool was_active;
bool active;
vec2 selector_mouse;
int selected_emote;
2008-08-30 08:20:06 +00:00
static void con_key_emoticon(void *result, void *user_data);
2008-08-31 13:14:28 +00:00
static void con_emote(void *result, void *user_data);
public:
EMOTICON();
virtual void on_reset();
2008-08-30 08:20:06 +00:00
virtual void on_init();
virtual void on_render();
virtual void on_message(int msgtype, void *rawmsg);
2008-08-30 08:20:06 +00:00
virtual bool on_mousemove(float x, float y);
void emote(int emoticon);
};