mirror of
https://github.com/Wyrrrd/Autofilter.git
synced 2026-04-23 22:23:18 +02:00
Multiple things
- Fixed changelog (again) - Added integration for Informatron - Moved some capitalisation around - Added mode=none check for performance
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
if script.active_mods["informatron"] then
|
||||
remote.add_interface("autofilter", {
|
||||
informatron_menu = function(data)
|
||||
return autofilter_menu(data.player_index)
|
||||
end,
|
||||
informatron_page_content = function(data)
|
||||
return autofilter_page_content(data.page_name, data.player_index, data.element)
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
function autofilter_menu(player_index)
|
||||
return {
|
||||
mode=1,
|
||||
}
|
||||
end
|
||||
|
||||
function autofilter_page_content(page_name, player_index, element)
|
||||
if page_name == "autofilter" then
|
||||
element.add{type="label", name="text_autofilter", caption={"autofilter.page_autofilter_text"}}
|
||||
local image_container = element.add{type="button", name="image_autofilter", style="autofilter_thumbnail"}
|
||||
image_container.style.horizontal_align = "center"
|
||||
end
|
||||
if page_name == "mode" then
|
||||
element.add{type="label", name="heading_contents", caption={"autofilter.page_contents_heading"}, style="heading_1_label"}
|
||||
element.add{type="button", name="image_contents", style="autofilter_settings_contents"}
|
||||
element.add{type="label", name="text_contents", caption={"autofilter.page_contents_text"}}
|
||||
element.add{type="label", name="heading_filter", caption={"autofilter.page_filter_heading"}, style="heading_1_label"}
|
||||
element.add{type="button", name="image_filter", style="autofilter_settings_filter"}
|
||||
element.add{type="label", name="text_filter", caption={"autofilter.page_filter_text"}}
|
||||
element.add{type="label", name="heading_none", caption={"autofilter.page_none_heading"}, style="heading_1_label"}
|
||||
element.add{type="button", name="image_none", style="autofilter_settings_none"}
|
||||
element.add{type="label", name="text_none", caption={"autofilter.page_none_text"}}
|
||||
end
|
||||
end
|
||||
@@ -0,0 +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)
|
||||
end
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
Reference in New Issue
Block a user