-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathModOptions.lua
42 lines (34 loc) · 1.27 KB
/
ModOptions.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
-- Wiki: http://springrts.com/wiki/Modoptions.lua
-- Custom Options Definition Table format
-- NOTES:
-- - using an enumerated table lets you specify the options order
--
-- These keywords must be lowercase for LuaParser to read them.
--
-- key: the string used in the script.txt
-- name: the displayed name
-- desc: the description (could be used as a tooltip)
-- type: the option type
-- def: the default value;
-- min: minimum value for number options
-- max: maximum value for number options
-- step: quantization step, aligned to the def value
-- maxlen: the maximum string length for string options
-- items: array of item strings for list options
-- scope: "all", "player", "team", "allyteam" <<< not supported yet >>>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local options = {
{
key = "play_mode",
name = "Play Mode",
desc = "Turn off to enable dev mode",
type = "bool",
def = 1,
min = 0,
max = 1,
step = 1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
},
}
return options