2008-08-27 15:48:50 +00:00
|
|
|
#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;
|
|
|
|
|
2008-08-27 15:48:50 +00:00
|
|
|
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);
|
2008-08-27 15:48:50 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
EMOTICON();
|
|
|
|
|
|
|
|
virtual void on_reset();
|
2008-08-30 08:20:06 +00:00
|
|
|
virtual void on_init();
|
2008-08-27 15:48:50 +00:00
|
|
|
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);
|
2008-08-27 15:48:50 +00:00
|
|
|
|
|
|
|
void emote(int emoticon);
|
|
|
|
};
|
|
|
|
|