From cdb2b7b3f49efe28912fbf9e89ab2b5a37cbbee8 Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Sat, 9 Sep 2023 19:55:19 -0400 Subject: [PATCH] Make more properties configurable via console --- ConsoleCommands.cs | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/ConsoleCommands.cs b/ConsoleCommands.cs index a88bfe1..ac9d1ed 100644 --- a/ConsoleCommands.cs +++ b/ConsoleCommands.cs @@ -98,5 +98,47 @@ namespace CustomCosmeticLoader 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"); + } } }