added nomi spirel
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
#define EDITOR_H
|
||||
|
||||
#include <tart.h>
|
||||
#include "editor.h"
|
||||
|
||||
|
||||
|
||||
struct tart_window window;
|
||||
|
||||
@@ -15,6 +18,14 @@ struct commandMode {
|
||||
char* input;
|
||||
};
|
||||
|
||||
struct bottomBar {
|
||||
struct tart_cstring mode_cstr;
|
||||
struct tart_cstring file_cstr;
|
||||
struct tart_cstring branch_cstr;
|
||||
struct tart_cell bottomBar_cell;
|
||||
};
|
||||
|
||||
|
||||
struct InsertMode {
|
||||
};
|
||||
|
||||
@@ -31,12 +42,12 @@ void InitNormalMode();
|
||||
void InitNomiMode();
|
||||
|
||||
|
||||
void CommandMode(struct CommandMode cmdm) {
|
||||
void CommandMode(struct commandMode cmdm) {
|
||||
tart_draw_cstring_position(tart_get_buffer(&window, 0),
|
||||
commandInput_cstr,
|
||||
cmdm.input_cstr,
|
||||
(struct tart_vec2){16,10});
|
||||
tart_draw_cstring_position(tart_get_buffer(&window, 0),
|
||||
commandPrompt_cstr,
|
||||
cmdm.prompt_cstr,
|
||||
(struct tart_vec2){0,10});
|
||||
}
|
||||
void InsertMode();
|
||||
|
||||
Reference in New Issue
Block a user