diff options
| author | kasull <qsullian@gmail.com> | 2026-02-26 04:42:05 -0500 |
|---|---|---|
| committer | kasull <qsullian@gmail.com> | 2026-02-26 04:42:05 -0500 |
| commit | 17780f161914e30aaeb1321872730f7fb2cd26c3 (patch) | |
| tree | 1563fa86213981ff46fc8a2f9a9daafba5160b0b /src/editor | |
| parent | 94e0df832c83bc7b9ead0824cfbc41f166869c68 (diff) | |
color-code previews: polygon tool pink, wall-polygon preview cyan
Diffstat (limited to 'src/editor')
| -rw-r--r-- | src/editor/view2d.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/editor/view2d.cpp b/src/editor/view2d.cpp index 73b4062..92988df 100644 --- a/src/editor/view2d.cpp +++ b/src/editor/view2d.cpp @@ -352,7 +352,9 @@ void gui_editor_2dview_draw_poly_preview( GUI_EDITOR_2DVIEW* view ) { if( !gui_editor_2dview_build_drag_shape( view, &shape ) ) return; - CLR poly_clr = CLR::CYAN( 0.9f ); + CLR poly_clr = editor->tool.type == EDITOR_TOOL_POLY + ? CLR::MAGENTA( 0.9f ) + : CLR::CYAN( 0.9f ); for( I32 i = 0; i < shape.pointc; ++i ) { I32 next = ( i + 1 ) % shape.pointc; VEC2 p0 = gui_editor_2dview_world_to_screen( view, shape.points[i] ); |
