diff options
| author | aura <nw@moneybot.cc> | 2026-02-25 06:07:38 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-02-25 06:07:44 +0100 |
| commit | 25da8e01a0499c273357cb2feb2825b53e86795b (patch) | |
| tree | 0888d139edf274a59ab2561a655e8f5d4f0be185 /src/editor/view2d.cpp | |
| parent | d97e17b180257f3425574eb3ba4189d312eb590a (diff) | |
wip on toolview
Diffstat (limited to 'src/editor/view2d.cpp')
| -rw-r--r-- | src/editor/view2d.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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: |
