about summary refs log tree commit diff
path: root/src/game/client/components/emoticon.hpp
blob: 1acb741de1b4b467fa0f6113a010c36ea09bf60a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <base/vmath.hpp>
#include <game/client/component.hpp>

class EMOTICON : public COMPONENT
{
	void draw_circle(float x, float y, float r, int segments);
	
	bool was_active;
	bool active;
	
	vec2 selector_mouse;
	int selected_emote;

	static void con_key_emoticon(void *result, void *user_data);
	
public:
	EMOTICON();
	
	virtual void on_reset();
	virtual void on_init();
	virtual void on_render();
	virtual void on_message(int msgtype, void *rawmsg);
	virtual bool on_mousemove(float x, float y);

	void emote(int emoticon);
};