diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-07 22:23:14 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-07 22:23:14 +0200 |
commit | 377a6b80fb766995566bd77047eef08e0a4b5aae (patch) | |
tree | ce70846c12d7426f9550f6dc2a88e49397f4bd52 /client/ui_modes.c | |
parent | 3e65c70da770fa31fc8acc6ab9374d908cf1ed17 (diff) |
implement mode switching tab
Diffstat (limited to 'client/ui_modes.c')
-rw-r--r-- | client/ui_modes.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/client/ui_modes.c b/client/ui_modes.c index 933f47b..829f807 100644 --- a/client/ui_modes.c +++ b/client/ui_modes.c @@ -1,10 +1,19 @@ +#include "commands.h" #include "ui.h" +#include "i18n.h" void w2_ui_onkey_modes(int ch) { + if (ch == '1') w2_send_mode(W2_M_MAZE); + if (ch == '2') w2_send_mode(W2_M_GRID); + if (ch == '3') w2_send_mode(W2_M_HALT); + if (ch == '4') w2_send_mode(W2_M_CHRG); + if (ch == '5') w2_send_mode(W2_M_SPIN); + if (ch == '6') w2_send_mode(W2_M_SCAL); + if (ch == '0') w2_send_mode(W2_M_PREV); } void w2_ui_tab_modes(bool first) { - + w2_wmvaddstr(g_w2_ui_pad_body, 0, 0, W2_UI_MODES_INFO); } |