improved formatting
This commit is contained in:
parent
737ba58860
commit
ccdd081d36
12 changed files with 46 additions and 37 deletions
|
|
@ -19,10 +19,11 @@
|
|||
#include "kubo_context.h"
|
||||
|
||||
static const struct kubo_context_state_data kubo_context_states[] = {
|
||||
{.id = KUBO_CONTEXT_NORMAL, .label = "Normal", .color = BLACK},
|
||||
{.id = KUBO_CONTEXT_COMMAND, .label = "Command", .color = RED},
|
||||
{.id = KUBO_CONTEXT_WALL_NEW, .label = "Wall New", .color = GREEN},
|
||||
{.id = KUBO_CONTEXT_WALL_SELECT, .label = "Wall Select", .color = BLUE}};
|
||||
{ .id = KUBO_CONTEXT_NORMAL, .label = "Normal", .color = BLACK },
|
||||
{ .id = KUBO_CONTEXT_COMMAND, .label = "Command", .color = RED },
|
||||
{ .id = KUBO_CONTEXT_WALL_NEW, .label = "Wall New", .color = GREEN },
|
||||
{ .id = KUBO_CONTEXT_WALL_SELECT, .label = "Wall Select", .color = BLUE }
|
||||
};
|
||||
|
||||
void kubo_context_init(struct kubo_context *context) {
|
||||
|
||||
|
|
@ -45,16 +46,16 @@ void kubo_context_set_state(struct kubo_context *context,
|
|||
enum kubo_context_state state) {
|
||||
context->state = kubo_context_states[state];
|
||||
|
||||
switch (context->state.id) {
|
||||
case KUBO_CONTEXT_COMMAND:
|
||||
break;
|
||||
|
||||
case KUBO_CONTEXT_WALL_NEW:
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
// switch (context->state.id) {
|
||||
// case KUBO_CONTEXT_COMMAND:
|
||||
// break;
|
||||
//
|
||||
// case KUBO_CONTEXT_WALL_NEW:
|
||||
// break;
|
||||
//
|
||||
// default:
|
||||
// break;
|
||||
// }
|
||||
|
||||
for (unsigned i = 0; i < kubo_state_data_length; i++) {
|
||||
if (context->state.id == kubo_state_data[i].id &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue