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