diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-01 15:07:11 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-01 15:07:11 -0700 |
commit | 22646d963e2b0c9b5ef629aa7704158026cfa6d1 (patch) | |
tree | 173473a78da784cf9a5e96770c5a87df5c575a8e /web/web_ui.h | |
parent | 9459b7fb563caae520bdf8d11da9b070ebff45e9 (diff) | |
download | dartboat-22646d963e2b0c9b5ef629aa7704158026cfa6d1.tar.gz dartboat-22646d963e2b0c9b5ef629aa7704158026cfa6d1.tar.xz |
web: split code into more files
This is currently very messy with all the files interdependent on one
another and a lot of the logic still in the main file. It will take some
time to refactor and clean up.
Diffstat (limited to 'web/web_ui.h')
-rw-r--r-- | web/web_ui.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/web/web_ui.h b/web/web_ui.h new file mode 100644 index 0000000..fa961fb --- /dev/null +++ b/web/web_ui.h @@ -0,0 +1,18 @@ +#ifndef WEB_UI_H +#define WEB_UI_H + +#include <stdbool.h> + +void update_player_sugg(int pn, int rem); +void update_player_avg(int pn, int n_darts); +void update_player_rem(int pn, int rem); +void clear_player_info(int pn); + +void draw_visits(); +void draw_boat_throwing(int pts, char *str, double x, double y); + +bool is_key_active(char *k); +void toggle_key(char *k); +void deactivate_key(char *k); + +#endif |