summaryrefslogtreecommitdiff
path: root/src/editor/gui.cpp
diff options
context:
space:
mode:
authorkasull <qsullian@gmail.com>2026-02-26 04:31:08 -0500
committerkasull <qsullian@gmail.com>2026-02-26 04:31:08 -0500
commit94e0df832c83bc7b9ead0824cfbc41f166869c68 (patch)
treec90d78ea332d66a09020a431b5031aa42686bd9f /src/editor/gui.cpp
parentb384930de5044934207d1b2ceb4fa55705094f8b (diff)
add wall shape dropdown and drag-based polygon creation with height controls
fix wall Z bounds calculation and key index masking in input handling preserve 2D view/cursor stability when map bounds update
Diffstat (limited to 'src/editor/gui.cpp')
-rw-r--r--src/editor/gui.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/editor/gui.cpp b/src/editor/gui.cpp
index 39914c8..c5e44df 100644
--- a/src/editor/gui.cpp
+++ b/src/editor/gui.cpp
@@ -69,7 +69,17 @@ void editor_update_toolview( GAME_EDITOR* e ) {
gui_editor_toolview_update( egui->tool );
}
-void settool( U8 t ) { editor->tool.type = t; }
+void settool( U8 t ) {
+ editor->tool.type = t;
+
+ if( editor->gui.v2d ) {
+ editor->gui.v2d->poly_drag = 0;
+ }
+
+ if( editor->gui.tool ) {
+ editor_update_toolview( editor );
+ }
+}
void editor_create_toolview_column( GAME_EDITOR* e ) {
GAME_EDITOR::EDITOR_GUI* egui = &e->gui;