summaryrefslogtreecommitdiff
path: root/src/editor/editor_infobox.cpp
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_infobox.cpp
parent991352b0d2767e6bd1a46f554db4ac9d208c13ad (diff)
multi select
Diffstat (limited to 'src/editor/editor_infobox.cpp')
-rw-r--r--src/editor/editor_infobox.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/editor/editor_infobox.cpp b/src/editor/editor_infobox.cpp
index 479b59d..173e849 100644
--- a/src/editor/editor_infobox.cpp
+++ b/src/editor/editor_infobox.cpp
@@ -70,12 +70,14 @@ static void gui_editor_infobox_draw_assets( GUI_EDITOR_INFOBOX* box, I32 panel_x
SURF_PROPS* p = map_entry ? 0 : &map->props[idx - 1];
U8 selected = 0;
if( editor->gui.props ) {
- if( map_entry ) {
- selected = editor->gui.props->seltype == EDITOR_SELECT_ORIGIN
- && editor->gui.props->curselect == editor->map;
- } else {
- selected = editor->gui.props->seltype == EDITOR_SELECT_SURFPROPS
- && editor->gui.props->curselect == p;
+ if( editor->gui.props->curselect.size == 1 ) {
+ if( map_entry ) {
+ selected = editor->gui.props->curselect.data->seltype == EDITOR_SELECT_ORIGIN
+ && editor->gui.props->curselect.data->obj == editor->map;
+ } else {
+ selected = editor->gui.props->curselect.data->seltype == EDITOR_SELECT_SURFPROPS
+ && editor->gui.props->curselect.data->obj == p;
+ }
}
}