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 -- Settings section
table.insert(content_children, editor.ui.label({ table.insert(content_children, editor.ui.label({
spacing = editor.ui.SPACING.MEDIUM,
text = "Installation Folder: " .. install_folder, text = "Installation Folder: " .. install_folder,
color = editor.ui.COLOR.TEXT color = editor.ui.COLOR.TEXT
})) }))
@@ -182,6 +183,7 @@ function M.open_asset_store()
-- Filter section (only show if we have items) -- Filter section (only show if we have items)
if #items > 0 then if #items > 0 then
table.insert(content_children, editor.ui.label({ table.insert(content_children, editor.ui.label({
spacing = editor.ui.SPACING.MEDIUM,
text = "Filters: Author: " .. author_filter .. ", Category: " .. tag_filter, text = "Filters: Author: " .. author_filter .. ", Category: " .. tag_filter,
color = editor.ui.COLOR.TEXT color = editor.ui.COLOR.TEXT
})) }))
@@ -216,8 +218,8 @@ function M.open_asset_store()
return editor.ui.dialog({ return editor.ui.dialog({
title = "Druid Asset Store", title = "Druid Asset Store",
content = editor.ui.vertical({ content = editor.ui.vertical({
spacing = editor.ui.SPACING.MEDIUM, spacing = editor.ui.SPACING.SMALL,
padding = editor.ui.PADDING.MEDIUM, padding = editor.ui.PADDING.NONE,
children = content_children children = content_children
}), }),
buttons = { 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, text = item.title or item.id,
color = editor.ui.COLOR.TEXT color = editor.ui.COLOR.TEXT
}), }),
editor.ui.label({
text = version_text .. "",
color = editor.ui.COLOR.HINT
}),
editor.ui.label({ editor.ui.label({
text = "by " .. (item.author or "Unknown"), text = "by " .. (item.author or "Unknown"),
color = editor.ui.COLOR.HINT color = editor.ui.COLOR.HINT
}), }),
editor.ui.label({ editor.ui.label({
text = version_text .. "" .. size_text, text = "" .. size_text,
color = editor.ui.COLOR.HINT 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
end end
return editor.ui.vertical({ return editor.ui.scroll({
spacing = editor.ui.SPACING.SMALL, content = editor.ui.vertical({
children = widget_items children = widget_items
}) })
})
end end