You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Set switch_on_hover to true for the remaining menus
This commit is contained in:
@@ -267,6 +267,7 @@ CPUParticles2DEditorPlugin::CPUParticles2DEditorPlugin(EditorNode *p_node) {
|
|||||||
menu->get_popup()->add_item(TTR("Load Emission Mask"), MENU_LOAD_EMISSION_MASK);
|
menu->get_popup()->add_item(TTR("Load Emission Mask"), MENU_LOAD_EMISSION_MASK);
|
||||||
// menu->get_popup()->add_item(TTR("Clear Emission Mask"), MENU_CLEAR_EMISSION_MASK);
|
// menu->get_popup()->add_item(TTR("Clear Emission Mask"), MENU_CLEAR_EMISSION_MASK);
|
||||||
menu->set_text(TTR("Particles"));
|
menu->set_text(TTR("Particles"));
|
||||||
|
menu->set_switch_on_hover(true);
|
||||||
toolbar->add_child(menu);
|
toolbar->add_child(menu);
|
||||||
|
|
||||||
file = memnew(EditorFileDialog);
|
file = memnew(EditorFileDialog);
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ CPUParticlesEditor::CPUParticlesEditor() {
|
|||||||
particles_editor_hb = memnew(HBoxContainer);
|
particles_editor_hb = memnew(HBoxContainer);
|
||||||
SpatialEditor::get_singleton()->add_control_to_menu_panel(particles_editor_hb);
|
SpatialEditor::get_singleton()->add_control_to_menu_panel(particles_editor_hb);
|
||||||
options = memnew(MenuButton);
|
options = memnew(MenuButton);
|
||||||
|
options->set_switch_on_hover(true);
|
||||||
particles_editor_hb->add_child(options);
|
particles_editor_hb->add_child(options);
|
||||||
particles_editor_hb->hide();
|
particles_editor_hb->hide();
|
||||||
|
|
||||||
|
|||||||
@@ -412,6 +412,7 @@ void MeshInstanceEditor::_bind_methods() {
|
|||||||
MeshInstanceEditor::MeshInstanceEditor() {
|
MeshInstanceEditor::MeshInstanceEditor() {
|
||||||
|
|
||||||
options = memnew(MenuButton);
|
options = memnew(MenuButton);
|
||||||
|
options->set_switch_on_hover(true);
|
||||||
SpatialEditor::get_singleton()->add_control_to_menu_panel(options);
|
SpatialEditor::get_singleton()->add_control_to_menu_panel(options);
|
||||||
|
|
||||||
options->set_text(TTR("Mesh"));
|
options->set_text(TTR("Mesh"));
|
||||||
|
|||||||
@@ -293,6 +293,7 @@ void MultiMeshEditor::_bind_methods() {
|
|||||||
MultiMeshEditor::MultiMeshEditor() {
|
MultiMeshEditor::MultiMeshEditor() {
|
||||||
|
|
||||||
options = memnew(MenuButton);
|
options = memnew(MenuButton);
|
||||||
|
options->set_switch_on_hover(true);
|
||||||
SpatialEditor::get_singleton()->add_control_to_menu_panel(options);
|
SpatialEditor::get_singleton()->add_control_to_menu_panel(options);
|
||||||
|
|
||||||
options->set_text("MultiMesh");
|
options->set_text("MultiMesh");
|
||||||
|
|||||||
@@ -375,6 +375,7 @@ Particles2DEditorPlugin::Particles2DEditorPlugin(EditorNode *p_node) {
|
|||||||
menu->get_popup()->add_separator();
|
menu->get_popup()->add_separator();
|
||||||
menu->get_popup()->add_item(TTR("Convert to CPUParticles"), MENU_OPTION_CONVERT_TO_CPU_PARTICLES);
|
menu->get_popup()->add_item(TTR("Convert to CPUParticles"), MENU_OPTION_CONVERT_TO_CPU_PARTICLES);
|
||||||
menu->set_text(TTR("Particles"));
|
menu->set_text(TTR("Particles"));
|
||||||
|
menu->set_switch_on_hover(true);
|
||||||
toolbar->add_child(menu);
|
toolbar->add_child(menu);
|
||||||
|
|
||||||
file = memnew(EditorFileDialog);
|
file = memnew(EditorFileDialog);
|
||||||
|
|||||||
@@ -454,6 +454,7 @@ ParticlesEditor::ParticlesEditor() {
|
|||||||
particles_editor_hb = memnew(HBoxContainer);
|
particles_editor_hb = memnew(HBoxContainer);
|
||||||
SpatialEditor::get_singleton()->add_control_to_menu_panel(particles_editor_hb);
|
SpatialEditor::get_singleton()->add_control_to_menu_panel(particles_editor_hb);
|
||||||
options = memnew(MenuButton);
|
options = memnew(MenuButton);
|
||||||
|
options->set_switch_on_hover(true);
|
||||||
particles_editor_hb->add_child(options);
|
particles_editor_hb->add_child(options);
|
||||||
particles_editor_hb->hide();
|
particles_editor_hb->hide();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user