summaryrefslogtreecommitdiff
path: root/tools/editor/script_editor_debugger.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-12-12 10:14:13 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-12-12 10:14:13 -0300
commita2d817405e42ec0a23803d9e0633ccd9f5ae1863 (patch)
treea18efeb17221a8c8b87715013a12843078dba3c6 /tools/editor/script_editor_debugger.cpp
parentcd4c3f4d12d91eb23773991f1d2a0895c078a751 (diff)
parentc3db5d951c1ee938a0c789c78a9bb8045ef8605b (diff)
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to 'tools/editor/script_editor_debugger.cpp')
-rw-r--r--tools/editor/script_editor_debugger.cpp21
1 files changed, 17 insertions, 4 deletions
diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp
index cb54968c15..cd265e3704 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();
@@ -770,9 +771,7 @@ void ScriptEditorDebugger::_stack_dump_frame_selected() {
void ScriptEditorDebugger::_hide_request() {
- hide();
emit_signal("show_debugger",false);
-
}
void ScriptEditorDebugger::_output_clear() {
@@ -1162,10 +1161,23 @@ void ScriptEditorDebugger:: _error_stack_selected(int p_idx){
}
+<<<<<<< HEAD
void ScriptEditorDebugger::set_hide_on_stop(bool p_hide) {
hide_on_stop=p_hide;
}
+=======
+void ScriptEditorDebugger::set_always_visible(bool p_visible) {
+
+ always_visible=p_visible;
+
+ if (p_visible)
+ show();
+ else
+ hide();
+}
+
+>>>>>>> c3db5d951c1ee938a0c789c78a9bb8045ef8605b
void ScriptEditorDebugger::_bind_methods() {
@@ -1461,6 +1473,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);