future 1 year ago
parent
commit
be1e4207ce

+ 2 - 2
assets/resources/prefab/run/UiWidget/boss_info.prefab

@@ -1171,8 +1171,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1919.9999999999998,
-      "height": 1919.9999999999998
+      "width": 1920,
+      "height": 1920
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 1 - 1
assets/script/config.ts

@@ -5,7 +5,7 @@ const { ccclass, property } = _decorator;
 export class config {
     static debug = true;
     static domain = "https://zcapi.xwrun.com";
-    static version = '调试中...'
+    static version = '调试 v2.0.1'
     static is_MAC_edit = false; //目前临时处理:如果是Mac并且浏览器打开了检查时设置为true,正式打包需要设置为false
     static select_res_and_control_type = {
         RES_TYPE:0,

+ 1 - 1
assets/script/run/ui/ui_boss_info.ts

@@ -25,7 +25,7 @@ export class ui_boss_info extends ui_base {
         gameManager.initUiBaseAtt(this.bg_bar,this.mBossData.bg_bar)
         gameManager.initUiBaseAtt(this.bar,this.mBossData.bar)
         gameManager.initUiBaseAtt(this.head,this.mBossData.head)
-        this.bg_bar.getComponent(ProgressBar).totalLength = this.bg_bar.getComponent(UITransform).width
+        this.bg_bar.getComponent(ProgressBar).totalLength = this.bar.getComponent(UITransform).width
         this.bossHp = this.mBossData.hp;
         this.bg_bar.getComponent(ProgressBar).progress = 1;
         ClientEvent.on(config.EventRun.ON_BOSS_HURT,this.hurt.bind(this),this)