Make more properties configurable via console
This commit is contained in:
parent
5802f3e414
commit
cdb2b7b3f4
1 changed files with 42 additions and 0 deletions
|
@ -98,5 +98,47 @@ namespace CustomCosmeticLoader
|
||||||
|
|
||||||
return "Couldn't find cosmetic " + args[0];
|
return "Couldn't find cosmetic " + args[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ConsoleCommand(description = "Enable/disable custom skins on the My Marble widgets", paramsDescription = "[true/false]", hidden = true)]
|
||||||
|
public static string cclInMainMenu(params string[] args)
|
||||||
|
{
|
||||||
|
if (args.Length == 0)
|
||||||
|
return "inMainMenu: " + (Config.inMainMenu ? "true" : "false"); ;
|
||||||
|
|
||||||
|
if (args.Length != 1 || (args[0] != "true" && args[0] != "false"))
|
||||||
|
return "Requires a true or false argument";
|
||||||
|
|
||||||
|
Config.inMainMenu = args[0] == "true";
|
||||||
|
|
||||||
|
return "Custom skins in main menu " + (Config.inMainMenu ? "enabled" : "disabled");
|
||||||
|
}
|
||||||
|
|
||||||
|
[ConsoleCommand(description = "Enable/disable custom skins in the cosmetic menu (for previewing hijack skins)", paramsDescription = "[true/false]", hidden = true)]
|
||||||
|
public static string cclInCosmeticMenu(params string[] args)
|
||||||
|
{
|
||||||
|
if (args.Length == 0)
|
||||||
|
return "inCosmeticMenu: " + (Config.inCosmeticMenu ? "true" : "false"); ;
|
||||||
|
|
||||||
|
if (args.Length != 1 || (args[0] != "true" && args[0] != "false"))
|
||||||
|
return "Requires a true or false argument";
|
||||||
|
|
||||||
|
Config.inCosmeticMenu = args[0] == "true";
|
||||||
|
|
||||||
|
return "Custom skins in cosmetic menu " + (Config.inCosmeticMenu ? "enabled" : "disabled");
|
||||||
|
}
|
||||||
|
|
||||||
|
[ConsoleCommand(description = "Enable/disable showing your custom skin in all replays, regardless of player", paramsDescription = "[true/false]", hidden = true)]
|
||||||
|
public static string cclInAllReplays(params string[] args)
|
||||||
|
{
|
||||||
|
if (args.Length == 0)
|
||||||
|
return "inAllReplays: " + (Config.inAllReplays ? "true" : "false"); ;
|
||||||
|
|
||||||
|
if (args.Length != 1 || (args[0] != "true" && args[0] != "false"))
|
||||||
|
return "Requires a true or false argument";
|
||||||
|
|
||||||
|
Config.inAllReplays = args[0] == "true";
|
||||||
|
|
||||||
|
return "Custom skins in all replays " + (Config.inAllReplays ? "enabled" : "disabled");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue