Manuals
Manuals




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

Шаблони редактора

Ви можете додати власні шаблони проєктів до вікна New Project:

власні шаблони проєктів

Щоб додати одну або кілька нових вкладок із власними шаблонами проєктів, потрібно додати файл welcome.edn до папки .defold у домашній папці користувача:

  • Створіть папку з назвою .defold у домашній папці користувача.
    • У Windows C:\Users\**Your Username**\.defold
    • У macOS /Users/**Your Username**/.defold
    • У Linux ~/.defold
  • Створіть файл welcome.edn у папці .defold

Файл 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}]
    }]
  }
}

Це створить список шаблонів, показаний на знімку екрана вище.

Можна використовувати лише зображення шаблонів, що постачаються з редактором.