-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmcm.lua
83 lines (68 loc) · 2.96 KB
/
mcm.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
local configPath = "Resdayn Sonorant Apparati"
local config = require("Resdayn Sonorant Apparati.config")
mwse.loadConfig("Resdayn Sonorant Apparati")
local modversion = require("Resdayn Sonorant Apparati\\version")
local version = modversion.version
local function registerVariable(id)
return mwse.mcm.createTableVariable{
id = id,
table = config
}
end
local template = mwse.mcm.createTemplate{
name="Resdayn Sonorant Apparati",
headerImagePath="\\Textures\\RSA\\RSA_logo.tga"}
local page = template:createPage{label="Main Settings", noScroll=false}
page:createCategory{
label = "Resdayn Sonorant Apparati "..version.." by insicht and tewlwolow.\nSettings:",
}
page:createYesNoButton{
label = "Enable debug mode?",
variable = registerVariable("debugLogOn"),
restartRequired=true
}
page:createYesNoButton{
label = "Enable item tooltips? Requires Tooltips Complete.",
variable = registerVariable("tooltipsOn"),
restartRequired=true
}
page:createYesNoButton{
label = "Enable playing hit instruments with mallets?\nFind a mallet (blunt weapon) and swing it at a hit instrument (f.ex. a gong) to play it. Using a different weapon will create noise.\nNote: Big mallets hit deeper notes.",
variable = registerVariable("hitsOn"),
restartRequired=true
}
page:createYesNoButton{
label = "Show names for static objects?",
variable = registerVariable("staticNamesOn"),
restartRequired=true
}
page:createDropdown{
label = "Choose a keybind map to play riffs with:",
options = {
{label = "Numpad 1-2-3 (default)", value = "numpad"},
{label = "Q-W-E", value = "QWE"},
},
variable=registerVariable("riffKeys")
}
page:createKeyBinder{
label = "This key controls the music mode. Press alt+key to bring up the RSA menu or long press to go into improvisation mode.\nPress again in improvisation mode to show the composition menu.\nDefault = N.",
allowCombinations = false,
variable = registerVariable("musicModeKey"),
}
page:createKeyBinder{
label = "This key enables switching between instrument modes (scales) in the improvisation mode.\nDefault = numpad 0.",
allowCombinations = false,
variable = registerVariable("modeToggleKey"),
}
page:createKeyBinder{
label = "This is the cancel key. Press this key in the music mode to stop the currently played riff or composition.\nPress alt+key in the music mode to switch the music mode off\nDefault = X.",
allowCombinations = false,
variable = registerVariable("cancelKey"),
}
page:createKeyBinder{
label = "This key enables vanity mode in the music mode.\nDefault = TAB.",
allowCombinations = false,
variable = registerVariable("vanityKey"),
}
template:saveOnClose(configPath, config)
mwse.mcm.register(template)