mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
23 lines
429 B
C++
23 lines
429 B
C++
|
#include <base/vmath.hpp>
|
||
|
#include <game/client/component.hpp>
|
||
|
|
||
|
class EMOTICON : public COMPONENT
|
||
|
{
|
||
|
void draw_circle(float x, float y, float r, int segments);
|
||
|
|
||
|
vec2 selector_mouse;
|
||
|
int selector_active;
|
||
|
int selected_emote;
|
||
|
|
||
|
public:
|
||
|
EMOTICON();
|
||
|
|
||
|
virtual void on_reset();
|
||
|
virtual void on_render();
|
||
|
virtual void on_message(int msgtype, void *rawmsg);
|
||
|
virtual bool on_input(INPUT_EVENT e);
|
||
|
|
||
|
void emote(int emoticon);
|
||
|
};
|
||
|
|