This commit is contained in:
Insality
2025-10-26 19:00:39 +02:00
parent 9fba1899da
commit 1f1438b4af
2 changed files with 170 additions and 163 deletions

View File

@@ -175,6 +175,7 @@ function M.open_asset_store()
-- Settings section
table.insert(content_children, editor.ui.label({
spacing = editor.ui.SPACING.MEDIUM,
text = "Installation Folder: " .. install_folder,
color = editor.ui.COLOR.TEXT
}))
@@ -182,6 +183,7 @@ function M.open_asset_store()
-- Filter section (only show if we have items)
if #items > 0 then
table.insert(content_children, editor.ui.label({
spacing = editor.ui.SPACING.MEDIUM,
text = "Filters: Author: " .. author_filter .. ", Category: " .. tag_filter,
color = editor.ui.COLOR.TEXT
}))
@@ -216,8 +218,8 @@ function M.open_asset_store()
return editor.ui.dialog({
title = "Druid Asset Store",
content = editor.ui.vertical({
spacing = editor.ui.SPACING.MEDIUM,
padding = editor.ui.PADDING.MEDIUM,
spacing = editor.ui.SPACING.SMALL,
padding = editor.ui.PADDING.NONE,
children = content_children
}),
buttons = {

View File

@@ -184,12 +184,16 @@ function M.create_widget_item(item, is_installed, on_install, on_open_api)
text = item.title or item.id,
color = editor.ui.COLOR.TEXT
}),
editor.ui.label({
text = version_text .. "",
color = editor.ui.COLOR.HINT
}),
editor.ui.label({
text = "by " .. (item.author or "Unknown"),
color = editor.ui.COLOR.HINT
}),
editor.ui.label({
text = version_text .. "" .. size_text,
text = "" .. size_text,
color = editor.ui.COLOR.HINT
}),
}
@@ -262,10 +266,11 @@ function M.create_widget_list(items, is_installed_func, on_install, on_open_api)
end
end
return editor.ui.vertical({
spacing = editor.ui.SPACING.SMALL,
return editor.ui.scroll({
content = editor.ui.vertical({
children = widget_items
})
})
end