summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorgeequlim <geequlim@gmail.com>2017-06-25 17:20:01 +0800
committergeequlim <geequlim@gmail.com>2017-06-27 12:55:16 +0800
commit6687484958412ff0f3bd6d97cbc1fcebc7ae64d2 (patch)
treefdeae7b3668b0ff1d7c84f38741a9762d224f260 /modules/gdscript
parent87fd71244be7b185f0525c6b33850f7075b1425a (diff)
Better user expirence with external text editors.
Implements open_in_external_editor for subclasses of ScriptLanguage. Add option 'Debug with external editor' to debug menu to control the behavoir of script opened by editor.
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gd_script.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gd_script.h b/modules/gdscript/gd_script.h
index ebef4fed74..0add348ca9 100644
--- a/modules/gdscript/gd_script.h
+++ b/modules/gdscript/gd_script.h
@@ -389,6 +389,7 @@ public:
virtual bool can_inherit_from_file() { return true; }
virtual int find_function(const String &p_function, const String &p_code) const;
virtual String make_function(const String &p_class, const String &p_name, const PoolStringArray &p_args) const;
+ virtual Error open_in_external_editor(const Ref<Script> &p_script, int p_line, int p_col) { return OK; }
virtual Error complete_code(const String &p_code, const String &p_base_path, Object *p_owner, List<String> *r_options, String &r_call_hint);
#ifdef TOOLS_ENABLED
virtual Error lookup_code(const String &p_code, const String &p_symbol, const String &p_base_path, Object *p_owner, LookupResult &r_result);