// Performance Settings are held in the type which implements the optimisation public override void ExposeData() { base.ExposeData(); Scribe_Values.Look(ref GraphSettings.lineAliasing, "lineAliasing", 7.5f); Scribe_Values.Look(ref GraphSettings.showMax, "showMax"); Scribe_Values.Look(ref GraphSettings.showAxis, "showAxis", true); Scribe_Values.Look(ref GraphSettings.showGrid, "showGrid", true); Scribe_Values.Look(ref timeColour, "timeColour", new Color32(79, 147, 191, 255)); Scribe_Values.Look(ref callsColour, "callsColour", new Color32(10, 10, 255, 255)); Scribe_Values.Look(ref GraphCol, "GraphCol", new Color32(17, 17, 17, 255)); Scribe_Values.Look(ref PathToDnspy, "dnspyPath"); Scribe_Values.Look(ref updatesPerSecond, "updatesPerSecond", 2); Scribe_Values.Look(ref verboseLogging, "verboseLogging"); Scribe_Values.Look(ref disableCleanup, "disableCleanup"); Scribe_Values.Look(ref disableTPSCounter, "disableTPSCounter"); Scribe_Collections.Look(ref SavedPatches_Update, "SavedPatches_Update"); Scribe_Collections.Look(ref SavedPatches_Tick, "SavedPatches_Tick"); // We save/load all performance-related settings here. PerformancePatches.ExposeData(); }
// Performance Settings are held in the type which implements the optimisation public override void ExposeData() { base.ExposeData(); Scribe_Values.Look(ref GraphSettings.showMax, "showMax"); Scribe_Values.Look(ref GraphSettings.showAxis, "showAxis", true); Scribe_Values.Look(ref GraphSettings.showGrid, "showGrid", true); Scribe_Collections.Look(ref Panel_Logs.columns, "columnSettings"); Scribe_Values.Look(ref timeColour, "timeColour", new Color32(79, 147, 191, 255)); Scribe_Values.Look(ref callsColour, "callsColour", new Color32(10, 10, 255, 255)); Scribe_Values.Look(ref GraphCol, "GraphCol", new Color32(17, 17, 17, 255)); Scribe_Values.Look(ref PathToDnspy, "dnspyPath"); Scribe_Values.Look(ref updatesPerSecond, "updatesPerSecond", 2); Scribe_Values.Look(ref verboseLogging, "verboseLogging"); Scribe_Values.Look(ref disableCleanup, "disableCleanup"); Scribe_Values.Look(ref disableTPSCounter, "disableTPSCounter"); Scribe_Values.Look(ref enableLog, "enableDebugLog", false); Scribe_Values.Look(ref showIcon, "showMainTabIcon", true); Scribe_Values.Look(ref longFormNames, "longFormNames", false); Scribe_Collections.Look(ref SavedPatches_Update, "SavedPatches_Update"); Scribe_Collections.Look(ref SavedPatches_Tick, "SavedPatches_Tick"); // We save/load all performance-related settings here. PerformancePatches.ExposeData(); }