Ejemplo n.º 1
0
        protected override void SaveWindowSettings()
        {
            rootPanel.SaveCurrentMapBundle();

            if (rootPanel.CurrentMapBundle != null)
            {
                OSCEditorSettings.SetString(_lastFileSettings, AssetDatabase.GetAssetPath(rootPanel.CurrentMapBundle));
            }
            else
            {
                OSCEditorSettings.SetString(_lastFileSettings, "");
            }
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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, "");
        }
Ejemplo n.º 4
0
        protected override void SaveWindowSettings()
        {
            rootPanel.SaveCurrentMapBundle();

            OSCEditorSettings.SetString(_lastFileSettings, rootPanel.CurrentMapBundle != null ? AssetDatabase.GetAssetPath(rootPanel.CurrentMapBundle) : string.Empty);
        }