You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
-Massive editor dialog cleanup
-Added a bottom menu list
This commit is contained in:
@@ -831,21 +831,26 @@ bool ThemeEditorPlugin::handles(Object *p_node) const{
|
||||
void ThemeEditorPlugin::make_visible(bool p_visible){
|
||||
|
||||
if (p_visible) {
|
||||
theme_editor->show();
|
||||
theme_editor->set_process(true);
|
||||
button->show();
|
||||
} else {
|
||||
theme_editor->hide();
|
||||
theme_editor->set_process(false);
|
||||
if (theme_editor->is_visible())
|
||||
EditorNode::get_singleton()->hide_bottom_panel();
|
||||
button->hide();
|
||||
}
|
||||
}
|
||||
|
||||
ThemeEditorPlugin::ThemeEditorPlugin(EditorNode *p_node) {
|
||||
|
||||
editor=p_node;
|
||||
theme_editor = memnew( ThemeEditor );
|
||||
theme_editor->set_custom_minimum_size(Size2(0,500));
|
||||
|
||||
// p_node->get_viewport()->add_child(theme_editor);
|
||||
button=EditorNode::get_singleton()->add_bottom_panel_item("Theme",theme_editor);
|
||||
button->hide();
|
||||
|
||||
p_node->get_viewport()->add_child(theme_editor);
|
||||
theme_editor->set_area_as_parent_rect();
|
||||
theme_editor->hide();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user