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