mirror of
https://github.com/Wyrrrd/Rocket_Turrets.git
synced 2026-04-17 17:34:51 +02:00
Integration work
- Reworked integration with Bob's - Added Booktorio integration - Moved some files around
This commit is contained in:
79
integrations/Booktorio/control.lua
Normal file
79
integrations/Booktorio/control.lua
Normal file
@@ -0,0 +1,79 @@
|
||||
local rocketturrets_thread =
|
||||
{
|
||||
name = {"rocketturrets.menu_rocketturrets"},
|
||||
specified_version = 0,
|
||||
topics =
|
||||
{
|
||||
{
|
||||
name = {"rocketturrets.title_rocketturrets"},
|
||||
topic =
|
||||
{
|
||||
{type = "image", spritename = "booktorio-cover"},
|
||||
{type = "text", text = "info.text_intro"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = {"info.heading_turrets"},
|
||||
topic =
|
||||
{
|
||||
{type = "title", title = {"info.heading_turrets"}},
|
||||
{type = "image", spritename = "booktorio-turrets"},
|
||||
{type = "text", text = "info.text_turrets"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = {"info.heading_ammo"},
|
||||
topic =
|
||||
{
|
||||
{type = "title", title = {"info.heading_ammo"}},
|
||||
{type = "image", spritename = "booktorio-ammo"},
|
||||
{type = "text", text = "info.text_ammo"}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
local rocketturrets_bob_thread =
|
||||
{
|
||||
name = {"rocketturrets.menu_rocketturrets"},
|
||||
specified_version = 0,
|
||||
topics =
|
||||
{
|
||||
{
|
||||
name = {"rocketturrets.title_rocketturrets"},
|
||||
topic =
|
||||
{
|
||||
{type = "image", spritename = "booktorio-cover-bob"},
|
||||
{type = "text", text = "info.text_intro"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = {"info.heading_turrets"},
|
||||
topic =
|
||||
{
|
||||
{type = "image", spritename = "booktorio-turrets-bob"},
|
||||
{type = "text", text = "info.text_turrets_bob"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = {"info.heading_ammo"},
|
||||
topic =
|
||||
{
|
||||
{type = "image", spritename = "booktorio-ammo"},
|
||||
{type = "text", text = "info.text_ammo"}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
local function registerThread()
|
||||
if remote.interfaces["Booktorio"] then
|
||||
remote.call("Booktorio", "add_thread", rocketturrets_thread)
|
||||
if script.active_mods["bobwarfare"] then
|
||||
remote.call("Booktorio", "override_thread", rocketturrets_bob_thread)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
script.on_init(registerThread)
|
||||
script.on_configuration_changed(registerThread)
|
||||
45
integrations/Booktorio/data.lua
Normal file
45
integrations/Booktorio/data.lua
Normal file
@@ -0,0 +1,45 @@
|
||||
if mods["Booktorio"] then
|
||||
data:extend(
|
||||
{
|
||||
{
|
||||
type = "sprite",
|
||||
name = "booktorio-ammo",
|
||||
filename = "__Rocket_Turrets__/graphics/info/ammo.png",
|
||||
width = 104,
|
||||
height = 64,
|
||||
scale = 1
|
||||
},
|
||||
{
|
||||
type = "sprite",
|
||||
name = "booktorio-cover",
|
||||
filename = "__Rocket_Turrets__/graphics/info/cover.png",
|
||||
width = 360,
|
||||
height = 264,
|
||||
scale = 1
|
||||
},
|
||||
{
|
||||
type = "sprite",
|
||||
name = "booktorio-cover-bob",
|
||||
filename = "__Rocket_Turrets__/graphics/info/cover_bob.png",
|
||||
width = 360,
|
||||
height = 264,
|
||||
scale = 1
|
||||
},
|
||||
{
|
||||
type = "sprite",
|
||||
name = "booktorio-turrets",
|
||||
filename = "__Rocket_Turrets__/graphics/info/turrets.png",
|
||||
width = 154,
|
||||
height = 154,
|
||||
scale = 1
|
||||
},
|
||||
{
|
||||
type = "sprite",
|
||||
name = "booktorio-turrets-bob",
|
||||
filename = "__Rocket_Turrets__/graphics/info/turrets_bob.png",
|
||||
width = 698,
|
||||
height = 154,
|
||||
scale = 1
|
||||
}
|
||||
})
|
||||
end
|
||||
Reference in New Issue
Block a user