|
@@ -5286,6 +5286,8 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) {
|
|
tool_button[TOOL_MODE_SELECT]->connect("pressed", this, "_menu_item_pressed", button_binds);
|
|
tool_button[TOOL_MODE_SELECT]->connect("pressed", this, "_menu_item_pressed", button_binds);
|
|
tool_button[TOOL_MODE_SELECT]->set_tooltip(TTR("Select Mode (Q)") + "\n" + keycode_get_string(KEY_MASK_CMD) + TTR("Drag: Rotate\nAlt+Drag: Move\nAlt+RMB: Depth list selection"));
|
|
tool_button[TOOL_MODE_SELECT]->set_tooltip(TTR("Select Mode (Q)") + "\n" + keycode_get_string(KEY_MASK_CMD) + TTR("Drag: Rotate\nAlt+Drag: Move\nAlt+RMB: Depth list selection"));
|
|
|
|
|
|
|
|
+ hbc_menu->add_child(memnew(VSeparator));
|
|
|
|
+
|
|
tool_button[TOOL_MODE_MOVE] = memnew(ToolButton);
|
|
tool_button[TOOL_MODE_MOVE] = memnew(ToolButton);
|
|
hbc_menu->add_child(tool_button[TOOL_MODE_MOVE]);
|
|
hbc_menu->add_child(tool_button[TOOL_MODE_MOVE]);
|
|
tool_button[TOOL_MODE_MOVE]->set_toggle_mode(true);
|
|
tool_button[TOOL_MODE_MOVE]->set_toggle_mode(true);
|
|
@@ -5310,6 +5312,8 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) {
|
|
tool_button[TOOL_MODE_SCALE]->connect("pressed", this, "_menu_item_pressed", button_binds);
|
|
tool_button[TOOL_MODE_SCALE]->connect("pressed", this, "_menu_item_pressed", button_binds);
|
|
tool_button[TOOL_MODE_SCALE]->set_tooltip(TTR("Scale Mode (R)"));
|
|
tool_button[TOOL_MODE_SCALE]->set_tooltip(TTR("Scale Mode (R)"));
|
|
|
|
|
|
|
|
+ hbc_menu->add_child(memnew(VSeparator));
|
|
|
|
+
|
|
tool_button[TOOL_MODE_LIST_SELECT] = memnew(ToolButton);
|
|
tool_button[TOOL_MODE_LIST_SELECT] = memnew(ToolButton);
|
|
hbc_menu->add_child(tool_button[TOOL_MODE_LIST_SELECT]);
|
|
hbc_menu->add_child(tool_button[TOOL_MODE_LIST_SELECT]);
|
|
tool_button[TOOL_MODE_LIST_SELECT]->set_toggle_mode(true);
|
|
tool_button[TOOL_MODE_LIST_SELECT]->set_toggle_mode(true);
|
|
@@ -5330,8 +5334,7 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) {
|
|
tool_button[TOOL_UNLOCK_SELECTED]->connect("pressed", this, "_menu_item_pressed", button_binds);
|
|
tool_button[TOOL_UNLOCK_SELECTED]->connect("pressed", this, "_menu_item_pressed", button_binds);
|
|
tool_button[TOOL_UNLOCK_SELECTED]->set_tooltip(TTR("Unlock the selected object (can be moved)."));
|
|
tool_button[TOOL_UNLOCK_SELECTED]->set_tooltip(TTR("Unlock the selected object (can be moved)."));
|
|
|
|
|
|
- VSeparator *vs = memnew(VSeparator);
|
|
|
|
- hbc_menu->add_child(vs);
|
|
|
|
|
|
+ hbc_menu->add_child(memnew(VSeparator));
|
|
|
|
|
|
tool_option_button[TOOL_OPT_LOCAL_COORDS] = memnew(ToolButton);
|
|
tool_option_button[TOOL_OPT_LOCAL_COORDS] = memnew(ToolButton);
|
|
hbc_menu->add_child(tool_option_button[TOOL_OPT_LOCAL_COORDS]);
|
|
hbc_menu->add_child(tool_option_button[TOOL_OPT_LOCAL_COORDS]);
|
|
@@ -5353,8 +5356,7 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) {
|
|
sct = ED_GET_SHORTCUT("spatial_editor/snap").ptr()->get_as_text();
|
|
sct = ED_GET_SHORTCUT("spatial_editor/snap").ptr()->get_as_text();
|
|
tool_option_button[TOOL_OPT_USE_SNAP]->set_tooltip(vformat(TTR("Snap Mode (%s)"), sct));
|
|
tool_option_button[TOOL_OPT_USE_SNAP]->set_tooltip(vformat(TTR("Snap Mode (%s)"), sct));
|
|
|
|
|
|
- vs = memnew(VSeparator);
|
|
|
|
- hbc_menu->add_child(vs);
|
|
|
|
|
|
+ hbc_menu->add_child(memnew(VSeparator));
|
|
|
|
|
|
// Drag and drop support;
|
|
// Drag and drop support;
|
|
preview_node = memnew(Spatial);
|
|
preview_node = memnew(Spatial);
|