protected override void LoadWindowSettings() { var assetPath = OSCEditorSettings.GetString(_lastFileSettings, ""); if (!string.IsNullOrEmpty(assetPath)) { rootPanel.CurrentMapBundle = AssetDatabase.LoadAssetAtPath <OSCMapBundle>(assetPath); } }
protected override void SaveWindowSettings() { base.SaveWindowSettings(); OSCEditorSettings.SetColor(_controlColorSettings, rootPanel.ControlColor); OSCEditorSettings.SetBool(_addInformerSettings, rootPanel.AddInformer); OSCEditorSettings.GetString(_informerAddressSettings, rootPanel.InformerAddress); OSCEditorSettings.GetBool(_informOnChangedSettings, rootPanel.InformOnChanged); OSCEditorSettings.GetFloat(_informerIntervalSettings, rootPanel.InformerInterval); OSCEditorSettings.SetTransmitter(_informerTransmitterSettings, rootPanel.InformerTransmitter); }
protected override void LoadWindowSettings() { base.LoadWindowSettings(); rootPanel.ControlColor = OSCEditorSettings.GetColor(_controlColorSettings, Color.white); rootPanel.AddInformer = OSCEditorSettings.GetBool(_addInformerSettings, true); rootPanel.InformerAddress = OSCEditorSettings.GetString(_informerAddressSettings, "/address"); rootPanel.InformOnChanged = OSCEditorSettings.GetBool(_informOnChangedSettings, true); rootPanel.InformerInterval = OSCEditorSettings.GetFloat(_informerIntervalSettings, 0f); rootPanel.InformerTransmitter = OSCEditorSettings.GetTransmitter(_informerTransmitterSettings, null); }
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); }
protected override void LoadWindowSettings() { base.LoadWindowSettings(); if (logPanel == null) { return; } logPanel.ShowReceived = OSCEditorSettings.GetBool(_showReceivedSettings, true); logPanel.ShowTransmitted = OSCEditorSettings.GetBool(_showTransmittedSettings, true); logPanel.TrackLast = OSCEditorSettings.GetBool(_trackLastSettings, false); }
protected override void SaveWindowSettings() { rootPanel.SaveCurrentMapBundle(); if (rootPanel.CurrentMapBundle != null) { OSCEditorSettings.SetString(_lastFileSettings, AssetDatabase.GetAssetPath(rootPanel.CurrentMapBundle)); } else { OSCEditorSettings.SetString(_lastFileSettings, ""); } }
protected override void LoadWindowSettings() { base.LoadWindowSettings(); if (_logPanel == null) { return; } _logPanel.ShowReceived = OSCEditorSettings.GetBool(_showReceivedSettings, true); _logPanel.ShowTransmitted = OSCEditorSettings.GetBool(_showTransmittedSettings, true); _logPanel.TrackLast = OSCEditorSettings.GetBool(_trackLastSettings, false); _logPanel.Filter = OSCEditorSettings.GetString(_filterSettings, string.Empty); }
protected override void LoadWindowSettings() { if (packetEditorPanel == null) return; var lastOpenedFile = OSCEditorSettings.GetString(_lastFileSettings, ""); if (!string.IsNullOrEmpty(lastOpenedFile)) { var debugPacket = OSCEditorUtils.LoadPacket(lastOpenedFile); if (debugPacket != null) { packetEditorPanel.CurrentPacket = debugPacket; packetEditorPanel.FilePath = lastOpenedFile; } } }
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); }