diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-25 14:04:02 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-25 14:04:02 +0000 |
| commit | 6d44adb7114a0be6ecb1b0fabc6fe69d308cad1c (patch) | |
| tree | cc8a72be53f461ca06dda2f15cc0b56679a9e417 /src/game/client/components/voting.hpp | |
| parent | f96be4eb0ed4430013c8ecfcb043c049d5103479 (diff) | |
| download | zcatch-6d44adb7114a0be6ecb1b0fabc6fe69d308cad1c.tar.gz zcatch-6d44adb7114a0be6ecb1b0fabc6fe69d308cad1c.zip | |
fixed keybindings. reworked the voting a bit. added vote spamming protection. added ingame voting hud.
Diffstat (limited to 'src/game/client/components/voting.hpp')
| -rw-r--r-- | src/game/client/components/voting.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/client/components/voting.hpp b/src/game/client/components/voting.hpp index e5338d10..03de629d 100644 --- a/src/game/client/components/voting.hpp +++ b/src/game/client/components/voting.hpp @@ -1,4 +1,5 @@ #include <game/client/component.hpp> +#include <game/client/ui.hpp> class VOTING : public COMPONENT { @@ -27,6 +28,8 @@ public: virtual void on_message(int msgtype, void *rawmsg); virtual void on_render(); + void render_bars(RECT bars, bool text); + void vote(int v); // -1 = no, 1 = yes int seconds_left() { return (closetime - time_get())/time_freq(); } |