Exemplo n.º 1
0
        public static void ApplyModulesSettings()
        {
            DOTweenSettings doTweenSettings = DOTweenUtilityWindow.GetDOTweenSettings();

            if (!((Object)doTweenSettings != (Object)null))
            {
                return;
            }
            DOTweenUtilityWindowModules.Refresh(doTweenSettings, true);
        }
Exemplo n.º 2
0
 private static void WaitForCompilation_Update()
 {
     if (!EditorApplication.isCompiling)
     {
         EditorApplication.update -= new EditorApplication.CallbackFunction(DOTweenUtilityWindowModules.WaitForCompilation_Update);
         DOTweenUtilityWindowModules._isWaitingForCompilation = false;
         DOTweenUtilityWindowModules.Refresh(DOTweenUtilityWindowModules._src, false);
     }
     DOTweenUtilityWindowModules._editor.Repaint();
 }
Exemplo n.º 3
0
 public static bool Draw(EditorWindow editor, DOTweenSettings src)
 {
     DOTweenUtilityWindowModules._editor = editor;
     DOTweenUtilityWindowModules._src    = src;
     if (!DOTweenUtilityWindowModules._refreshed)
     {
         DOTweenUtilityWindowModules.Refresh(DOTweenUtilityWindowModules._src, false);
     }
     GUILayout.Label("Add/Remove Modules", EditorGUIUtils.titleStyle, new GUILayoutOption[0]);
     GUILayout.BeginVertical();
     EditorGUI.BeginDisabledGroup(EditorApplication.isCompiling);
     GUILayout.BeginVertical(GUI.skin.box, new GUILayoutOption[0]);
     GUILayout.Label("Unity", EditorGUIUtils.boldLabelStyle, new GUILayoutOption[0]);
     DOTweenUtilityWindowModules._audioModule.enabled     = EditorGUILayout.Toggle("Audio", DOTweenUtilityWindowModules._audioModule.enabled, new GUILayoutOption[0]);
     DOTweenUtilityWindowModules._physicsModule.enabled   = EditorGUILayout.Toggle("Physics", DOTweenUtilityWindowModules._physicsModule.enabled, new GUILayoutOption[0]);
     DOTweenUtilityWindowModules._physics2DModule.enabled = EditorGUILayout.Toggle("Physics2D", DOTweenUtilityWindowModules._physics2DModule.enabled, new GUILayoutOption[0]);
     DOTweenUtilityWindowModules._spriteModule.enabled    = EditorGUILayout.Toggle("Sprites", DOTweenUtilityWindowModules._spriteModule.enabled, new GUILayoutOption[0]);
     DOTweenUtilityWindowModules._uiModule.enabled        = EditorGUILayout.Toggle("UI", DOTweenUtilityWindowModules._uiModule.enabled, new GUILayoutOption[0]);
     EditorGUILayout.EndVertical();
     if (EditorUtils.hasPro)
     {
         GUILayout.BeginVertical(GUI.skin.box, new GUILayoutOption[0]);
         GUILayout.Label("External Assets (Pro)", EditorGUIUtils.boldLabelStyle, new GUILayoutOption[0]);
         DOTweenUtilityWindowModules._textMeshProModule.enabled = EditorGUILayout.Toggle("TextMesh Pro", DOTweenUtilityWindowModules._textMeshProModule.enabled, new GUILayoutOption[0]);
         DOTweenUtilityWindowModules._tk2DModule.enabled        = EditorGUILayout.Toggle("2D Toolkit", DOTweenUtilityWindowModules._tk2DModule.enabled, new GUILayoutOption[0]);
         EditorGUILayout.EndVertical();
     }
     GUILayout.Space(2f);
     GUILayout.BeginHorizontal();
     if (GUILayout.Button("Apply"))
     {
         DOTweenUtilityWindowModules.Apply();
         DOTweenUtilityWindowModules.Refresh(DOTweenUtilityWindowModules._src, false);
         return(true);
     }
     if (GUILayout.Button("Cancel"))
     {
         return(true);
     }
     GUILayout.EndHorizontal();
     EditorGUI.EndDisabledGroup();
     GUILayout.EndVertical();
     if (EditorApplication.isCompiling)
     {
         DOTweenUtilityWindowModules.WaitForCompilation();
     }
     return(false);
 }