Asset store WIP

This commit is contained in:
Insality
2025-10-18 18:50:26 +03:00
parent 403d1e0ace
commit 8786f6e5b9
4 changed files with 678 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ local assign_layers = require("druid.editor_scripts.assign_layers")
local create_druid_widget = require("druid.editor_scripts.create_druid_widget")
local create_druid_gui_script = require("druid.editor_scripts.create_druid_gui_script")
local druid_settings = require("druid.editor_scripts.druid_settings")
local asset_store = require("druid.editor_scripts.core.asset_store")
local M = {}
@@ -18,6 +19,10 @@ function M.get_prefs_schema()
["druid.gui_script_template_path"] = editor.prefs.schema.string({
default = DEFAULT_GUI_SCRIPT_TEMPLATE_PATH,
scope = editor.prefs.SCOPE.PROJECT
}),
["druid.asset_install_folder"] = editor.prefs.schema.string({
default = "/widget",
scope = editor.prefs.SCOPE.PROJECT
})
}
end
@@ -65,6 +70,14 @@ function M.get_commands()
end
},
{
label = "[Druid] Asset Store",
locations = { "Edit" },
run = function()
return asset_store.open_asset_store()
end
},
{
label = "[Druid] Settings",
locations = { "Edit" },