mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	Extract BottomPanel from EditorNode
This commit is contained in:
		
							parent
							
								
									1aab6e96b9
								
							
						
					
					
						commit
						eb6ca91ba6
					
				
					 22 changed files with 438 additions and 315 deletions
				
			
		|  | @ -36,6 +36,7 @@ | |||
| #include "editor/editor_node.h" | ||||
| #include "editor/editor_settings.h" | ||||
| #include "editor/editor_undo_redo_manager.h" | ||||
| #include "editor/gui/editor_bottom_panel.h" | ||||
| #include "editor/gui/editor_file_dialog.h" | ||||
| #include "editor/themes/editor_scale.h" | ||||
| 
 | ||||
|  | @ -406,11 +407,11 @@ void ResourcePreloaderEditorPlugin::make_visible(bool p_visible) { | |||
| 	if (p_visible) { | ||||
| 		//preloader_editor->show();
 | ||||
| 		button->show(); | ||||
| 		EditorNode::get_singleton()->make_bottom_panel_item_visible(preloader_editor); | ||||
| 		EditorNode::get_bottom_panel()->make_item_visible(preloader_editor); | ||||
| 		//preloader_editor->set_process(true);
 | ||||
| 	} else { | ||||
| 		if (preloader_editor->is_visible_in_tree()) { | ||||
| 			EditorNode::get_singleton()->hide_bottom_panel(); | ||||
| 			EditorNode::get_bottom_panel()->hide_bottom_panel(); | ||||
| 		} | ||||
| 		button->hide(); | ||||
| 		//preloader_editor->hide();
 | ||||
|  | @ -422,7 +423,7 @@ ResourcePreloaderEditorPlugin::ResourcePreloaderEditorPlugin() { | |||
| 	preloader_editor = memnew(ResourcePreloaderEditor); | ||||
| 	preloader_editor->set_custom_minimum_size(Size2(0, 250) * EDSCALE); | ||||
| 
 | ||||
| 	button = EditorNode::get_singleton()->add_bottom_panel_item("ResourcePreloader", preloader_editor); | ||||
| 	button = EditorNode::get_bottom_panel()->add_item("ResourcePreloader", preloader_editor); | ||||
| 	button->hide(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kit
						kit