-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLobbyOptions.lua
86 lines (81 loc) · 2.52 KB
/
LobbyOptions.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
-- 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 = "scenarios",
name = "scenarios",
desc = "",
type = "list",
def = "easy",
items =
{
{
key = "easy", --put the options in skirmish_directory/KEY.lua
name = "Easy mode", --will be displayed as radio box to click
desc = "lalala", --unused
},
{
key = "medium",
name = "Medium Doh",
desc = "more lalala",
},
},
},
{
key = "skirmish_directory",
name = "skirmish_directory",
desc = "directory where skirmish defintion files are located",
type = "string",
def = "skirmish",
},
{
key = "bg_image",
name = "bg_image",
desc = "BackgroundImage to be put on panes or such",
type = "string",
--png/bmp should be fine, don't use transparency ( will look weird wrt controls )
--the controls on startpage are v/h centered, best to leave around 40px "free" space (no text on bg)
def = "bitmaps/lobby_background.png",
},
{
key = "icon",
name = "icon",
desc = "application icon",
type = "string",
def = "icons/sl_app.png", --bmp/png
},
{
key = "default_ai",
name = "default_ai",
desc = "default_ai",
type = "string",
def = "C.R.A.I.G.",
},
{
key = "help_url",
name = "help_url",
desc = "the url that is opened in browser if help button is clicked",
type = "string",
def = "http://spring1944.net/phpBB3",
}
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
}
return options