This translation is community contributed and may not be up to date. We only maintain the English version of the documentation. Read this manual in English
您可以在新建项目窗口中添加自己的自定义项目模板:
为了添加一个或多个带有自定义项目模板的新标签页,您需要在用户主目录的 .defold
文件夹中添加一个 welcome.edn
文件:
.defold
的文件夹。
C:\Users\**您的用户名**\.defold
/Users/**您的用户名**/.defold
~/.defold
.defold
文件夹中创建一个 welcome.edn
文件。welcome.edn
文件使用可扩展数据表示法(Extensible Data Notation)格式。示例:
{:new-project
{:categories [
{:label "My Templates"
:templates [
{:name "My project"
:description "My template with everything set up the way I want it."
:image "empty.svg"
:zip-url "https://github.com/britzl/template-project/archive/master.zip"
:skip-root? true},
{:name "My other project"
:description "My other template with everything set up the way I want it."
:image "empty.svg"
:zip-url "https://github.com/britzl/template-other-project/archive/master.zip"
:skip-root? true}]
}]
}
}
这将创建如上截图所示的模板列表。
您只能使用随编辑器一起提供的模板图片。
Did you spot an error or do you have a suggestion? Please let us know on GitHub!
GITHUB