mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-14 07:54:41 +08:00
Add power level setting to command line
This commit is contained in:
parent
9a9717ddda
commit
8f7112cb89
1 changed files with 42 additions and 0 deletions
|
@ -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();
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue