static public int get_showUnityEditorReport(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.showUnityEditorReport);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_timeScale(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.timeScale);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_defaultEasePeriod(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.defaultEasePeriod);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
	static public int constructor(IntPtr l) {
		try {
			DG.Tweening.Core.DOTweenSettings o;
			o=new DG.Tweening.Core.DOTweenSettings();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
 static public int get_storeSettingsLocation(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         pushValue(l, true);
         pushEnum(l, (int)self.storeSettingsLocation);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings o;
         o = new DG.Tweening.Core.DOTweenSettings();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_showUnityEditorReport(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         System.Boolean v;
         checkType(l, 2, out v);
         self.showUnityEditorReport = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_logBehaviour(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         DG.Tweening.LogBehaviour         v;
         checkEnum(l, 2, out v);
         self.logBehaviour = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_useSafeMode(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         System.Boolean v;
         checkType(l, 2, out v);
         self.useSafeMode = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_storeSettingsLocation(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         DG.Tweening.Core.DOTweenSettings.SettingsLocation v;
         checkEnum(l, 2, out v);
         self.storeSettingsLocation = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_defaultLoopType(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         DG.Tweening.LoopType             v;
         checkEnum(l, 2, out v);
         self.defaultLoopType = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_defaultEaseOvershootOrAmplitude(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         System.Single v;
         checkType(l, 2, out v);
         self.defaultEaseOvershootOrAmplitude = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_timeScale(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         System.Single v;
         checkType(l, 2, out v);
         self.timeScale = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_defaultTimeScaleIndependent(IntPtr l)
 {
     try {
         DG.Tweening.Core.DOTweenSettings self = (DG.Tweening.Core.DOTweenSettings)checkSelf(l);
         System.Boolean v;
         checkType(l, 2, out v);
         self.defaultTimeScaleIndependent = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #15
0
        static void OnReset(DOTweenAnimation src)
        {
            DOTweenSettings settings = DOTweenUtilityWindow.GetDOTweenSettings();

            if (settings == null)
            {
                return;
            }

            Undo.RecordObject(src, "DOTweenAnimation");
            src.autoPlay = settings.defaultAutoPlay == AutoPlay.All || settings.defaultAutoPlay == AutoPlay.AutoPlayTweeners;
            src.autoKill = settings.defaultAutoKill;
            EditorUtility.SetDirty(src);
        }
Exemple #16
0
 static void DOTweenSettings_defaultAutoKill(JSVCall vc)
 {
     if (vc.bGet)
     {
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         var result = _this.defaultAutoKill;
         JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(result));
     }
     else
     {
         System.Boolean arg0 = (System.Boolean)JSApi.getBooleanS((int)JSApi.GetType.Arg);
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         _this.defaultAutoKill = arg0;
     }
 }
Exemple #17
0
 static void DOTweenSettings_storeSettingsLocation(JSVCall vc)
 {
     if (vc.bGet)
     {
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         var result = _this.storeSettingsLocation;
         JSApi.setEnum((int)JSApi.SetType.Rval, (int)result);
     }
     else
     {
         DG.Tweening.Core.DOTweenSettings.SettingsLocation arg0 = (DG.Tweening.Core.DOTweenSettings.SettingsLocation)JSApi.getEnum((int)JSApi.GetType.Arg);
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         _this.storeSettingsLocation = arg0;
     }
 }
Exemple #18
0
 static void DOTweenSettings_timeScale(JSVCall vc)
 {
     if (vc.bGet)
     {
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         var result = _this.timeScale;
         JSApi.setSingle((int)JSApi.SetType.Rval, (System.Single)(result));
     }
     else
     {
         System.Single arg0 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         _this.timeScale = arg0;
     }
 }
Exemple #19
0
 static void DOTweenSettings_defaultEaseOvershootOrAmplitude(JSVCall vc)
 {
     if (vc.bGet)
     {
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         var result = _this.defaultEaseOvershootOrAmplitude;
         JSApi.setSingle((int)JSApi.SetType.Rval, (System.Single)(result));
     }
     else
     {
         System.Single arg0 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         _this.defaultEaseOvershootOrAmplitude = arg0;
     }
 }
Exemple #20
0
 static void DOTweenSettings_defaultLoopType(JSVCall vc)
 {
     if (vc.bGet)
     {
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         var result = _this.defaultLoopType;
         JSApi.setEnum((int)JSApi.SetType.Rval, (int)result);
     }
     else
     {
         DG.Tweening.LoopType             arg0  = (DG.Tweening.LoopType)JSApi.getEnum((int)JSApi.GetType.Arg);
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         _this.defaultLoopType = arg0;
     }
 }
Exemple #21
0
 static void DOTweenSettings_useSmoothDeltaTime(JSVCall vc)
 {
     if (vc.bGet)
     {
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         var result = _this.useSmoothDeltaTime;
         JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(result));
     }
     else
     {
         System.Boolean arg0 = (System.Boolean)JSApi.getBooleanS((int)JSApi.GetType.Arg);
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         _this.useSmoothDeltaTime = arg0;
     }
 }
Exemple #22
0
 static void DOTweenSettings_showUnityEditorReport(JSVCall vc)
 {
     if (vc.bGet)
     {
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         var result = _this.showUnityEditorReport;
         JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(result));
     }
     else
     {
         System.Boolean arg0 = (System.Boolean)JSApi.getBooleanS((int)JSApi.GetType.Arg);
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         _this.showUnityEditorReport = arg0;
     }
 }
Exemple #23
0
 static void DOTweenSettings_logBehaviour(JSVCall vc)
 {
     if (vc.bGet)
     {
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         var result = _this.logBehaviour;
         JSApi.setEnum((int)JSApi.SetType.Rval, (int)result);
     }
     else
     {
         DG.Tweening.LogBehaviour         arg0  = (DG.Tweening.LogBehaviour)JSApi.getEnum((int)JSApi.GetType.Arg);
         DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj;
         _this.logBehaviour = arg0;
     }
 }
        void OnEnable()
        {
            _src      = target as DOTweenAnimation;
            _settings = DOTweenUtilityWindow.GetDOTweenSettings();

            onStartProperty        = base.serializedObject.FindProperty("onStart");
            onPlayProperty         = base.serializedObject.FindProperty("onPlay");
            onUpdateProperty       = base.serializedObject.FindProperty("onUpdate");
            onStepCompleteProperty = base.serializedObject.FindProperty("onStepComplete");
            onCompleteProperty     = base.serializedObject.FindProperty("onComplete");
            onRewindProperty       = base.serializedObject.FindProperty("onRewind");
            onTweenCreatedProperty = base.serializedObject.FindProperty("onTweenCreated");

            int len = _AnimationType.Length;

            _animationTypeNoSlashes = new string[len];
            for (int i = 0; i < len; ++i)
            {
                string a = _AnimationType[i];
                a = a.Replace("/", "");
                _animationTypeNoSlashes[i] = a;
            }
        }
        // ===================================================================================
        // METHODS ---------------------------------------------------------------------------

        void Connect()
        {
            if (_src == null) {
                string srcDir = EditorUtils.assetsPath + EditorUtils.pathSlash + "Resources";
                if (!Directory.Exists(srcDir)) AssetDatabase.CreateFolder("Assets", "Resources");
                string adbSrcFilePath = EditorUtils.FullPathToADBPath(srcDir + EditorUtils.pathSlash + DOTweenSettings.AssetName + ".asset");

                // Legacy: check if there are settings saved in old mode (inside DOTween/Resources folder) and eventually move them
                string legacySrcDir = EditorUtils.dotweenDir + "Resources";
                string legacySrcFilePath = legacySrcDir + EditorUtils.pathSlash + DOTweenSettings.AssetName + ".asset";
                if (File.Exists(legacySrcFilePath)) {
                    // Move legacy src file to correct folder
                    AssetDatabase.MoveAsset(EditorUtils.FullPathToADBPath(legacySrcFilePath), adbSrcFilePath);
                    // Delete legacy Resources folder
                    AssetDatabase.DeleteAsset(EditorUtils.FullPathToADBPath(legacySrcDir));
                }

                _src = EditorUtils.ConnectToSourceAsset<DOTweenSettings>(adbSrcFilePath, true);
            }
        }
        // ===================================================================================
        // MONOBEHAVIOUR METHODS -------------------------------------------------------------

        void OnEnable()
        {
            _src = target as DOTweenSettings;
        }