-
Notifications
You must be signed in to change notification settings - Fork 8
/
settings.lua
72 lines (62 loc) · 3.09 KB
/
settings.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--used landfill type setting
local constants = require('modules/constants')
local Table = require('__stdlib__/stdlib/utils/table')
local isLandfillPaintingLoaded = mods["LandfillPainting"]
local isSpaceExplorationLoaded = mods["space-exploration"]
local lanfillTypes = { constants.vanillaLandfill }
if (isLandfillPaintingLoaded) then
Table.each(constants.paintingWithLandfillLandfillTypes, function(landfillType)
table.insert(lanfillTypes, landfillType)
end)
end
local usedLandfillType = {
type = "string-setting",
name = "WaterGhostUsedLandfillType",
setting_type = "runtime-global",
default_value = constants.vanillaLandfill,
allowed_values = lanfillTypes,
localised_name = "Used Landfill Type",
localised_description = "The type of landfill that will be placed under dummy entities"
}
data:extend({ usedLandfillType })
local WaterGhostUpdateDelay = {
type = "int-setting",
name = "WaterGhostUpdateDelay",
setting_type = "runtime-global",
default_value = constants.defaultUpdateDelay,
minimum_value = 1,
maximum_value = 3600,
localised_name = "Update Delay",
localised_description = "Delay between water ghost updates in ticks (60 tick = 1 second).\nThe mod will try to place ghost/check if water ghosts can be turned into real ghosts every uptate.\nLowering this will decrease the time it takes for ghost landfill to get added/to convert water ghosts to real ghosts, at the cost of performance.",
}
data:extend({ WaterGhostUpdateDelay })
data:extend({ {
type = "int-setting",
name = "WaterGhostMaxWaterGhostsPerUpdate",
setting_type = "runtime-global",
default_value = constants.defaultMaxWaterGhostUpdatesPerUpdate,
minimum_value = 1,
maximum_value = 10000,
localised_name = "Water Ghosts Per Update",
localised_description = "The maximum amount of water ghosts that will be updated per update.\nLower value reduce performace of water ghost updates impact, but it may take several updates to update all water ghosts.",
} })
data:extend({ {
type = "bool-setting",
name = "UpdateAllBlueprintsInBooks",
setting_type = "runtime-per-user",
default_value = true,
localised_name = "Update All Blueprints In Books",
localised_description = "Update all blueprints in a book when updating that book.\nIf this is unchecked, only the active blueprint is updated. The active blueprint is the one visible under the cursor.\nIf checked, updates are applied recursively to all books within the book as well."
}})
if (isSpaceExplorationLoaded) then
data:extend
{ {
type = "string-setting",
name = "WaterGhostUsedSpaceLandfillType",
setting_type = "runtime-global",
default_value = constants.spaceLandfillTypes[1],
allowed_values = constants.spaceLandfillTypes,
localised_name = "Used Space Platform",
localised_description = "The type of space platform that will be placed under dummy entities placed on empty space"
} }
end