12345678910111213141516171819202122232425262728293031323334353637 |
- function dlxtrains_cargo.get_crate_texture_count()
- return 3
- end
- function dlxtrains_cargo.get_crate_texture(index)
- local crate_textures = {
- "dlxtrains_cargo_wooden_crate_acacia_wood.png",
- "dlxtrains_cargo_wooden_crate_junglewood.png",
- "dlxtrains_cargo_wooden_crate_pine_wood.png",
- }
- local texture = crate_textures[1]
- if index > 1 and index <= dlxtrains_cargo.get_crate_texture_count() then
- texture = crate_textures[index]
- end
- return dlxtrains.add_modifier_escaping(texture)
- end
- function dlxtrains_cargo.get_shipping_container_livery_count()
- return 18
- end
- function dlxtrains_cargo.get_shipping_container_texture(livery_id)
- local texture = "dlxtrains_cargo_shipping_container_livery_"..livery_id..".png"
- return dlxtrains.add_modifier_escaping(texture)
- end
- function dlxtrains_cargo.get_tank_container_livery_count()
- return 14
- end
- function dlxtrains_cargo.get_tank_container_texture(livery_id)
- local texture = "dlxtrains_cargo_tank_container_livery_"..livery_id..".png"
- return dlxtrains.add_modifier_escaping(texture)
- end
|