血条显示修改

This commit is contained in:
2025-06-12 20:30:19 +08:00
parent c35ae83511
commit 6aeee46c7c
27 changed files with 65 additions and 70 deletions

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.23, "x": 0.18,
"y": 0.23, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -471,7 +471,7 @@
"__expectedType__": "sp.SkeletonData" "__expectedType__": "sp.SkeletonData"
}, },
"defaultSkin": "default", "defaultSkin": "default",
"defaultAnimation": "", "defaultAnimation": "<None>",
"_premultipliedAlpha": true, "_premultipliedAlpha": true,
"_timeScale": 1, "_timeScale": 1,
"_preCacheMode": 0, "_preCacheMode": 0,
@@ -516,8 +516,6 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "4aKyovCOhDJpr23Of35+5a", "fileId": "4aKyovCOhDJpr23Of35+5a",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.23, "x": 0.18,
"y": 0.23, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.23, "x": 0.18,
"y": 0.23, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.23, "x": 0.18,
"y": 0.23, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.3, "x": 0.25,
"y": 0.3, "y": 0.25,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.32, "x": 0.21,
"y": 0.32, "y": 0.21,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.3, "x": 0.21,
"y": 0.3, "y": 0.21,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.3, "x": 0.23,
"y": 0.3, "y": 0.23,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.3, "x": 0.23,
"y": 0.3, "y": 0.23,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.32, "x": 0.23,
"y": 0.32, "y": 0.23,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.2, "x": 0.18,
"y": 0.2, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.3, "x": 0.18,
"y": 0.3, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.3, "x": 0.18,
"y": 0.3, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -402,8 +402,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.3, "x": 0.18,
"y": 0.3, "y": 0.18,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -109,7 +109,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": -35, "y": -15,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -121,7 +121,7 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.9, "x": 1,
"y": 1, "y": 1,
"z": 1 "z": 1
}, },
@@ -202,7 +202,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 350, "width": 300,
"height": 50 "height": 50
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -336,7 +336,7 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": -34.2, "x": -30,
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
@@ -377,8 +377,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 68.4, "width": 60,
"height": 8.4 "height": 10
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -408,9 +408,9 @@
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 11, "r": 255,
"g": 238, "g": 255,
"b": 20, "b": 255,
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
@@ -450,10 +450,10 @@
}, },
"_alignFlags": 45, "_alignFlags": 45,
"_target": null, "_target": null,
"_left": 0.8, "_left": 0,
"_right": 0.8, "_right": -3.552713678800501e-15,
"_top": 0.8, "_top": 0,
"_bottom": 0.8, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
@@ -499,7 +499,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 70, "width": 60,
"height": 10 "height": 10
}, },
"_anchorPoint": { "_anchorPoint": {

View File

@@ -20,7 +20,6 @@ export class BattleMoveSystem extends ecs.ComblockSystem implements ecs.ISystemU
const shouldStop = this.checkEnemiesInFace(e); const shouldStop = this.checkEnemiesInFace(e);
view.is_atking = this.checkEnemiesInRange(e, view.dis); view.is_atking = this.checkEnemiesInRange(e, view.dis);
console.log("shouldStop",shouldStop,"view.is_atking",view.is_atking)
// 更新渲染层级 // 更新渲染层级
this.updateRenderOrder(e); this.updateRenderOrder(e);

View File

@@ -39,12 +39,10 @@ export class BuffComp extends Component {
info_init(){ info_init(){
this.top_node = this.node.getChildByName("top"); this.top_node = this.node.getChildByName("top");
this.top_node.getChildByName("lv").active=(this.node.getComponent(HeroViewComp).fac == 0 ? true : false) this.top_node.getChildByName("lv").active=false
// this.top_node.getChildByName("hp").active=(this.node.getComponent(HeroViewComp).fac == 1 ? true : false) // this.top_node.getChildByName("hp").active=(this.node.getComponent(HeroViewComp).fac == 1 ? true : false)
this.top_node.getChildByName("sboss").active=this.node.getComponent(HeroViewComp).is_boss this.top_node.getChildByName("sboss").active=this.node.getComponent(HeroViewComp).is_boss
if(this.node.getComponent(HeroViewComp).hero_uuid == 9999){
this.top_node.getChildByName("lv").active=false
}
this.top_node.getChildByName("lv").getChildByName("lv").getComponent(Label)!.string = this.node.getComponent(HeroViewComp).lv.toFixed(0) this.top_node.getChildByName("lv").getChildByName("lv").getComponent(Label)!.string = this.node.getComponent(HeroViewComp).lv.toFixed(0)
this.top_node.getChildByName("ihp").getChildByName("num").getComponent(Label)!.string = this.node.getComponent(HeroViewComp).hp.toFixed(0) this.top_node.getChildByName("ihp").getChildByName("num").getComponent(Label)!.string = this.node.getComponent(HeroViewComp).hp.toFixed(0)
this.top_node.getChildByName("iap").getChildByName("num").getComponent(Label)!.string = this.node.getComponent(HeroViewComp).ap.toFixed(0) this.top_node.getChildByName("iap").getChildByName("num").getComponent(Label)!.string = this.node.getComponent(HeroViewComp).ap.toFixed(0)