From 22646d963e2b0c9b5ef629aa7704158026cfa6d1 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sun, 1 May 2022 15:07:11 -0700 Subject: 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. --- web/web_ui.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 web/web_ui.h (limited to 'web/web_ui.h') 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 + +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 -- cgit v1.2.3-70-g09d2