mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-01 06:01:14 +00:00 
			
		
		
		
	Set switch_on_hover to true for the remaining menus
This commit is contained in:
		
							parent
							
								
									9fc84061dd
								
							
						
					
					
						commit
						32b9b3159a
					
				
					 6 changed files with 6 additions and 0 deletions
				
			
		|  | @ -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("Clear Emission Mask"), MENU_CLEAR_EMISSION_MASK);
 | ||||
| 	menu->set_text(TTR("Particles")); | ||||
| 	menu->set_switch_on_hover(true); | ||||
| 	toolbar->add_child(menu); | ||||
| 
 | ||||
| 	file = memnew(EditorFileDialog); | ||||
|  |  | |||
|  | @ -101,6 +101,7 @@ CPUParticlesEditor::CPUParticlesEditor() { | |||
| 	particles_editor_hb = memnew(HBoxContainer); | ||||
| 	SpatialEditor::get_singleton()->add_control_to_menu_panel(particles_editor_hb); | ||||
| 	options = memnew(MenuButton); | ||||
| 	options->set_switch_on_hover(true); | ||||
| 	particles_editor_hb->add_child(options); | ||||
| 	particles_editor_hb->hide(); | ||||
| 
 | ||||
|  |  | |||
|  | @ -412,6 +412,7 @@ void MeshInstanceEditor::_bind_methods() { | |||
| MeshInstanceEditor::MeshInstanceEditor() { | ||||
| 
 | ||||
| 	options = memnew(MenuButton); | ||||
| 	options->set_switch_on_hover(true); | ||||
| 	SpatialEditor::get_singleton()->add_control_to_menu_panel(options); | ||||
| 
 | ||||
| 	options->set_text(TTR("Mesh")); | ||||
|  |  | |||
|  | @ -293,6 +293,7 @@ void MultiMeshEditor::_bind_methods() { | |||
| MultiMeshEditor::MultiMeshEditor() { | ||||
| 
 | ||||
| 	options = memnew(MenuButton); | ||||
| 	options->set_switch_on_hover(true); | ||||
| 	SpatialEditor::get_singleton()->add_control_to_menu_panel(options); | ||||
| 
 | ||||
| 	options->set_text("MultiMesh"); | ||||
|  |  | |||
|  | @ -375,6 +375,7 @@ Particles2DEditorPlugin::Particles2DEditorPlugin(EditorNode *p_node) { | |||
| 	menu->get_popup()->add_separator(); | ||||
| 	menu->get_popup()->add_item(TTR("Convert to CPUParticles"), MENU_OPTION_CONVERT_TO_CPU_PARTICLES); | ||||
| 	menu->set_text(TTR("Particles")); | ||||
| 	menu->set_switch_on_hover(true); | ||||
| 	toolbar->add_child(menu); | ||||
| 
 | ||||
| 	file = memnew(EditorFileDialog); | ||||
|  |  | |||
|  | @ -454,6 +454,7 @@ ParticlesEditor::ParticlesEditor() { | |||
| 	particles_editor_hb = memnew(HBoxContainer); | ||||
| 	SpatialEditor::get_singleton()->add_control_to_menu_panel(particles_editor_hb); | ||||
| 	options = memnew(MenuButton); | ||||
| 	options->set_switch_on_hover(true); | ||||
| 	particles_editor_hb->add_child(options); | ||||
| 	particles_editor_hb->hide(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guilherme Felipe
						Guilherme Felipe