You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #3435 from neikeq/output_focus_steal
Fix Output panel annoying focus steal
This commit is contained in:
@@ -4592,6 +4592,16 @@ ToolButton *EditorNode::add_bottom_panel_item(String p_text,Control *p_item) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool EditorNode::are_bottom_panels_hidden() const {
|
||||||
|
|
||||||
|
for(int i=0;i<bottom_panel_items.size();i++) {
|
||||||
|
if (bottom_panel_items[i].button->is_pressed())
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void EditorNode::hide_bottom_panel() {
|
void EditorNode::hide_bottom_panel() {
|
||||||
|
|
||||||
_bottom_panel_switch(false,0);
|
_bottom_panel_switch(false,0);
|
||||||
|
|||||||
@@ -670,6 +670,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
ToolButton* add_bottom_panel_item(String p_text,Control *p_item);
|
ToolButton* add_bottom_panel_item(String p_text,Control *p_item);
|
||||||
|
bool are_bottom_panels_hidden() const;
|
||||||
void make_bottom_panel_item_visible(Control *p_item);
|
void make_bottom_panel_item_visible(Control *p_item);
|
||||||
void raise_bottom_panel_item(Control *p_item);
|
void raise_bottom_panel_item(Control *p_item);
|
||||||
void hide_bottom_panel();
|
void hide_bottom_panel();
|
||||||
|
|||||||
@@ -360,8 +360,10 @@ void ScriptEditorDebugger::_parse_message(const String& p_msg,const Array& p_dat
|
|||||||
|
|
||||||
if (EditorNode::get_log()->is_hidden()) {
|
if (EditorNode::get_log()->is_hidden()) {
|
||||||
log_forced_visible=true;
|
log_forced_visible=true;
|
||||||
|
if (EditorNode::get_singleton()->are_bottom_panels_hidden()) {
|
||||||
EditorNode::get_singleton()->make_bottom_panel_item_visible(EditorNode::get_log());
|
EditorNode::get_singleton()->make_bottom_panel_item_visible(EditorNode::get_log());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
EditorNode::get_log()->add_message(t);
|
EditorNode::get_log()->add_message(t);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user