薛鸿潇 5 лет назад
Родитель
Сommit
3dd9cb6655

+ 81 - 0
tower_sanguo/assets/resources/animation/ScaleShake.anim

@@ -0,0 +1,81 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "ScaleShake",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.2833333333333333,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": 2,
+  "curveData": {
+    "props": {
+      "scale": [
+        {
+          "frame": 0,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        },
+        {
+          "frame": 0.05,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 0.95,
+            "y": 0.95
+          }
+        },
+        {
+          "frame": 0.08333333333333333,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 0.85,
+            "y": 0.95
+          }
+        },
+        {
+          "frame": 0.11666666666666667,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 0.95,
+            "y": 1.02
+          }
+        },
+        {
+          "frame": 0.16666666666666666,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.05,
+            "y": 1
+          }
+        },
+        {
+          "frame": 0.21666666666666667,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 0.95
+          }
+        },
+        {
+          "frame": 0.25,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.05,
+            "y": 0.95
+          }
+        },
+        {
+          "frame": 0.2833333333333333,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        }
+      ]
+    }
+  },
+  "events": []
+}

+ 5 - 0
tower_sanguo/assets/resources/animation/ScaleShake.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "f447f707-1d73-4727-92d9-5a3cc3259338",
+  "subMetas": {}
+}

Разница между файлами не показана из-за своего большого размера
+ 661 - 170
tower_sanguo/assets/resources/module/fight/fight.prefab


+ 8 - 4
tower_sanguo/assets/scripts/module/fight/FightUI.ts

@@ -24,6 +24,7 @@ import PiggyBankModel from "../piggyBank/PiggyBankModel";
 import GeneralUI from "../general/GeneralUI";
 import { ViewZorder } from "../../../MOKA/data/ViewZOrder";
 import GeneralUIModel from "../general/GeneralUIModel";
+import GameUtil from "../../../MOKA/util/GameUtil";
 
 const { ccclass, property } = cc._decorator;
 
@@ -480,12 +481,15 @@ export default class FightUI extends BaseUI {
         let mission = this.missionVO.id;
         let isboss = this.missionVO.type == 2;
         this.mission_boss.node.active = isboss;
-        this.lbl_mission.string = `${mission}`;
+        this.lbl_mission.string = `${mission}`;
         this.lbl_mission.node.x = isboss ? 50 : 0;
         this.mission_start.node.active = true;
         //更新主界面的关卡组件
         GameController.mainui.updateMission();
         // cc.tween(this.mission_start).to(0.5, { x: 0 }).delay(0.8).to(0.3, { x: -750 }).call(this.checkGeneralBuff.bind(this)).start();
+        GameUtil.shake(this.lbl_mission.node.parent, 20, 2)// 此处Bug:后面的抖动无效
+        // GameUtil.shake(this.lbl_mission.node.parent.getChildByName('lbl_di'), 20, 2)
+        // GameUtil.shake(this.lbl_mission.node.parent.getChildByName('lbl_guan'), 20, 2)
         this.mission_start.stop();
         this.mission_start.play();
         XXEvent.emit('event-new-mission-start')// 新的一波开始了
@@ -1192,17 +1196,17 @@ export default class FightUI extends BaseUI {
     }
     /** 关闭武将界面时,检查武将羁绊变更,有则展示羁特效 */
     private onCheckFetterChange() {
-        cc.log('检查羁绊效果'+GeneralUIModel.is_change_embattle)
+        cc.log('检查羁绊效果' + GeneralUIModel.is_change_embattle)
         if (GeneralUIModel.is_change_embattle) {
             // 拦截羁绊刷新
         } else {
-            
+
         }
         // this.initGenerals();
         // this.clearGame();
         // this.checkFsSkill();
         this.checkFetterSkill();
-        
+
     }
 }
 

Некоторые файлы не были показаны из-за большого количества измененных файлов