From 1aa17de9188790f049c0edc4281597cb4e535627 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 11 Aug 2026 19:10:04 +0200 Subject: wip on shape tool --- src/editor/editor.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/editor/editor.h') diff --git a/src/editor/editor.h b/src/editor/editor.h index 3d27951..8838d8f 100644 --- a/src/editor/editor.h +++ b/src/editor/editor.h @@ -19,7 +19,13 @@ enum EditorTools_t { enum EditorWallShape_t { EDITOR_WALLSHAPE_LINE = 0, - EDITOR_WALLSHAPE_POLYGON = 1 + EDITOR_WALLSHAPE_POLYGON = 1, + EDITOR_WALLSHAPE_PATH = 2 +}; + +enum EditorPolyShape_t { + EDITOR_POLYSHAPE_DRAG = 0, + EDITOR_POLYSHAPE_PATH = 1 }; enum EditorSelectType_t { @@ -43,8 +49,6 @@ enum EditorActionType_t { EDITOR_UNDO_EDITPROPS = 1 << 5, EDITOR_UNDO_CREATE_MAPPROP = 1 << 6, - - EDITOR_UNDO_CREATE_EOBJ = EDITOR_UNDO_CREATE_WALLS | EDITOR_UNDO_CREATE_POLY | EDITOR_UNDO_CREATE_SPRITES | EDITOR_UNDO_CREATE_ENTITIES, }; @@ -91,6 +95,7 @@ struct GAME_EDITOR_TOOL { /* shapes */ I32 wallshape; + I32 polyshape; F32 polysides; F32 wallheight; F32 placementheight; -- cgit v1.2.3