normal mode, command mode

This commit is contained in:
Luka Jankovic 2025-07-02 01:16:19 +02:00
parent d41e801aeb
commit ecc8a1df95
10 changed files with 133 additions and 14 deletions

View file

@ -27,21 +27,27 @@
#include "kubo_wall.h"
KUBO_DYNARRAY_REGISTER(kubo_wall_arr, struct kubo_wall *);
KUBO_DYNARRAY_REGISTER(kubo_char_arr, char);
enum kubo_context_state {
KUBO_CONTEXT_NORMAL,
KUBO_CONTEXT_COMMAND,
KUBO_CONTEXT_WALL_NEW,
KUBO_CONTEXT_WALL_SELECT,
};
static const char *kubo_context_labels[] = {"Wall New", "Wall Select"};
static const char *kubo_context_labels[] = {"Normal", "Command", "Wall New", "Wall Select"};
static const Color kubo_context_colors[] = {BLACK, BLUE};
static const Color kubo_context_colors[] = {BLACK, RED, GREEN, BLUE};
struct kubo_context {
bool exit_pending;
struct kubo_wall_arr walls;
enum kubo_context_state state;
// KUBO_CONTEXT_COMMAND
struct kubo_char_arr command;
// KUBO_CONTEXT_WALL_SELECT
size_t wall_select_index;
};