卡牌样式修改

This commit is contained in:
panw
2025-06-19 16:04:13 +08:00
parent a1ba9efd89
commit 86378c16b7
3 changed files with 3784 additions and 1889 deletions

View File

@@ -232,8 +232,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 200, "width": 220,
"height": 300 "height": 350
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -841,8 +841,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 186, "width": 206,
"height": 170.23899999999998 "height": 220.23899999999998
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -872,9 +872,9 @@
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 240, "r": 173,
"g": 172, "g": 216,
"b": 110, "b": 255,
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
@@ -973,7 +973,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 14.454, "y": 46.454,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -1121,8 +1121,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 1.3,
"y": 1, "y": 1.2,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -1180,9 +1180,9 @@
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 114, "r": 78,
"g": 223, "g": 78,
"b": 238, "b": 78,
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
@@ -1245,7 +1245,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 6.085, "y": 49.588,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -1257,8 +1257,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1.9, "x": 1,
"y": 1.9, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -1393,8 +1393,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 1.3,
"y": 1, "y": 1.3,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -1452,9 +1452,9 @@
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 238, "r": 146,
"g": 114, "g": 255,
"b": 119, "b": 155,
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
@@ -1517,7 +1517,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 22.085, "y": 47.754,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -1529,8 +1529,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1.3, "x": 1,
"y": 1.3, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -1638,7 +1638,7 @@
"__id__": 27 "__id__": 27
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 67 "__id__": 67
@@ -1665,8 +1665,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 1.3,
"y": 1, "y": 1.3,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -1724,9 +1724,9 @@
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 238, "r": 24,
"g": 114, "g": 144,
"b": 119, "b": 224,
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
@@ -1774,7 +1774,7 @@
"__id__": 27 "__id__": 27
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 73 "__id__": 73
@@ -1789,7 +1789,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 15.085, "y": 50.085,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -1801,8 +1801,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1.8, "x": 1,
"y": 1.8, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -1925,7 +1925,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": -119.498, "y": -103.498,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -2051,8 +2051,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 176, "width": 196,
"height": 168 "height": 218
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -2248,8 +2248,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 180, "width": 200,
"height": 280 "height": 330
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -2691,7 +2691,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.567, "x": 0.567,
"y": 9.16, "y": 24.711,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -2782,7 +2782,7 @@
"_fillStart": 0, "_fillStart": 0,
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": true,
"_atlas": null, "_atlas": null,
"_id": "" "_id": ""
}, },
@@ -2829,8 +2829,8 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0.524,
"y": 15.320999999999998, "y": 29.304000000000002,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -2968,9 +2968,9 @@
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 119.679, "_top": 130.696,
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0.524,
"_verticalCenter": 0, "_verticalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
"_isAbsRight": true, "_isAbsRight": true,
@@ -3505,8 +3505,8 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": -87.89700000000002, "x": -97.89700000000002,
"y": -123.71100000000001, "y": -148.711,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -4274,8 +4274,8 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 90.606, "x": 100.606,
"y": -122.505, "y": -147.505,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -5425,7 +5425,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.567, "x": 0.567,
"y": -125.448, "y": -149.282,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -5814,7 +5814,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": -60, "y": -70,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -5854,8 +5854,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 164, "width": 170,
"height": 80 "height": 110
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -5950,9 +5950,9 @@
}, },
"_alignFlags": 45, "_alignFlags": 45,
"_target": null, "_target": null,
"_left": 18, "_left": 25,
"_right": 18, "_right": 25,
"_top": 170, "_top": 190,
"_bottom": 50, "_bottom": 50,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
@@ -5999,8 +5999,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 200, "width": 220,
"height": 300 "height": 350
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -6304,8 +6304,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 200, "width": 220,
"height": 300 "height": 350
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -6472,7 +6472,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": -184.855, "y": -211.807,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -6565,7 +6565,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 600, "width": 666.6666666666667,
"height": 200 "height": 200
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -7300,7 +7300,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 180, "width": 200,
"height": 60 "height": 60
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -7455,8 +7455,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 200, "width": 220,
"height": 300 "height": 350
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",

File diff suppressed because it is too large Load Diff

View File

@@ -32,7 +32,7 @@ export class CardsCompComp extends CCComp {
this.on(GameEvent.HeroSkillSelect, this.addToQueue, this); this.on(GameEvent.HeroSkillSelect, this.addToQueue, this);
this.on(GameEvent.HeroSelect, this.addToQueue, this); this.on(GameEvent.HeroSelect, this.addToQueue, this);
this.on(GameEvent.CardRefresh, this.addToQueue, this); this.on(GameEvent.CardRefresh, this.addToQueue, this);
this.on(GameEvent.MissionEnd, this.clear_cards, this);
this.on(GameEvent.HeroSkillSelectEnd, this.close_cards, this); this.on(GameEvent.HeroSkillSelectEnd, this.close_cards, this);
this.on(GameEvent.CardsClose, this.close_cards, this); this.on(GameEvent.CardsClose, this.close_cards, this);
@@ -144,6 +144,8 @@ export class CardsCompComp extends CCComp {
show(){ show(){
// 设置初始状态 // 设置初始状态
smc.mission.pause=true smc.mission.pause=true
this.node.getChildByName("Button").setPosition(v3(0, this.node.getChildByName("Button").getPosition().y, 0))
this.node.getChildByName("top").setPosition(v3(0, this.node.getChildByName("top").getPosition().y, 0))
this.node.setPosition(v3(0, 0, 0)); this.node.setPosition(v3(0, 0, 0));
this.node.setScale(v3(0, 0, 1)); this.node.setScale(v3(0, 0, 1));
@@ -170,7 +172,9 @@ export class CardsCompComp extends CCComp {
}) })
.start(); .start();
} }
clear_cards(){
this.cardQueue = [];
}
//放弃选择 //放弃选择
give_up_select(){ give_up_select(){
this.hide() this.hide()