aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorJuan Linietsky2015-12-13 17:16:13 -0300
committerJuan Linietsky2015-12-13 17:16:13 -0300
commit72ff61963b207cc41664f7aeb39448d0a2f8369f (patch)
treeedd6845c7a7940a955ec8b947c225a1a664b1bc0 /tools/editor/plugins/spatial_editor_plugin.h
parent7c39ebd05cbead99ead5b29021d8b83468a39d4d (diff)
downloadgodot-72ff61963b207cc41664f7aeb39448d0a2f8369f.tar.gz
godot-72ff61963b207cc41664f7aeb39448d0a2f8369f.tar.zst
godot-72ff61963b207cc41664f7aeb39448d0a2f8369f.zip
fixed and improved selection and list selection, closes #2852
Diffstat (limited to '')
-rw-r--r--tools/editor/plugins/spatial_editor_plugin.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/editor/plugins/spatial_editor_plugin.h b/tools/editor/plugins/spatial_editor_plugin.h
index ebd3f77fe..e7ea14ba6 100644
--- a/tools/editor/plugins/spatial_editor_plugin.h
+++ b/tools/editor/plugins/spatial_editor_plugin.h
@@ -239,6 +239,7 @@ private:
void _finish_gizmo_instances();
void _selection_result_pressed(int);
void _selection_menu_hide();
+ void _list_select(InputEventMouseButton b);
protected:
@@ -287,7 +288,9 @@ public:
TOOL_MODE_SELECT,
TOOL_MODE_MOVE,
TOOL_MODE_ROTATE,
- TOOL_MODE_SCALE
+ TOOL_MODE_SCALE,
+ TOOL_MODE_LIST_SELECT,
+ TOOL_MAX
};
@@ -369,6 +372,7 @@ private:
MENU_TOOL_MOVE,
MENU_TOOL_ROTATE,
MENU_TOOL_SCALE,
+ MENU_TOOL_LIST_SELECT,
MENU_TRANSFORM_USE_SNAP,
MENU_TRANSFORM_CONFIGURE_SNAP,
MENU_TRANSFORM_LOCAL_COORDS,
@@ -392,7 +396,7 @@ private:
};
- Button *tool_button[4];
+ Button *tool_button[TOOL_MAX];
Button *instance_button;