fix(hero): 调整英雄预制体和视图组件的锚点及尺寸

修改多个英雄预制体的锚点y坐标和高度尺寸,统一调整英雄视图组件的显示位置
禁用atk_s1和atk_s2技能节点的_enabled属性
移除HeroViewComp中对boss的特殊位置处理逻辑
This commit is contained in:
2025-11-02 13:40:01 +08:00
parent 187153ac9e
commit 0d76fd4050
14 changed files with 25 additions and 25 deletions

View File

@@ -897,12 +897,12 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.2
},
"_id": ""
},

View File

@@ -897,12 +897,12 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.2
},
"_id": ""
},

View File

@@ -897,12 +897,12 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
"height": 90
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.2
},
"_id": ""
},

View File

@@ -897,7 +897,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",

View File

@@ -897,12 +897,12 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
"height": 90
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.2
},
"_id": ""
},

View File

@@ -897,12 +897,12 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
"height": 8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.2
},
"_id": ""
},

View File

@@ -897,12 +897,12 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
"height": 90
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.2
},
"_id": ""
},

View File

@@ -894,12 +894,12 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.2
},
"_id": ""
},

View File

@@ -897,12 +897,12 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.2
},
"_id": ""
},

View File

@@ -897,12 +897,12 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.2
},
"_id": ""
},

View File

@@ -902,7 +902,7 @@
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.15
},
"_id": ""
},

View File

@@ -164,7 +164,7 @@
"node": {
"__id__": 2
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 6
},

View File

@@ -158,7 +158,7 @@
"node": {
"__id__": 2
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 6
},

View File

@@ -68,9 +68,9 @@ export class HeroViewComp extends CCComp {
/** 方向 */
this.node.setScale(this.scale,1);
this.top_node.setScale(this.scale,1);
if(this.model && this.model.is_boss){
this.top_node.position=v3(this.node.position.x,this.node.position.y+70,0)
}
// if(this.model && this.model.is_boss){
// this.top_node.position=v3(this.node.position.x,this.node.position.y+70,0)
// }
/* 显示角色血*/
this.top_node.getChildByName("hp").active = true;
this.usePower=HeroInfo[this.model.hero_uuid].type==HType.warrior||HeroInfo[this.model.hero_uuid].type==HType.assassin;