1
0
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:
Wyrrrd
2020-03-29 14:03:06 +02:00
parent e6164a2d96
commit c36e55c961
15 changed files with 68 additions and 18 deletions
+1 -1
View File
@@ -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"}
+4 -4
View File
@@ -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

+10
View File
@@ -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
+5
View File
@@ -0,0 +1,5 @@
require("integrations.wiki.wiki")
if mods["wiki"] then
wiki_register_mod_wiki(autofilter_wiki)
end
+25
View File
@@ -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"} },
}
}
}