aboutsummaryrefslogtreecommitdiff
path: root/client/ui.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-07 21:27:16 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-07 21:27:16 +0200
commit3e65c70da770fa31fc8acc6ab9374d908cf1ed17 (patch)
tree14f8d4c708faccc8b3f992a022f940c00ed694f9 /client/ui.h
parent8c8322a7a0c251d595a0df054324f82d41966e0a (diff)
implement orders
Diffstat (limited to 'client/ui.h')
-rw-r--r--client/ui.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/client/ui.h b/client/ui.h
index a003cfc..c169401 100644
--- a/client/ui.h
+++ b/client/ui.h
@@ -3,13 +3,19 @@
#include <ncurses.h>
#include <stdint.h>
-#define W2_UI_UPDATE_FPS (60)
+#define W2_UI_UPDATE_FPS 60
+/** order tab current command buffer (char[]) */
+#define W2_UI_ORDER_CMD_BUFFER_SIZE 80
+/** order tab current command buffer (uint16_t[]) */
+#define W2_UI_ORDER_BUFFER_SIZE 16
-#define W2_UI_TAB_COUNT 3
+#define W2_UI_TAB_COUNT 5
typedef enum {
W2_UI_TAB_START = 0,
W2_UI_TAB_ERRCATCH = 1,
W2_UI_TAB_DIRC = 2,
+ W2_UI_TAB_ORDERS = 3,
+ W2_UI_TAB_MODES = 4,
} w2_e_ui_tabs;
extern WINDOW *g_w2_ui_win;
@@ -47,8 +53,12 @@ void w2_ui_tabbar_init();
void w2_ui_tab_dirc(bool first);
void w2_ui_tab_start(bool first);
void w2_ui_tab_errcatch(bool first);
+void w2_ui_tab_modes(bool first);
+void w2_ui_tab_orders(bool first);
void w2_ui_onkey_dirc(int ch);
void w2_ui_onkey_errcatch(int ch);
+void w2_ui_onkey_modes(int ch);
+void w2_ui_onkey_orders(int ch);
void w2_wmvaddstr(WINDOW *win, unsigned int y, unsigned int x, char *str);
void w2_wmvaddnstr(WINDOW *win, unsigned int y, unsigned int x, char *str, unsigned int len);