summaryrefslogtreecommitdiff
path: root/src/editor/editor.cpp
diff options
context:
space:
mode:
author2lag <96544487+2lag@users.noreply.github.com>2026-08-08 17:33:36 +0200
committer2lag <96544487+2lag@users.noreply.github.com>2026-08-08 17:33:36 +0200
commit2973df584978d9aae6f164ce0204179c8a28b3ae (patch)
treec1b793c8e0d17aeb66c5197bc28acca84b2c98ab /src/editor/editor.cpp
parente540910745aad31378452eec25aacfb3f346191a (diff)
console, textbox changes, some other shit
Diffstat (limited to 'src/editor/editor.cpp')
-rw-r--r--src/editor/editor.cpp6
1 files changed, 4 insertions, 2 deletions
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 );