Selaa lähdekoodia

修改血条层级

lanyunfei 1 päivä sitten
vanhempi
commit
ff7f339a01

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 1473 - 1363
assets/prefab/GameUI.prefab


+ 1 - 0
assets/script/ECS/worlds/WorldCocosView.ts

@@ -153,6 +153,7 @@ export class WorldCocosView extends ECSWorld {
         posCfgID?: number,
         iRole?: IRole,
         dropOutGoods?: idNum,
+        isAddEnemy?: boolean,
     ): EntityIndex {
         let roleCfg: IRoleConfig
         if (typeof IDOrCfg == 'number') {

+ 9 - 3
assets/script/ui/GameUI.ts

@@ -602,7 +602,7 @@ export default class GameUI extends BaseUI {
             }
             Data.user.eliteId = allElites[index].ID
         }
-        Mgr.ui.show(UI.GameResultUI, result)
+        this.showGameResult(result)
     }
 
     onRelicEventSelectRsp(data: relicEventSelectRsp, rewardsNty: IRewardNty) {
@@ -611,7 +611,7 @@ export default class GameUI extends BaseUI {
             startTime: this.startTime,
             rewardsNty,
         }
-        Mgr.ui.show(UI.GameResultUI, result)
+        this.showGameResult(result)
     }
 
     onDailyInsEndRsp(data: dailyDungeonsEndRsp, rewardsNty: IRewardNty) {
@@ -625,7 +625,7 @@ export default class GameUI extends BaseUI {
             result.isWin = false
             this.isWin = false
         }
-        Mgr.ui.show(UI.GameResultUI, result)
+        this.showGameResult(result)
     }
 
     speedUpDataRsp(rsp: speedUpDataRsp) {
@@ -666,6 +666,12 @@ export default class GameUI extends BaseUI {
     }
 
     //游戏逻辑=======================================
+    showGameResult(result: IGameResult) {
+        this.scheduleOnce(() => {
+            Mgr.ui.show(UI.GameResultUI, result)
+        }, 1)
+    }
+
     async getGameResSync(url, type) {
         let sa = await this.loadSync(Data.game.gameBundle, url, type)
         return sa

BIN
assets/texture/GameUI/boss_blood_1.png


+ 5 - 5
assets/texture/GameUI/boss_blood_1.png.meta

@@ -8,7 +8,7 @@
   "premultiplyAlpha": false,
   "genMipmaps": false,
   "packable": true,
-  "width": 53,
+  "width": 3,
   "height": 26,
   "platformSettings": {},
   "subMetas": {
@@ -24,14 +24,14 @@
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 53,
+      "width": 3,
       "height": 26,
-      "rawWidth": 53,
+      "rawWidth": 3,
       "rawHeight": 26,
       "borderTop": 0,
       "borderBottom": 0,
-      "borderLeft": 23,
-      "borderRight": 23,
+      "borderLeft": 3,
+      "borderRight": 0,
       "subMetas": {}
     }
   }

BIN
assets/texture/GameUI/boss_blood_2.png


+ 5 - 5
assets/texture/GameUI/boss_blood_2.png.meta

@@ -8,7 +8,7 @@
   "premultiplyAlpha": false,
   "genMipmaps": false,
   "packable": true,
-  "width": 53,
+  "width": 3,
   "height": 26,
   "platformSettings": {},
   "subMetas": {
@@ -24,14 +24,14 @@
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 53,
+      "width": 3,
       "height": 26,
-      "rawWidth": 53,
+      "rawWidth": 3,
       "rawHeight": 26,
       "borderTop": 0,
       "borderBottom": 0,
-      "borderLeft": 23,
-      "borderRight": 23,
+      "borderLeft": 3,
+      "borderRight": 0,
       "subMetas": {}
     }
   }

BIN
assets/texture/GameUI/boss_blood_3.png


+ 5 - 5
assets/texture/GameUI/boss_blood_3.png.meta

@@ -8,7 +8,7 @@
   "premultiplyAlpha": false,
   "genMipmaps": false,
   "packable": true,
-  "width": 53,
+  "width": 3,
   "height": 26,
   "platformSettings": {},
   "subMetas": {
@@ -24,14 +24,14 @@
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 53,
+      "width": 3,
       "height": 26,
-      "rawWidth": 53,
+      "rawWidth": 3,
       "rawHeight": 26,
       "borderTop": 0,
       "borderBottom": 0,
-      "borderLeft": 23,
-      "borderRight": 24,
+      "borderLeft": 3,
+      "borderRight": 0,
       "subMetas": {}
     }
   }

BIN
assets/texture/GameUI/boss_blood_4.png


+ 5 - 5
assets/texture/GameUI/boss_blood_4.png.meta

@@ -8,7 +8,7 @@
   "premultiplyAlpha": false,
   "genMipmaps": false,
   "packable": true,
-  "width": 53,
+  "width": 3,
   "height": 26,
   "platformSettings": {},
   "subMetas": {
@@ -24,14 +24,14 @@
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 53,
+      "width": 3,
       "height": 26,
-      "rawWidth": 53,
+      "rawWidth": 3,
       "rawHeight": 26,
       "borderTop": 0,
       "borderBottom": 0,
-      "borderLeft": 23,
-      "borderRight": 23,
+      "borderLeft": 3,
+      "borderRight": 0,
       "subMetas": {}
     }
   }

BIN
assets/texture/GameUI/boss_blood_5.png


+ 5 - 5
assets/texture/GameUI/boss_blood_5.png.meta

@@ -8,7 +8,7 @@
   "premultiplyAlpha": false,
   "genMipmaps": false,
   "packable": true,
-  "width": 53,
+  "width": 3,
   "height": 26,
   "platformSettings": {},
   "subMetas": {
@@ -24,14 +24,14 @@
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 53,
+      "width": 3,
       "height": 26,
-      "rawWidth": 53,
+      "rawWidth": 3,
       "rawHeight": 26,
       "borderTop": 0,
       "borderBottom": 0,
-      "borderLeft": 24,
-      "borderRight": 24,
+      "borderLeft": 3,
+      "borderRight": 0,
       "subMetas": {}
     }
   }

BIN
assets/texture/GameUI/boss_blood_bottom.png


+ 8 - 8
assets/texture/GameUI/boss_blood_bottom.png.meta

@@ -8,8 +8,8 @@
   "premultiplyAlpha": false,
   "genMipmaps": false,
   "packable": true,
-  "width": 142,
-  "height": 60,
+  "width": 101,
+  "height": 30,
   "platformSettings": {},
   "subMetas": {
     "boss_blood_bottom": {
@@ -24,14 +24,14 @@
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 142,
-      "height": 60,
-      "rawWidth": 142,
-      "rawHeight": 60,
+      "width": 101,
+      "height": 30,
+      "rawWidth": 101,
+      "rawHeight": 30,
       "borderTop": 0,
       "borderBottom": 0,
-      "borderLeft": 67,
-      "borderRight": 71,
+      "borderLeft": 38,
+      "borderRight": 39,
       "subMetas": {}
     }
   }

BIN
assets/texture/GameUI/boss_blood_frame.png


+ 38 - 0
assets/texture/GameUI/boss_blood_frame.png.meta

@@ -0,0 +1,38 @@
+{
+  "ver": "2.3.7",
+  "uuid": "49e25c48-f570-43ec-af49-8afc44aa1dbb",
+  "importer": "texture",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "genMipmaps": false,
+  "packable": true,
+  "width": 139,
+  "height": 60,
+  "platformSettings": {},
+  "subMetas": {
+    "boss_blood_frame": {
+      "ver": "1.0.6",
+      "uuid": "71496349-8cd1-42dc-a805-8805d864b3d4",
+      "importer": "sprite-frame",
+      "rawTextureUuid": "49e25c48-f570-43ec-af49-8afc44aa1dbb",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 139,
+      "height": 60,
+      "rawWidth": 139,
+      "rawHeight": 60,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 66,
+      "borderRight": 66,
+      "subMetas": {}
+    }
+  }
+}