diff options
| author | aura <nw@moneybot.cc> | 2026-08-13 00:51:36 +0200 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-08-13 00:51:36 +0200 |
| commit | a266df321b19558764565f3b433aa997004a5f42 (patch) | |
| tree | 9d4dd1b4a6a4c21348fe222e28e21a858561b8ee /src/editor/editor.h | |
| parent | 17c07b5f884453130d8be3a6d91d730d80d4f8ae (diff) | |
Diffstat (limited to 'src/editor/editor.h')
| -rw-r--r-- | src/editor/editor.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/editor/editor.h b/src/editor/editor.h index 682ccc8..642138f 100644 --- a/src/editor/editor.h +++ b/src/editor/editor.h @@ -19,13 +19,20 @@ enum EditorTools_t { enum EditorWallShape_t { EDITOR_WALLSHAPE_LINE = 0, - EDITOR_WALLSHAPE_POLYGON = 1, - EDITOR_WALLSHAPE_PATH = 2 + EDITOR_WALLSHAPE_POLYGON, + EDITOR_WALLSHAPE_PATH, + EDITOR_WALLSHAPE_MAX +}; + +constexpr const char* EDITOR_WALLSHAPE_NAMES[] = { + "line", + "polygon", + "path" }; enum EditorPolyShape_t { EDITOR_POLYSHAPE_DRAG = 0, - EDITOR_POLYSHAPE_PATH = 1 + EDITOR_POLYSHAPE_PATH }; enum EditorSelectType_t { @@ -293,6 +300,10 @@ struct GUI_EDITOR_2DVIEW : GUI_VIEW { VEC2 poly_end; VEC3 pending_object_pos; + VEC3 draw_lastpos; + VEC3 draw_startpos; + U8 draw_started; + I32 pending_wall_undo_idx; I32 pending_object_undo_idx; U8 pending_object_undo_type; |
