From 8361b1ce07266350ef6b6a2d34411030b7e587b2 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Tue, 13 Jun 2017 20:03:08 +0000 Subject: Add ability to use custom script templates. Templates will be loaded from .godot/script_templates For now they're disabled for GDNative. Ideas for further improvements: - Add a "Save as Template" option to the script editor, as it can normally only save to res:// - Support more placeholders / custom placeholders --- modules/gdscript/gd_editor.cpp | 13 +++++++++++++ modules/gdscript/gd_script.cpp | 5 +++++ modules/gdscript/gd_script.h | 2 ++ modules/visual_script/visual_script.cpp | 11 +++++++++++ modules/visual_script/visual_script.h | 2 ++ 5 files changed, 33 insertions(+) (limited to 'modules') diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp index eea5b15236..5e3ce31dd6 100644 --- a/modules/gdscript/gd_editor.cpp +++ b/modules/gdscript/gd_editor.cpp @@ -69,6 +69,19 @@ Ref