public static void Postfix() { Dictionary <string, ToolParameterMenu.ToggleState> cancelToolParameters = new Dictionary <string, ToolParameterMenu.ToggleState>(); AccessTools.Method(typeof(FilteredDragTool), "GetDefaultFilters").Invoke(CancelTool.Instance, new object[] { cancelToolParameters }); Utilities.CleanVanillaFilters(cancelToolParameters); AdvancedFilterMenuCancelTool.Instance.DefaultParameters = cancelToolParameters; Dictionary <string, ToolParameterMenu.ToggleState> deconstructToolParameters = new Dictionary <string, ToolParameterMenu.ToggleState>(); AccessTools.Method(typeof(FilteredDragTool), "GetDefaultFilters").Invoke(DeconstructTool.Instance, new object[] { deconstructToolParameters }); Utilities.CleanVanillaFilters(deconstructToolParameters); AdvancedFilterMenuDeconstructTool.Instance.DefaultParameters = deconstructToolParameters; Dictionary <string, ToolParameterMenu.ToggleState> prioritizeToolParameters = new Dictionary <string, ToolParameterMenu.ToggleState>(); AccessTools.Method(typeof(FilteredDragTool), "GetDefaultFilters").Invoke(PrioritizeTool.Instance, new object[] { prioritizeToolParameters }); Utilities.CleanVanillaFilters(prioritizeToolParameters); AdvancedFilterMenuPrioritizeTool.Instance.DefaultParameters = prioritizeToolParameters; Dictionary <string, ToolParameterMenu.ToggleState> emptyPipeToolParameters = new Dictionary <string, ToolParameterMenu.ToggleState>(); AccessTools.Method(typeof(FilteredDragTool), "GetDefaultFilters").Invoke(EmptyPipeTool.Instance, new object[] { emptyPipeToolParameters }); Utilities.CleanVanillaFilters(emptyPipeToolParameters); AdvancedFilterMenuEmptyPipeTool.Instance.DefaultParameters = emptyPipeToolParameters; MultiToolParameterMenu.CreateInstance(); }
public static void Postfix() { MultiToolParameterMenu.CreateInstance(); ToolParameterMenu.ToggleState defaultSelection = BlueprintsAssets.Options.DefaultMenuSelections == DefaultSelections.All ? ToolParameterMenu.ToggleState.On : ToolParameterMenu.ToggleState.Off; SnapshotTool.Instance.DefaultParameters = CreateBlueprintTool.Instance.DefaultParameters = new Dictionary <string, ToolParameterMenu.ToggleState> { { ToolParameterMenu.FILTERLAYERS.WIRES, defaultSelection }, { ToolParameterMenu.FILTERLAYERS.LIQUIDCONDUIT, defaultSelection }, { ToolParameterMenu.FILTERLAYERS.GASCONDUIT, defaultSelection }, { ToolParameterMenu.FILTERLAYERS.SOLIDCONDUIT, defaultSelection }, { ToolParameterMenu.FILTERLAYERS.BUILDINGS, defaultSelection }, { ToolParameterMenu.FILTERLAYERS.LOGIC, defaultSelection }, { ToolParameterMenu.FILTERLAYERS.BACKWALL, defaultSelection }, { ToolParameterMenu.FILTERLAYERS.DIGPLACER, defaultSelection }, //{ BlueprintsStrings.STRING_BLUEPRINTS_MULTIFILTER_GASTILES, defaultSelection }, }; }