mirror of
https://github.com/Wyrrrd/Rocket_Turrets.git
synced 2026-03-26 07:39:48 +01:00
Added wiki integration
Also moved graphics to be used by both info integrations
This commit is contained in:
@@ -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
|
||||
@@ -1,7 +0,0 @@
|
||||
if mods["informatron"] then
|
||||
informatron_make_image("rocketturrets_cover", "__Rocket_Turrets__/integrations/informatron/graphics/cover.png", 380, 264)
|
||||
informatron_make_image("rocketturrets_cover_bob", "__Rocket_Turrets__/integrations/informatron/graphics/cover_bob.png", 380, 264)
|
||||
informatron_make_image("rocketturrets_turrets", "__Rocket_Turrets__/integrations/informatron/graphics/turrets.png", 154, 154)
|
||||
informatron_make_image("rocketturrets_turrets_bob", "__Rocket_Turrets__/integrations/informatron/graphics/turrets_bob.png", 698, 154)
|
||||
informatron_make_image("rocketturrets_ammo", "__Rocket_Turrets__/integrations/informatron/graphics/ammo.png", 104, 64)
|
||||
end
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 210 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 202 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 19 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 170 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 437 KiB |
Reference in New Issue
Block a user