mirror of
https://github.com/Insality/druid.git
synced 2025-11-26 19:00:50 +01:00
Asset store WIP
This commit is contained in:
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user