This commit is contained in:
Insality
2025-11-11 01:36:18 +02:00
parent a28b15c35c
commit 138b2613ab
11 changed files with 814 additions and 652 deletions

View File

@@ -3,6 +3,14 @@ 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")
-- Reuse tip: copy the snippet below into another editor script to open a custom store.
-- asset_store.open({
-- store_url = "https://example.com/store.json",
-- info_url = "https://example.com/docs",
-- title = "My Library Store",
-- install_prefs_key = "my_lib.asset_install_folder",
-- default_install_folder = "/my_widgets",
-- })
local M = {}
@@ -75,7 +83,13 @@ function M.get_commands()
label = "[Druid] Asset Store",
locations = { "Edit" },
run = function()
return asset_store.open_asset_store("https://insality.github.io/core/druid_widget_store.json")
return asset_store.open({
store_url = "https://insality.github.io/core/druid_widget_store.json",
info_url = "https://github.com/Insality/core/blob/main/druid_widget_store.md",
title = "Druid Asset Store",
install_prefs_key = "druid.asset_install_folder",
default_install_folder = DEFAULT_ASSET_INSTALL_FOLDER,
})
end
},