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