Add power level setting to command line

This commit is contained in:
Otard95 2021-06-03 22:00:09 +02:00
parent 9a9717ddda
commit 8f7112cb89

View file

@ -1293,6 +1293,37 @@ let commandsCopyWordsToClipboard = {
],
};
let commandsMonkeyPowerLevel = {
title: "You control the power",
list: [
{
id: "monkeyPowerLevelOff",
display: "off",
exec: () => UpdateConfig.setMonkeyPowerLevel("off"),
},
{
id: "monkeyPowerLevelMellow",
display: "mellow",
exec: () => UpdateConfig.setMonkeyPowerLevel("mellow"),
},
{
id: "monkeyPowerLevelHigh",
display: "high",
exec: () => UpdateConfig.setMonkeyPowerLevel("high"),
},
{
id: "monkeyPowerLevelUltra",
display: "ultra",
exec: () => UpdateConfig.setMonkeyPowerLevel("ultra"),
},
{
id: "monkeyPowerLevelOver9000",
display: "over 9000",
exec: () => UpdateConfig.setMonkeyPowerLevel(">9000"),
},
],
};
export let defaultCommands = {
title: "",
list: [
@ -2052,6 +2083,17 @@ export let defaultCommands = {
UpdateConfig.setMonkeyPowerUnlocked(false);
},
},
{
id: "monkeyPowerLevel",
display: "Is the monkey power to much? You can tone it down.",
alias: "monkeypwrlvl",
available: () => Config.monkeyPowerUnlocked,
subgroup: true,
exec: () => {
current.push(commandsMonkeyPowerLevel);
Commandline.show();
},
},
],
};