From 25da8e01a0499c273357cb2feb2825b53e86795b Mon Sep 17 00:00:00 2001 From: aura Date: Wed, 25 Feb 2026 06:07:38 +0100 Subject: wip on toolview --- src/editor/view2d.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/editor/view2d.cpp') diff --git a/src/editor/view2d.cpp b/src/editor/view2d.cpp index faff736..ee7e4d7 100644 --- a/src/editor/view2d.cpp +++ b/src/editor/view2d.cpp @@ -178,7 +178,7 @@ void gui_editor_2dview_draw_polygons( GUI_EDITOR_2DVIEW* view, I32 x, I32 y ) { } } - if( editor->tool != EDITOR_TOOL_POLY && editor->tool != EDITOR_TOOL_SELECT ) + if( editor->tool.type != EDITOR_TOOL_POLY && editor->tool.type != EDITOR_TOOL_SELECT ) return; // draw gizmos p->vertices.each( fn( MAP_VERTEX* v ) { @@ -216,7 +216,7 @@ void gui_editor_2dview_draw_walls( GUI_EDITOR_2DVIEW* view, I32 x, I32 y ) { } } ); - if( editor->tool != EDITOR_TOOL_WALL && editor->tool != EDITOR_TOOL_SELECT ) + if( editor->tool.type != EDITOR_TOOL_WALL && editor->tool.type != EDITOR_TOOL_SELECT ) return; // gizmos @@ -892,7 +892,7 @@ void gui_editor_2dview_input_tool_draw( GUI_EDITOR_2DVIEW* view ) { return; } - switch( editor->tool ) { + switch( editor->tool.type ) { case EDITOR_TOOL_WALL: return gui_editor_2dview_input_tool_wall( view ); case EDITOR_TOOL_POLY: return gui_editor_2dview_input_tool_poly( view ); case EDITOR_TOOL_ENT: return gui_editor_2dview_input_tool_ent( view ); @@ -1011,7 +1011,7 @@ void gui_editor_2dview_input_fn( void* ptr ) { if( my >= y + h - 18 ) return; - switch( editor->tool ) { + switch( editor->tool.type ) { case EDITOR_TOOL_SELECT: return gui_editor_2dview_input_tool_select( view ); case EDITOR_TOOL_WALL: case EDITOR_TOOL_POLY: -- cgit v1.2.3