diff options
| author | Rémi Verschelde | 2015-12-12 14:10:12 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2015-12-12 14:10:12 +0100 |
| commit | c3db5d951c1ee938a0c789c78a9bb8045ef8605b (patch) | |
| tree | cf0b5d127152dd6c52940810081992efc86f5f5f /tools/editor/script_editor_debugger.cpp | |
| parent | a73cf7f79447480b59ac15c9461a2664ac4bc34f (diff) | |
| parent | 4d644ca997befb9b4607f8a3a21463ec2e599a00 (diff) | |
| download | godot-c3db5d951c1ee938a0c789c78a9bb8045ef8605b.tar.gz godot-c3db5d951c1ee938a0c789c78a9bb8045ef8605b.tar.zst godot-c3db5d951c1ee938a0c789c78a9bb8045ef8605b.zip | |
Diffstat (limited to 'tools/editor/script_editor_debugger.cpp')
| -rw-r--r-- | tools/editor/script_editor_debugger.cpp | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp index 60f2afa2c..6ca949083 100644 --- a/tools/editor/script_editor_debugger.cpp +++ b/tools/editor/script_editor_debugger.cpp @@ -570,11 +570,12 @@ void ScriptEditorDebugger::_notification(int p_what) { ppeer->set_stream_peer(connection); - show(); + if (!always_visible) + show(); + dobreak->set_disabled(false); tabs->set_current_tab(0); - emit_signal("show_debugger",true); reason->set_text("Child Process Connected"); reason->set_tooltip("Child Process Connected"); scene_tree->clear(); @@ -736,10 +737,8 @@ void ScriptEditorDebugger::stop(){ le_clear->set_disabled(false); le_set->set_disabled(true); - - hide(); - emit_signal("show_debugger",false); - + if (!always_visible) + hide(); } @@ -768,9 +767,7 @@ void ScriptEditorDebugger::_stack_dump_frame_selected() { void ScriptEditorDebugger::_hide_request() { - hide(); emit_signal("show_debugger",false); - } void ScriptEditorDebugger::_output_clear() { @@ -1160,6 +1157,16 @@ void ScriptEditorDebugger:: _error_stack_selected(int p_idx){ } +void ScriptEditorDebugger::set_always_visible(bool p_visible) { + + always_visible=p_visible; + + if (p_visible) + show(); + else + hide(); +} + void ScriptEditorDebugger::_bind_methods() { @@ -1455,6 +1462,7 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor){ add_child(msgdialog); hide(); + always_visible=false; log_forced_visible=false; p_editor->get_undo_redo()->set_method_notify_callback(_method_changeds,this); |
