wolftooth hace 5 años
padre
commit
abcd017c43
Se han modificado 1 ficheros con 13 adiciones y 21 borrados
  1. 13 21
      minigame/WebContent/js/main.js

+ 13 - 21
minigame/WebContent/js/main.js

@@ -560,27 +560,19 @@ function handleComplete(evt, comp) {
 
 
 
-            if(dishIndex == 1){
-                menuIconInAnim2(exportRoot.pot.qcdf,function(){
-                    oilIconAnim();
-                    proAnim(function() {
-                        exportRoot.btn2.alpha = 1;
-                        btnAnim(exportRoot.btn2);
-                    })
-                });
-            }else{
-                oilIconAnim();
-                proAnim(function() {
-                    btnAnim(exportRoot.btn2);
-                    if(dishIndex == 0){
-                        menuIconInAnim(exportRoot.pot.hsr);
-                    }else if(dishIndex == 3){
-                        menuIconInAnim(exportRoot.pot.ymc);
-                    }else{
-                        exportRoot.btn2.alpha = 1;
-                    }
-                });
-            }
+            oilIconAnim();
+            proAnim(function() {
+                btnAnim(exportRoot.btn2);
+                if(dishIndex == 0){
+                    menuIconInAnim(exportRoot.pot.hsr);
+                }else if(dishIndex == 3){
+                    menuIconInAnim(exportRoot.pot.ymc);
+                }else if(dishIndex == 1){
+                    menuIconInAnim(exportRoot.pot.qcdf);
+                }else{
+                    exportRoot.btn2.alpha = 1;
+                }
+            });
 
         })
         exportRoot.btn2.addEventListener("mousedown", function() {