protected override void SaveWindowSettings() { rootPanel.SaveCurrentMapBundle(); if (rootPanel.CurrentMapBundle != null) { OSCEditorSettings.SetString(_lastFileSettings, AssetDatabase.GetAssetPath(rootPanel.CurrentMapBundle)); } else { OSCEditorSettings.SetString(_lastFileSettings, ""); } }
protected override void SaveWindowSettings() { base.SaveWindowSettings(); if (_logPanel == null) { return; } OSCEditorSettings.SetBool(_showReceivedSettings, _logPanel.ShowReceived); OSCEditorSettings.SetBool(_showTransmittedSettings, _logPanel.ShowTransmitted); OSCEditorSettings.SetBool(_trackLastSettings, _logPanel.TrackLast); OSCEditorSettings.SetString(_filterSettings, _logPanel.Filter); }
protected override void SaveWindowSettings() { if (packetEditorPanel == null) return; var debugPacket = packetEditorPanel.CurrentPacket; if (debugPacket != null) { if (string.IsNullOrEmpty(packetEditorPanel.FilePath)) { packetEditorPanel.FilePath = OSCEditorUtils.BackupFolder + "unsaved.eod"; } OSCEditorUtils.SavePacket(packetEditorPanel.FilePath, debugPacket); OSCEditorSettings.SetString(_lastFileSettings, packetEditorPanel.FilePath); return; } OSCEditorSettings.SetString(_lastFileSettings, ""); }
protected override void SaveWindowSettings() { rootPanel.SaveCurrentMapBundle(); OSCEditorSettings.SetString(_lastFileSettings, rootPanel.CurrentMapBundle != null ? AssetDatabase.GetAssetPath(rootPanel.CurrentMapBundle) : string.Empty); }