about summary refs log tree commit diff
path: root/src/game/client/components/emoticon.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/emoticon.hpp')
-rw-r--r--src/game/client/components/emoticon.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/game/client/components/emoticon.hpp b/src/game/client/components/emoticon.hpp
new file mode 100644
index 00000000..17e977ab
--- /dev/null
+++ b/src/game/client/components/emoticon.hpp
@@ -0,0 +1,22 @@
+#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);
+};
+