master
humingxing 14 hours ago
parent 446160f0d8
commit d69f2dabda
  1. 28
      assets/bundles/gemstone/prefab/PanelGemstone.prefab
  2. 4
      assets/script/battle/view/TextGrid.ts

@ -885,13 +885,13 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 41.849998474121094,
"height": 52.43000030517578
"width": 74.93000030517578,
"height": 43.43000030517578
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.3978494677562816,
"y": 0.37764636890734354
"x": 0.537568378690031,
"y": 0.3971908790878877
},
"_id": ""
},
@ -922,7 +922,7 @@
"a": 255
},
"_skeletonData": {
"__uuid__": "98480b03-176a-4572-87e5-24c15fc93ae9",
"__uuid__": "16c72eea-3349-4835-a09e-adccbd315fd2",
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "土",
@ -985,7 +985,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -91.65499999999997,
"y": -110.712,
"z": 0
},
"_lrot": {
@ -1045,7 +1045,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": -272.5,
"y": -110,
"y": -88.5,
"z": 0
},
"_lrot": {
@ -1243,8 +1243,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"x": 1.2,
"y": 1.2,
"z": 1
},
"_mobility": 0,
@ -1376,8 +1376,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.4,
"y": 0.4,
"x": 0.5,
"y": 0.5,
"z": 1
},
"_mobility": 0,
@ -1497,7 +1497,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -40,
"y": -49.528,
"z": 0
},
"_lrot": {
@ -1647,7 +1647,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 165,
"height": 220
"height": 177
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1688,7 +1688,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 220
"height": 177
},
"_anchorPoint": {
"__type__": "cc.Vec2",

@ -468,6 +468,7 @@ export class TextGrid extends Component {
if (!this.node?.isValid) return;
if (this._stunFx?.isValid) {
this._stunFx.active = true;
this._stunFx.setPosition(0, -40, 0);
this._stunFx.setSiblingIndex(this.node.children.length - 1);
this._ensureDragSurface();
return;
@ -484,7 +485,8 @@ export class TextGrid extends Component {
return;
}
node.parent = this.node;
node.setPosition(0, BattleMapSpec.CELL_SIZE * 0.25, 0);
// 眩晕 Spine 自身已偏上,相对格子中心再下移 40
node.setPosition(0, -40, 0);
node.active = true;
node.layer = this.node.layer;
node.setSiblingIndex(this.node.children.length - 1);

Loading…
Cancel
Save