From 70d4f0f1f8e7e7d19e98d85c1555123faac7917d Mon Sep 17 00:00:00 2001 From: Insality Date: Thu, 10 Mar 2022 20:23:55 +0200 Subject: [PATCH] Rename component template for autogenerate --- README.md | 4 ++-- .../{component_template.lua => component.lua_template} | 0 editor_scripts/create_druid_component.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename editor_scripts/{component_template.lua => component.lua_template} (100%) diff --git a/README.md b/README.md index b59f4da..46405bc 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ no_auto_input = 1 By default, **Druid** will auto check the parent component template name to build the full template name for component. -If for some reason you want to pass the full template name by yourself, you can disable it by setting `druid.no_auto_input` field in _game.project_: +If for some reason you want to pass the full template name by yourself, you can disable it by setting `druid.no_auto_template` field in _game.project_: ``` [druid] @@ -133,7 +133,7 @@ druid.on_window_callback(event) - **[Swipe](docs_md/01-components.md#swipe)** - System Druid component, handle swipe gestures on node -- **[Drag](docs_md/01-components.md#drag)** - System Druid component, handle drag input on node +- **[Drag](docs_md/01-components.md#drag)** - System Druid component, handle drag input on node **Druid** also provides the following *extended* components: diff --git a/editor_scripts/component_template.lua b/editor_scripts/component.lua_template similarity index 100% rename from editor_scripts/component_template.lua rename to editor_scripts/component.lua_template diff --git a/editor_scripts/create_druid_component.py b/editor_scripts/create_druid_component.py index 08a4982..0b7c155 100644 --- a/editor_scripts/create_druid_component.py +++ b/editor_scripts/create_druid_component.py @@ -6,7 +6,7 @@ import sys import deftree current_filepath = os.path.abspath(os.path.dirname(__file__)) -TEMPLATE_FILE = open(current_filepath + "/component_template.lua", "r") +TEMPLATE_FILE = open(current_filepath + "/component.lua_template", "r") component_annotations = "" component_functions = ""