-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_options.lua
52 lines (48 loc) · 1.63 KB
/
mod_options.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
local module = ... or D:module("environment_selector")
local levels = {
"bank",
"heat_street",
"apartment",
"bridge",
"diamond_heist",
"slaughter_house",
"suburbia",
"secret_stash",
"hospital",
}
-- menu nodes
for _, level in pairs(levels) do
module:add_config_option("environment_selector_" .. level, "default")
module:add_config_option("environment_selector_" .. level .. "_rain", level == "bridge")
module:add_config_option("environment_selector_" .. level .. "_lightning", level == "bridge")
module:add_menu_option("environment_selector_" .. level, {
type = "multi_choice",
text_id = "debug_" .. level:gsub("heat_", ""),
choices = {
{ "default", "es_loc_default_environment" },
{ "random", "es_loc_random_environment" },
{ "bank", "es_loc_bank_environment" },
{ "heat_street", "es_loc_heat_street_environment" },
{ "apartment", "es_loc_apartment_environment" },
{ "bridge", "es_loc_bridge_environment" },
{ "diamond_heist", "es_loc_diamond_heist_environment" },
{ "slaughter_house", "es_loc_slaughter_house_environment" },
{ "suburbia", "es_loc_suburbia_environment" },
{ "secret_stash", "es_loc_secret_stash_environment" },
{ "hospital", "es_loc_hospital_environment" },
},
default_value = "default",
})
module:add_menu_option("environment_selector_" .. level .. "_rain", {
type = "boolean",
text_id = "es_loc_rain_on_" .. level,
})
module:add_menu_option("environment_selector_" .. level .. "_lightning", {
type = "boolean",
text_id = "es_loc_lightning_on_" .. level,
})
module:add_menu_option("environment_selector_" .. level .. "divider", {
type = "divider",
size = 15,
})
end