1
0
mirror of https://github.com/Wyrrrd/Rocket_Turrets.git synced 2026-03-25 15:19:49 +01:00

Added wiki integration

Also moved graphics to be used by both info integrations
This commit is contained in:
Wyrrrd
2020-03-29 14:46:31 +02:00
parent e8620f14aa
commit 8f4dcf4491
16 changed files with 87 additions and 9 deletions

View File

@@ -1,36 +0,0 @@
if script.active_mods["informatron"] then
remote.add_interface("rocketturrets", {
informatron_menu = function(data)
return rocketturrets_menu(data.player_index)
end,
informatron_page_content = function(data)
return rocketturrets_page_content(data.page_name, data.player_index, data.element)
end
})
end
function rocketturrets_menu(player_index)
return {}
end
function rocketturrets_page_content(page_name, player_index, element)
if page_name == "rocketturrets" then
if script.active_mods["bobplates"] then
element.add{type="button", name="image_cover", style="rocketturrets_cover_bob"}
element.add{type="label", name="text_intro", caption={"rocketturrets.text_intro"}}
element.add{type="label", name="heading_turrets", caption={"rocketturrets.heading_turrets"}, style="heading_1_label"}
element.add{type="button", name="image_turrets", style="rocketturrets_turrets_bob"}
element.add{type="label", name="text_turrets", caption={"rocketturrets.text_turrets_bob"}}
else
element.add{type="button", name="image_cover", style="rocketturrets_cover"}
element.add{type="label", name="text_intro", caption={"rocketturrets.text_intro"}}
element.add{type="label", name="heading_turrets", caption={"rocketturrets.heading_turrets"}, style="heading_1_label"}
element.add{type="button", name="image_turrets", style="rocketturrets_turrets"}
element.add{type="label", name="text_turrets", caption={"rocketturrets.text_turrets"}}
end
-- the following is the same with and without bobplates
element.add{type="label", name="heading_ammo", caption={"rocketturrets.heading_ammo"}, style="heading_1_label"}
element.add{type="button", name="image_ammo", style="rocketturrets_ammo"}
element.add{type="label", name="text_ammo", caption={"rocketturrets.text_ammo"}}
end
end