local constructionutil = require "constructionutil" function data() local list_models = { "tree/azalea.mdl", "tree/common_hazel.mdl", "tree/elderberry.mdl", "tree/european_linden.mdl", "tree/hedge.mdl", "tree/red_delicious_apple.mdl", "tree/scots_pine.mdl", "tree/shingle_oak.mdl", "tree/sugar_maple.mdl", "E:/Steam/steamapps/common/Transport Fever 2/mods/L_Baum_spacky_2247194383_1/res/models/model/tree/tree_european_birken" } local list_values = { _("Azalea"), _("Common Hazel"), _("Elderberry"), _("European Linden"), _("Hedge"), _("Red Delicious Apple"), _("Scots Pine"), _("Shingle Oak"), _("Sugar Maple"), _("Europäische Birke") } local function makeParams() return { { key = "paramKey", name = "Tree Type", values = list_values, uiType = "COMBOBOX", defaultIndex = 0 } } end return { type = "ASSET_DEFAULT", description = { name = _("Non-Auto-Removable Temperate Trees"), description = _("Place a single, non-auto-removable temperate trees from a list of default models.") }, availability = { }, buildMode = "MULTI", categories = { "Non-Auto-Removable" }, order = 105, skipCollision = false, autoRemovable = false, params = makeParams(), updateFn = function(params) local result = { } local indexNum = params.paramKey + 1 local modelID = list_models[indexNum] result.models = { { id = modelID, transf = constructionutil.rotateTransf(params, { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }), } } result.terrainAlignmentLists = { { type = "EQUAL", faces = { } } } return result end } end