summaryrefslogtreecommitdiff
path: root/src/editor/editor.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-17 12:04:30 +0100
committeraura <nw@moneybot.cc>2026-03-17 12:04:30 +0100
commita156bc15880e9e250c9c40f0dde431e077109dc1 (patch)
tree64b6461b0d0e9cad6ff7fdcfba563e103fad9067 /src/editor/editor.h
parent991352b0d2767e6bd1a46f554db4ac9d208c13ad (diff)
multi select
Diffstat (limited to 'src/editor/editor.h')
-rw-r--r--src/editor/editor.h12
1 files changed, 9 insertions, 3 deletions
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<PROPVIEW_SELECT> curselect;
+ LIST<EDITOR_PROP*> 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 );