summaryrefslogtreecommitdiff
path: root/src/editor/editor.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-17 12:04:30 +0100
committerday <day@national.shitposting.agency>2026-03-20 22:52:49 +0100
commit34d410da50e76f12c3d011293f4b544330e8ba3e (patch)
treec8335b5699dc40e5de6233891a3cbe154612a224 /src/editor/editor.h
parent7cc07134a9759ed196b0fe5ea26c18d76e232952 (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 );