public void SaveRenderSettings() { savePanelToRenderSettings(); if (!renderSettings.Equals(savedRenderSettings) || residueUpdateType != ResidueUpdateType.ID) { savedRenderSettings = renderSettings.Clone(); saveSettingsCallback(residueIDs, renderSettings, residueUpdateType); } }
public void Initialise(List <int> residueIDs, string residueName, List <string> atomNames, ResidueUpdateType residueUpdateType, ResidueRenderSettings renderSettings, SaveCustomResidueSettingsDelegate saveSettings, CloseCustomResidueSettingsDelegate onClose) { this.residueIDs = residueIDs; this.residueName = residueName; this.atomNames = atomNames; this.renderSettings = renderSettings; this.residueUpdateType = residueUpdateType; this.saveSettingsCallback = saveSettings; this.onCloseCallback = onClose; this.savedRenderSettings = renderSettings.Clone(); loadSettings(); customSettingsPanel.SetActive(true); autoSaveSettingUpdates = true; }