1
0
mirror of https://github.com/Wyrrrd/Autofilter.git synced 2026-04-24 22:40:12 +02:00

Added integration with Booktorio

This commit is contained in:
Wyrrrd
2020-04-03 13:42:39 +02:00
parent c36e55c961
commit bfc4e6aa3d
11 changed files with 108 additions and 17 deletions
+41
View File
@@ -0,0 +1,41 @@
local autofilter_thread =
{
name = {"autofilter.menu_autofilter"},
specified_version = 0,
topics =
{
{
name = {"autofilter.title_autofilter"},
topic =
{
{type = "image", spritename = "autofilter-logo"},
{type = "text", text = "info.page_autofilter_text"}
}
},
{
name = {"info.page_modes_heading"},
topic =
{
{type = "title", title = {"info.page_modes_heading"}},
{type = "subtitle", subtitle = {"info.page_contents_heading"}},
{type = "image", spritename = "autofilter-settings-contents"},
{type = "text", text = "info.page_contents_text"},
{type = "subtitle", subtitle = {"info.page_filter_heading"}},
{type = "image", spritename = "autofilter-settings-filter"},
{type = "text", text = "info.page_filter_text"},
{type = "subtitle", subtitle = {"info.page_none_heading"}},
{type = "image", spritename = "autofilter-settings-none"},
{type = "text", text = "info.page_none_text"}
}
}
}
}
local function registerThread()
if remote.interfaces["Booktorio"] then
remote.call("Booktorio", "add_thread", autofilter_thread)
end
end
script.on_init(registerThread)
script.on_configuration_changed(registerThread)
+37
View File
@@ -0,0 +1,37 @@
if mods["Booktorio"] then
data:extend(
{
{
type = "sprite",
name = "autofilter-logo",
filename = "__Autofilter__/graphics/logo.png",
width = 360,
height = 156,
scale = 1
},
{
type = "sprite",
name = "autofilter-settings-contents",
filename = "__Autofilter__/graphics/settings_contents.png",
width = 400,
height = 128,
scale = 1
},
{
type = "sprite",
name = "autofilter-settings-filter",
filename = "__Autofilter__/graphics/settings_filter.png",
width = 400,
height = 128,
scale = 1
},
{
type = "sprite",
name = "autofilter-settings-none",
filename = "__Autofilter__/graphics/settings_none.png",
width = 400,
height = 128,
scale = 1
}
})
end