Beispiel #1
0
        public string Serialize()
        {
            if (_gui != null)
            {
                _settings = _gui.Settings;
            }

            if (_settings == null)
            {
                _settings = new MouseActionsSettings();
            }

            return(PluginHelper.SerializeSettings(_settings));
        }
Beispiel #2
0
 public bool Deserialize(string serializedData)
 {
     if (serializedData.Contains("ClickPosition"))
     {
         LegacyMouseActionsSettings legacySettings;
         bool flag = PluginHelper.DeserializeSettings(serializedData, out legacySettings);
         _settings = new MouseActionsSettings()
         {
             MouseAction    = legacySettings.MouseAction.ToNewMouseActions(),
             ActionLocation = legacySettings.ClickPosition.ToClickPositions(),
             MovePoint      = legacySettings.MovePoint,
             ScrollAmount   = legacySettings.ScrollAmount
         };
         return(flag);
     }
     return(PluginHelper.DeserializeSettings(serializedData, out _settings));
 }
        public string Serialize()
        {
            if (_gui != null)
                _settings = _gui.Settings;

            if (_settings == null)
                _settings = new MouseActionsSettings();

            return PluginHelper.SerializeSettings(_settings);
        }