From 2973df584978d9aae6f164ce0204179c8a28b3ae Mon Sep 17 00:00:00 2001 From: 2lag <96544487+2lag@users.noreply.github.com> Date: Sat, 8 Aug 2026 17:33:36 +0200 Subject: console, textbox changes, some other shit --- src/editor/editor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/editor/editor.cpp') diff --git a/src/editor/editor.cpp b/src/editor/editor.cpp index 2e76039..18ae062 100644 --- a/src/editor/editor.cpp +++ b/src/editor/editor.cpp @@ -648,6 +648,7 @@ GAME_EDITOR* editor_create( GAME_DATA* game ) { gui_init( game ); e->wnd = gui_editorwindow( 800, 600 ); + game->console_window = gui_consolewindow( 10, 10, 256, 128 ); gui_end(); return e; @@ -663,6 +664,7 @@ STAT editor_close( GAME_EDITOR* e ) { I32 w = e->wnd->w, h = e->wnd->h; gui_free( e->wnd ); + e->wnd = 0; editor_clear_gui_state_refs( e ); e->wnd = gui_editorwindow( w, h ); } ); @@ -701,8 +703,8 @@ STAT editor_new_map( GAME_EDITOR* e, const char* mapname ) { m->props.push( { .clr = { 1.f, 1.f, 1.f, 1.f } } ); m->walls.push( { .propid = 0, - .start = { 0 , 0, -40.f }, - .end = { 10.f, 0, 80.f }, + .start = { 0.f, 0.f, -40.f }, + .end = { 10.f, 0.f, 80.f }, } ); CFG_SECTION* map_cfg = map_serialize( m ); -- cgit v1.2.3