aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/script_editor_plugin.h
diff options
context:
space:
mode:
authorJuan Linietsky2016-07-06 20:35:49 -0300
committerJuan Linietsky2016-07-06 20:36:37 -0300
commita78226c32ceb0614e079f5cdd5653af7be729dac (patch)
tree998cfe40fe7f4239c3200f654148e0282c826796 /tools/editor/plugins/script_editor_plugin.h
parente4b7a45a381f028752163d0f57662baa0def0301 (diff)
downloadgodot-a78226c32ceb0614e079f5cdd5653af7be729dac.tar.gz
godot-a78226c32ceb0614e079f5cdd5653af7be729dac.tar.zst
godot-a78226c32ceb0614e079f5cdd5653af7be729dac.zip
Only allow built-in scripts to be edited when the scene they belong to is loaded, closes #5403
Diffstat (limited to '')
-rw-r--r--tools/editor/plugins/script_editor_plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.h b/tools/editor/plugins/script_editor_plugin.h
index 85412087b..2e6e2c035 100644
--- a/tools/editor/plugins/script_editor_plugin.h
+++ b/tools/editor/plugins/script_editor_plugin.h
@@ -234,6 +234,8 @@ class ScriptEditor : public VBoxContainer {
bool _test_script_times_on_disk(Ref<Script> p_for_script=Ref<Script>());
+ void _close_tab(int p_idx);
+
void _close_current_tab();
bool grab_focus_block;
@@ -331,6 +333,8 @@ public:
virtual void edited_scene_changed();
+ void close_builtin_scripts_from_scene(const String& p_scene);
+
ScriptEditorDebugger *get_debugger() { return debugger; }
void set_live_auto_reload_running_scripts(bool p_enabled);