From a156bc15880e9e250c9c40f0dde431e077109dc1 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 17 Mar 2026 12:04:30 +0100 Subject: multi select --- src/editor/editor.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/editor/editor.h') diff --git a/src/editor/editor.h b/src/editor/editor.h index 33396df..4050029 100644 --- a/src/editor/editor.h +++ b/src/editor/editor.h @@ -264,9 +264,13 @@ struct GUI_EDITOR_2DVIEW : GUI_VIEW { }; struct GUI_EDITOR_PROPVIEW : GUI_VIEW { - void* curselect; - U8 seltype; + struct PROPVIEW_SELECT { + void* obj; + U8 seltype; + }; + LIST curselect; + LIST curprops; GUI_VIEW* itemview; }; @@ -299,6 +303,7 @@ struct GUI_EDITOR_TEXTUREPICKER : GUI_WINDOW { GUI_LABEL* densitylabel; GUI_CALLBACK cb; + void* cbextra; }; @@ -330,7 +335,8 @@ extern GUI_EDITORWINDOW* gui_editorwindow( I32 w, I32 h ); extern GUI_EDITOR_2DVIEW* gui_editor_2dview( I32 x, I32 y, I32 w, I32 h ); extern GUI_EDITOR_3DVIEW* gui_editor_3dview( I32 x, I32 y, I32 w, I32 h ); extern GUI_EDITOR_PROPVIEW* gui_editor_propview( I32 x, I32 y, I32 w, I32 h ); -extern void gui_editor_propview_select( GUI_EDITOR_PROPVIEW* e, void* what, U8 seltype ); +extern void gui_editor_propview_select( GUI_EDITOR_PROPVIEW* e, void* what, U8 seltype, U8 clearall = 1 ); +extern U8 gui_editor_propview_is_selected( GUI_EDITOR_PROPVIEW* e, void* what, U8 seltype ); extern void gui_editor_propview_update( GUI_EDITOR_PROPVIEW* e ); extern GUI_EDITOR_TOOLVIEW* gui_editor_toolview( I32 x, I32 y, I32 w, I32 h ); extern void gui_editor_toolview_update( GUI_EDITOR_TOOLVIEW* view ); -- cgit v1.2.3