mirror of
https://github.com/Wyrrrd/Autofilter.git
synced 2026-06-12 18:58:31 +02:00
Added wiki integration
Also moved graphics to be used by both integrations
This commit is contained in:
@@ -15,7 +15,7 @@ end
|
||||
|
||||
function autofilter_page_content(page_name, player_index, element)
|
||||
if page_name == "autofilter" then
|
||||
element.add{type="button", name="image_autofilter", style="autofilter_thumbnail"}
|
||||
element.add{type="button", name="image_autofilter", style="autofilter_logo"}
|
||||
element.add{type="label", name="text_autofilter", caption={"autofilter.page_autofilter_text"}}
|
||||
element.add{type="label", name="heading_modes", caption={"autofilter.page_modes_heading"}, style="heading_1_label"}
|
||||
element.add{type="label", name="heading_contents", caption={"autofilter.page_contents_heading"}, style="heading_2_label"}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if mods["informatron"] then
|
||||
informatron_make_image("autofilter_thumbnail", "__Autofilter__/integrations/informatron/thumbnail.png", 360, 156)
|
||||
informatron_make_image("autofilter_settings_contents", "__Autofilter__/integrations/informatron/settings_contents.png", 400, 128)
|
||||
informatron_make_image("autofilter_settings_filter", "__Autofilter__/integrations/informatron/settings_filter.png", 400, 128)
|
||||
informatron_make_image("autofilter_settings_none", "__Autofilter__/integrations/informatron/settings_none.png", 400, 128)
|
||||
informatron_make_image("autofilter_logo", "__Autofilter__/graphics/logo.png", 360, 156)
|
||||
informatron_make_image("autofilter_settings_contents", "__Autofilter__/graphics/settings_contents.png", 400, 128)
|
||||
informatron_make_image("autofilter_settings_filter", "__Autofilter__/graphics/settings_filter.png", 400, 128)
|
||||
informatron_make_image("autofilter_settings_none", "__Autofilter__/graphics/settings_none.png", 400, 128)
|
||||
end
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 19 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 80 KiB |
@@ -0,0 +1,10 @@
|
||||
require("integrations.wiki.wiki")
|
||||
|
||||
if script.active_mods["wiki"] then
|
||||
local initialize_wiki = function()
|
||||
remote.call("wiki","register_mod_wiki",autofilter_wiki)
|
||||
end
|
||||
|
||||
script.on_init(function() initialize_wiki() end)
|
||||
script.on_load(function() initialize_wiki() end)
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
require("integrations.wiki.wiki")
|
||||
|
||||
if mods["wiki"] then
|
||||
wiki_register_mod_wiki(autofilter_wiki)
|
||||
end
|
||||
@@ -0,0 +1,25 @@
|
||||
autofilter_wiki =
|
||||
{
|
||||
name = "Autofilter",
|
||||
title = "Autofilter",
|
||||
mod_path = "__Autofilter__",
|
||||
{
|
||||
name = {"autofilter.title_autofilter"},
|
||||
topic = {
|
||||
{type = "image", name = "image_autofilter", filepath = "__Autofilter__/graphics/logo.png", width = 360, height = 156, scale = 1},
|
||||
{type = "text", text = {"autofilter.page_autofilter_text"} },
|
||||
{type = "line"},
|
||||
{type = "title", title = {"autofilter.page_contents_heading"} },
|
||||
{type = "image", name = "image_contents", filepath = "__Autofilter__/graphics/settings_contents.png", width = 400, height = 128, scale = 0.9},
|
||||
{type = "text", text = {"autofilter.page_contents_text"} },
|
||||
{type = "line"},
|
||||
{type = "title", title = {"autofilter.page_filter_heading"} },
|
||||
{type = "image", name = "image_filter", filepath = "__Autofilter__/graphics/settings_filter.png", width = 400, height = 128, scale = 0.9},
|
||||
{type = "text", text = {"autofilter.page_filter_text"} },
|
||||
{type = "line"},
|
||||
{type = "title", title = {"autofilter.page_none_heading"} },
|
||||
{type = "image", name = "image_none", filepath = "__Autofilter__/graphics/settings_none.png", width = 400, height = 128, scale = 0.9},
|
||||
{type = "text", text = {"autofilter.page_none_text"} },
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user