Skip to content

Commit

Permalink
add street images
Browse files Browse the repository at this point in the history
  • Loading branch information
eisfeuer committed Dec 4, 2020
1 parent dcdee0d commit 9cb0e47
Show file tree
Hide file tree
Showing 18 changed files with 72 additions and 20 deletions.
6 changes: 3 additions & 3 deletions mod/res/config/street/modutram_town_xs_new_era_a.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ return {
streetWidth = 6.0,
sidewalkWidth = 1.0,
sidewalkHeight = .00,
yearFrom = 1925,
yearFrom = 0,
yearTo = 0,
upgrade = false,
country = false,
speed = 30.0,
type = "new small",
name = _("Small street"),
desc = _("Two-lane street with modern catenary poles (speed limit %2%)."),
icon = "ui/streets/standard/country_small_new.tga",
desc = _("oneway_era_a_desc"),
icon = "ui/streets/modular_tram_station/tiny_era_a.tga",
categories = { "urban" },
borderGroundTex = "street_border.lua",
materials = {
Expand Down
6 changes: 3 additions & 3 deletions mod/res/config/street/modutram_town_xs_new_era_b.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ return {
streetWidth = 6.0,
sidewalkWidth = 1.0,
sidewalkHeight = .00,
yearFrom = 1925,
yearFrom = 1920,
yearTo = 0,
upgrade = false,
country = false,
speed = 30.0,
type = "new small",
name = _("Small street"),
desc = _("Two-lane street with new catenary poles (speed limit %2%)."),
icon = "ui/streets/standard/country_small_new.tga",
desc = _("oneway_era_b_desc"),
icon = "ui/streets/modular_tram_station/tiny_era_b.tga",
categories = { "urban" },
borderGroundTex = "street_border.lua",
materials = {
Expand Down
6 changes: 3 additions & 3 deletions mod/res/config/street/modutram_town_xs_new_era_c.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ return {
streetWidth = 6.0,
sidewalkWidth = 1.0,
sidewalkHeight = .00,
yearFrom = 1925,
yearFrom = 1980,
yearTo = 0,
upgrade = false,
country = false,
speed = 30.0,
type = "new small",
name = _("Small street"),
desc = _("Two-lane street with modern catenary poles (speed limit %2%)."),
icon = "ui/streets/standard/country_small_new.tga",
desc = _("oneway_era_c_desc"),
icon = "ui/streets/modular_tram_station/tiny_era_c.tga",
categories = { "urban" },
borderGroundTex = "street_border.lua",
materials = {
Expand Down
6 changes: 3 additions & 3 deletions mod/res/config/street/modutram_town_xs_one_way_new_era_a.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ return {
streetWidth = 3.0,
sidewalkWidth = 1.0,
sidewalkHeight = .00,
yearFrom = 1925,
yearFrom = 0,
yearTo = 0,
upgrade = false,
country = false,
speed = 30.0,
type = "one way new small",
name = _("Small one-way street"),
desc = _("One-lane one-way street with modern catenary poles (speed limit %2%)."),
icon = "ui/streets/standard/country_small_one_way_new.tga",
desc = _("street_era_a_desc"),
icon = "ui/streets/modular_tram_station/oneway_era_a.tga",
categories = { "one-way" },
borderGroundTex = "street_border.lua",
materials = {
Expand Down
6 changes: 3 additions & 3 deletions mod/res/config/street/modutram_town_xs_one_way_new_era_b.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ return {
streetWidth = 3.0,
sidewalkWidth = 1.0,
sidewalkHeight = .00,
yearFrom = 1925,
yearFrom = 1920,
yearTo = 0,
upgrade = false,
country = false,
speed = 30.0,
type = "one way new small",
name = _("Small one-way street"),
desc = _("One-lane one-way street with new catenary poles (speed limit %2%)."),
icon = "ui/streets/standard/country_small_one_way_new.tga",
desc = _("street_era_b_desc"),
icon = "ui/streets/modular_tram_station/oneway_era_b.tga",
categories = { "one-way" },
borderGroundTex = "street_border.lua",
materials = {
Expand Down
6 changes: 3 additions & 3 deletions mod/res/config/street/modutram_town_xs_one_way_new_era_c.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ return {
streetWidth = 3.0,
sidewalkWidth = 1.0,
sidewalkHeight = .00,
yearFrom = 1925,
yearFrom = 1980,
yearTo = 0,
upgrade = false,
country = false,
speed = 30.0,
type = "one way new small",
name = _("Small one-way street"),
desc = _("One-lane one-way street with modern catenary poles (speed limit %2%)."),
icon = "ui/streets/standard/country_small_one_way_new.tga",
desc = _("street_era_c_desc"),
icon = "ui/streets/modular_tram_station/oneway_era_c.tga",
categories = { "one-way" },
borderGroundTex = "street_border.lua",
materials = {
Expand Down
18 changes: 18 additions & 0 deletions mod/res/construction/modules/tram/bus_down.module
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@ function data()

gridModule:addAssetSlot(result, 1, "modutram_asset_catenary", transf.mul(transform, transf.transl({x = 0, y = 0, z = 1})))

if not gridModule:hasNeighborTop() then
gridModule:addAssetSlot(
result,
3,
"modutram_asset_tram_street_connection",
transf.mul(transform, transf.transl({x = 0, y = result.modutram.config.gridModuleLength / 2, z = 0})),
{gridModule:getOption("widthInCm", 1) / 200, gridModule:getOption("widthInCm", 1) / 200, 0, 10})
end

if not gridModule:hasNeighborBottom() then
gridModule:addAssetSlot(
result,
4,
"modutram_asset_tram_street_connection",
transf.mul(transform, transf.rotZTransl(math.pi, {x = 0, y = -result.modutram.config.gridModuleLength / 2, z = 0})),
{gridModule:getOption("widthInCm", 1) / 200, gridModule:getOption("widthInCm", 1) / 200, 0, 10})
end

local groundFace = makeGroundFaceFromGridModule(gridModule, transform)
makeLot(result, groundFace)
makeCollider(result, gridModule)
Expand Down
20 changes: 20 additions & 0 deletions mod/res/construction/modules/tram/bus_up.module
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ function data()
updateFn = function(result, transform, tag, slotId, addModelFn, params)
local gridModule = result.modutram:getModule(slotId)

gridModule:addAssetSlot(result, 1, "modutram_asset_catenary", transf.mul(transform, transf.transl({x = 0, y = 0, z = 1})))

if not gridModule:hasNeighborTop() then
gridModule:addAssetSlot(
result,
3,
"modutram_asset_tram_street_connection",
transf.mul(transform, transf.transl({x = 0, y = result.modutram.config.gridModuleLength / 2, z = 0})),
{gridModule:getOption("widthInCm", 1) / 200, gridModule:getOption("widthInCm", 1) / 200, 0, 10})
end

if not gridModule:hasNeighborBottom() then
gridModule:addAssetSlot(
result,
4,
"modutram_asset_tram_street_connection",
transf.mul(transform, transf.rotZTransl(math.pi, {x = 0, y = -result.modutram.config.gridModuleLength / 2, z = 0})),
{gridModule:getOption("widthInCm", 1) / 200, gridModule:getOption("widthInCm", 1) / 200, 0, 10})
end

local groundFace = makeGroundFaceFromGridModule(gridModule, transform)
makeLot(result, groundFace)
makeCollider(result, gridModule)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 16 additions & 2 deletions mod/strings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ function data()
["module_sign_name"] = "Sign",
["module_station_sign_name"] = "Station name sign",
-- Bus Stops
["bus_stop"] = "Bus Stop"
["bus_stop"] = "Bus Stop",
-- Streets
["street_era_a_desc"] = "Two-lane street with modern catenary poles (speed limit %2%).",
["street_era_b_desc"] = "Two-lane street with usual catenary poles (speed limit %2%).",
["street_era_c_desc"] = "Two-lane street with modern catenary poles (speed limit %2%).",
["oneway_era_a_desc"] = "One-way street with modern historical poles (speed limit %2%).",
["oneway_era_b_desc"] = "One-way street with usual catenary poles (speed limit %2%).",
["oneway_era_c_desc"] = "One-way street with modern catenary poles (speed limit %2%)."
},
de = {
["Modular Tram Station"] = "Modulare Straßenbahnhaltestelle",
Expand Down Expand Up @@ -125,7 +132,14 @@ function data()
["module_sign_name"] = "Haltestellenschild",
["module_station_sign_name"] = "Schild mit Stationsnamen",
-- Bus Stops
["bus_stop"] = "Bushaltestelle"
["bus_stop"] = "Bushaltestelle",
-- Streets
["street_era_a_desc"] = "Zweispurige Straße mit historischen Masten (Geschwindigkeit %2%)..",
["street_era_b_desc"] = "Zweispurige Straße mit normalen Masten (Geschwindigkeit %2%).",
["street_era_c_desc"] = "Zweispurige Straße mit modernen Masten (Geschwindigkeit %2%).",
["oneway_era_a_desc"] = "Einbahnstraße mit historischen Masten (Geschwindigkeit %2%).",
["oneway_era_b_desc"] = "Einbahnstraße mit normalen Masten (Geschwindigkeit %2%).",
["oneway_era_c_desc"] = "Einbahnstraße mit modernen Masten (Geschwindigkeit %2%)."
},
}
end
Expand Down
Binary file added work/4-Modutram-Basis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/preview_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified work/ui_imagees/ui_images.xcf
Binary file not shown.

0 comments on commit 9cb0e47

Please sign in to comment.