修改节点中文名,添加商城艺术字体

This commit is contained in:
computer\尼卡 2025-07-01 14:21:12 +08:00
parent 7a5f5b71a4
commit b3a08b364a
164 changed files with 16800 additions and 13895 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 234 KiB

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,5 @@
import List from "../../Script/module/RankList/List";
import NumberToImage from "../../Script/NumberToImage";
const { ccclass, property } = cc._decorator;
@ -30,17 +31,20 @@ export default class NewClass extends cc.Component {
];
for (let i = 1; i <= 8 && i < this.itemList.children.length; i++) {
const spriteComp = this.itemList.children[i].children[0].getComponent(cc.Sprite);
const price = this.itemList.children[i].children[1].getComponent(cc.Label);
const title = this.itemList.children[i].children[2].getComponent(cc.Label);
const price = this.itemList.children[i].children[1];
const title = this.itemList.children[i].children[2];
const product = products[i - 1];
if (spriteComp && product) {
// TODO: 根据 product_id 或 name 设置 spriteComp.spriteFrame
}
if (price && product) {
price.string = (product.price / 100).toString() + "元";
NumberToImage.numberToImageNodes(product.price / 100, 25, 20, "cost_", price, false)
}
if (title && product) {
title.string = product.name;
NumberToImage.numberToImageNodes(product.price / 100, 40, 25, "scoin_", title, false)
}
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1214,
221,
1314,
91,
32,
61
],
@ -18,7 +18,6 @@
32,
61
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
976,
951,
98,
50,
59

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1338,
120,
1474,
143,
45,
56
],

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_7",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1049,
98,
42,
59
],
"offset": [
0,
0
],
"originalSize": [
42,
59
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1165,
66,
1261,
158,
40,
63
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1462,
120,
1648,
75,
33,
48
],

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
420,
431,
132,
25,
38

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_0 (2)",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
849,
159,
64,
65
],
"offset": [
0,
0
],
"originalSize": [
64,
65
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1087,
159,
1188,
1,
43,
64
],

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1153,
1272,
223,
30,
59

View File

@ -0,0 +1,29 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "cost_2",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1172,
226,
25,
37
],
"offset": [
0,
0
],
"originalSize": [
25,
37
],
"rotated": 1,
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1132,
158,
1321,
1,
36,
63
],

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
230,
207,
135,
22,
32

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1334,
219,
1490,
1,
33,
57
],
@ -18,7 +18,6 @@
33,
57
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
595,
606,
112,
45,
65

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1456,
193,
1511,
60,
21,
31
],

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_3",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1093,
96,
44,
61
],
"offset": [
0,
0
],
"originalSize": [
44,
61
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1502,
1,
1669,
186,
45,
42
],
@ -18,6 +18,7 @@
45,
42
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1085,
1,
1213,
159,
46,
64
],

View File

@ -0,0 +1,29 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "cost_0",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1683,
50,
30,
38
],
"offset": [
0,
0
],
"originalSize": [
30,
38
],
"rotated": 1,
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
935,
1069,
226,
27,
36

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1462,
170,
1443,
61,
21,
32
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1342,
60,
1481,
83,
45,
56
],

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
785,
796,
109,
48,
57

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1385,
118,
1521,
141,
41,
56
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1062,
135,
1375,
63,
22,
32
],

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
499,
510,
131,
26,
54

View File

@ -0,0 +1,29 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "cost_10",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
590,
112,
9,
10
],
"offset": [
0,
0
],
"originalSize": [
9,
10
],
"rotated": 1,
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1114,
225,
1263,
66,
24,
37
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1265,
1,
1429,
147,
43,
58
],

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
701,
794,
229,
24,
38

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1096,
135,
1409,
61,
21,
32
],

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
834,
969,
159,
51,
65

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1028,
275,
135,
22,
32

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
749,
818,
159,
66,
29

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_5",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1348,
91,
42,
60
],
"offset": [
0,
0
],
"originalSize": [
42,
60
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1122,
67,
1230,
93,
41,
63
],

View File

@ -0,0 +1,29 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "cost_yuan",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1443,
207,
46,
43
],
"offset": [
0,
0
],
"originalSize": [
46,
43
],
"rotated": 1,
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1051,
1147,
226,
23,
26

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
940,
1022,
159,
51,
65

View File

@ -23,6 +23,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var NumberToImage_1 = require("../../Script/NumberToImage");
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var NewClass = /** @class */ (function (_super) {
__extends(NewClass, _super);
@ -54,17 +55,17 @@ var NewClass = /** @class */ (function (_super) {
];
for (var i = 1; i <= 8 && i < this.itemList.children.length; i++) {
var spriteComp = this.itemList.children[i].children[0].getComponent(cc.Sprite);
var price = this.itemList.children[i].children[1].getComponent(cc.Label);
var title = this.itemList.children[i].children[2].getComponent(cc.Label);
var price = this.itemList.children[i].children[1];
var title = this.itemList.children[i].children[2];
var product = products[i - 1];
if (spriteComp && product) {
// TODO: 根据 product_id 或 name 设置 spriteComp.spriteFrame
}
if (price && product) {
price.string = (product.price / 100).toString() + "元";
NumberToImage_1.default.numberToImageNodes(product.price / 100, 25, 20, "cost_", price, false);
}
if (title && product) {
title.string = product.name;
NumberToImage_1.default.numberToImageNodes(product.price / 100, 40, 25, "scoin_", title, false);
}
}
};

View File

@ -1 +1 @@
{"version":3,"sources":["assets\\shop\\script\\shop.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEM,IAAA,KAAwB,EAAE,CAAC,UAAU,EAAnC,OAAO,aAAA,EAAE,QAAQ,cAAkB,CAAC;AAG5C;IAAsC,4BAAY;IAAlD;QAAA,qEAkDC;QAjDG,MAAM;QAEN,UAAI,GAAY,IAAI,CAAC;QACrB,MAAM;QAEN,cAAQ,GAAY,IAAI,CAAC;;QA2CzB,iBAAiB;IACrB,CAAC;IA3CG,eAAe;IAEf,wBAAK,GAAL;QACI,IAAI,CAAC,QAAQ,EAAE,CAAC;IACpB,CAAC;IACD,QAAQ;IACR,2BAAQ,GAAR;QACI,SAAS;QACT,IAAM,QAAQ,GAAG;YACb,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YACzE,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YACnE,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,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AC3E,IAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAChC,IAAI,UAAU,IAAI,OAAO,EAAE;gBACvB,uDAAuD;aAC1D;YACD,IAAI,KAAK,IAAI,OAAO,EAAE;gBAClB,KAAK,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAC;aACzD;YACD,IAAI,KAAK,IAAI,OAAO,EAAE;gBAClB,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;aAC/B;SACJ;IACL,CAAC;IAGD,QAAQ;IACR,4BAAS,GAAT;QACI,OAAO;QACP,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;IA5CD;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;0CACG;IAGrB;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;8CACO;IANR,QAAQ;QAD5B,OAAO;OACa,QAAQ,CAkD5B;IAAD,eAAC;CAlDD,AAkDC,CAlDqC,EAAE,CAAC,SAAS,GAkDjD;kBAlDoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["import List from \"../../Script/module/RankList/List\";\r\n\r\nconst { ccclass, property } = cc._decorator;\r\n\r\n@ccclass\r\nexport default class NewClass extends cc.Component {\r\n //商店界面\r\n @property(cc.Node)\r\n shop: cc.Node = null;\r\n //商品列表\r\n @property(cc.Node)\r\n itemList: cc.Node = null;\r\n // onLoad () {}\r\n\r\n start() {\r\n this.openShop();\r\n }\r\n //打开商店界面\r\n openShop() {\r\n // 商品数据数组\r\n const products = [\r\n { product_id: \"gold_pack_1\", name: \"金币包1\", price: 600, title: \"3x2六档金币\" },\r\n { product_id: \"gold_pack_2\", name: \"金币包2\", price: 3600, title: \"\" },\r\n { product_id: \"gold_pack_3\", name: \"金币包3\", price: 6800, title: \"\" },\r\n { product_id: \"gold_pack_4\", name: \"金币包4\", price: 12800, title: \"\" },\r\n { product_id: \"gold_pack_5\", name: \"金币包5\", price: 32800, title: \"\" },\r\n { product_id: \"gold_pack_6\", name: \"金币包6\", price: 64800, title: \"\" },\r\n { product_id: \"unlimited_health_bundle_1\", name: \"无限体力组合包1\", price: 1800, title: \"3个横版礼包\" },\r\n { product_id: \"unlimited_health_bundle_2\", name: \"无限体力组合包2\", price: 6600, title: \"\" }\r\n ];\r\n for (let i = 1; i <= 8 && i < this.itemList.children.length; i++) {\r\n const spriteComp = this.itemList.children[i].children[0].getComponent(cc.Sprite);\r\n const price = this.itemList.children[i].children[1].getComponent(cc.Label);\r\n const title = this.itemList.children[i].children[2].getComponent(cc.Label);\r\n const product = products[i - 1];\r\n if (spriteComp && product) {\r\n // TODO: 根据 product_id 或 name 设置 spriteComp.spriteFrame\r\n }\r\n if (price && product) {\r\n price.string = (product.price / 100).toString() + \"元\";\r\n }\r\n if (title && product) {\r\n title.string = product.name;\r\n }\r\n }\r\n }\r\n\r\n\r\n //关闭商店界面\r\n closeShop() {\r\n //销毁预制体\r\n this.shop.destroy();\r\n }\r\n\r\n // update (dt) {}\r\n}\r\n"]}
{"version":3,"sources":["assets\\shop\\script\\shop.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,4DAAuD;AAEjD,IAAA,KAAwB,EAAE,CAAC,UAAU,EAAnC,OAAO,aAAA,EAAE,QAAQ,cAAkB,CAAC;AAG5C;IAAsC,4BAAY;IAAlD;QAAA,qEAqDC;QApDG,MAAM;QAEN,UAAI,GAAY,IAAI,CAAC;QACrB,MAAM;QAEN,cAAQ,GAAY,IAAI,CAAC;;QA8CzB,iBAAiB;IACrB,CAAC;IA9CG,eAAe;IAEf,wBAAK,GAAL;QACI,IAAI,CAAC,QAAQ,EAAE,CAAC;IACpB,CAAC;IACD,QAAQ;IACR,2BAAQ,GAAR;QACI,SAAS;QACT,IAAM,QAAQ,GAAG;YACb,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EA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AC,CAAC,CAAC,CAAC;YACpD,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACpD,IAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAEhC,IAAI,UAAU,IAAI,OAAO,EAAE;gBACvB,uDAAuD;aAC1D;YAGD,IAAI,KAAK,IAAI,OAAO,EAAE;gBAClB,uBAAa,CAAC,kBAAkB,CAAC,OAAO,CAAC,KAAK,GAAG,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;aACvF;YACD,IAAI,KAAK,IAAI,OAAO,EAAE;gBAClB,uBAAa,CAAC,kBAAkB,CAAC,OAAO,CAAC,KAAK,GAAG,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;aACxF;SACJ;IACL,CAAC;IAGD,QAAQ;IACR,4BAAS,GAAT;QACI,OAAO;QACP,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;IA/CD;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;0CACG;IAGrB;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;8CACO;IANR,QAAQ;QAD5B,OAAO;OACa,QAAQ,CAqD5B;IAAD,eAAC;CArDD,AAqDC,CArDqC,EAAE,CAAC,SAAS,GAqDjD;kBArDoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["import List from \"../../Script/module/RankList/List\";\r\nimport NumberToImage from \"../../Script/NumberToImage\";\r\n\r\nconst { ccclass, property } = cc._decorator;\r\n\r\n@ccclass\r\nexport default class NewClass extends cc.Component {\r\n //商店界面\r\n @property(cc.Node)\r\n shop: cc.Node = null;\r\n //商品列表\r\n @property(cc.Node)\r\n itemList: cc.Node = null;\r\n // onLoad () {}\r\n\r\n start() {\r\n this.openShop();\r\n }\r\n //打开商店界面\r\n openShop() {\r\n // 商品数据数组\r\n const products = [\r\n { product_id: \"gold_pack_1\", name: \"金币包1\", price: 600, title: \"3x2六档金币\" },\r\n { product_id: \"gold_pack_2\", name: \"金币包2\", price: 3600, title: \"\" },\r\n { product_id: \"gold_pack_3\", name: \"金币包3\", price: 6800, title: \"\" },\r\n { product_id: \"gold_pack_4\", name: \"金币包4\", price: 12800, title: \"\" },\r\n { product_id: \"gold_pack_5\", name: \"金币包5\", price: 32800, title: \"\" },\r\n { product_id: \"gold_pack_6\", name: \"金币包6\", price: 64800, title: \"\" },\r\n { product_id: \"unlimited_health_bundle_1\", name: \"无限体力组合包1\", price: 1800, title: \"3个横版礼包\" },\r\n { product_id: \"unlimited_health_bundle_2\", name: \"无限体力组合包2\", price: 6600, title: \"\" }\r\n ];\r\n for (let i = 1; i <= 8 && i < this.itemList.children.length; i++) {\r\n const spriteComp = this.itemList.children[i].children[0].getComponent(cc.Sprite);\r\n const price = this.itemList.children[i].children[1];\r\n const title = this.itemList.children[i].children[2];\r\n const product = products[i - 1];\r\n\r\n if (spriteComp && product) {\r\n // TODO: 根据 product_id 或 name 设置 spriteComp.spriteFrame\r\n }\r\n\r\n\r\n if (price && product) {\r\n NumberToImage.numberToImageNodes(product.price / 100, 25, 20, \"cost_\", price, false)\r\n }\r\n if (title && product) {\r\n NumberToImage.numberToImageNodes(product.price / 100, 40, 25, \"scoin_\", title, false)\r\n }\r\n }\r\n }\r\n\r\n\r\n //关闭商店界面\r\n closeShop() {\r\n //销毁预制体\r\n this.shop.destroy();\r\n }\r\n\r\n // update (dt) {}\r\n}\r\n"]}

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
555,
566,
131,
26,
38

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1130,
132,
1223,
67,
24,
38
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1041,
1,
1126,
159,
42,
65
],

View File

@ -0,0 +1,29 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "cost_6",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1107,
226,
26,
38
],
"offset": [
0,
0
],
"originalSize": [
26,
38
],
"rotated": 1,
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1458,
101,
1592,
59,
17,
32
],

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1310,
1454,
1,
34,
57

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1044,
1170,
159,
41,
65

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1390,
1,
1534,
199,
33,
54
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1442,
223,
1637,
179,
30,
47
],
@ -18,7 +18,6 @@
30,
47
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1458,
52,
1680,
1,
41,
47
],

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
264,
241,
135,
22,
32

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1496,
190,
1722,
85,
31,
47
],
@ -18,7 +18,6 @@
31,
47
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
380,
391,
132,
25,
38

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
339,
350,
132,
25,
39

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
896,
1030,
226,
27,
37

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1133,
1279,
1,
40,
63

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_6",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1359,
1,
44,
60
],
"offset": [
0,
0
],
"originalSize": [
44,
60
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -0,0 +1,29 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "cost_8",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1067,
68,
26,
38
],
"offset": [
0,
0
],
"originalSize": [
26,
38
],
"rotated": 1,
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1428,
123,
1599,
129,
32,
49
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1170,
196,
1249,
225,
21,
24
],

View File

@ -0,0 +1,29 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_0 (14)",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
158,
137,
19,
23
],
"offset": [
0,
0
],
"originalSize": [
19,
23
],
"rotated": 1,
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
880,
855,
100,
45,
57

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1433,
174,
1477,
60,
21,
32
],
@ -18,6 +18,7 @@
21,
32
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -0,0 +1,29 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "cost_9",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
989,
226,
27,
39
],
"offset": [
0,
0
],
"originalSize": [
27,
39
],
"rotated": 1,
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1497,
123,
1603,
198,
32,
48
],
@ -18,7 +18,6 @@
32,
48
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
662,
673,
112,
45,
60

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_9",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1139,
96,
43,
61
],
"offset": [
0,
0
],
"originalSize": [
43,
61
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
990,
1,
1075,
159,
49,
65
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1501,
89,
1723,
36,
32,
47
],
@ -18,7 +18,6 @@
32,
47
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1346,
1525,
1,
42,
56

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1216,
1405,
1,
47,
58

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1193,
196,
754,
230,
23,
38
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1393,
223,
1721,
134,
30,
47
],
@ -18,7 +18,6 @@
30,
47
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_4",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1184,
94,
44,
63
],
"offset": [
0,
0
],
"originalSize": [
44,
63
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1389,
59,
1564,
141,
33,
56
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1079,
68,
1145,
1,
41,
65
],

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
741,
229,
1183,
68,
24,
38
],

View File

@ -0,0 +1,29 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_10",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1669,
145,
39,
47
],
"offset": [
0,
0
],
"originalSize": [
39,
47
],
"rotated": 1,
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1502,
45,
1713,
186,
44,
42
],
@ -18,6 +18,7 @@
44,
42
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1253,
61,
1392,
87,
43,
58
],

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
298,
309,
132,
25,
39

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1076,
1211,
226,
25,
36

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
781,
874,
226,
27,
64

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_0",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1599,
78,
47,
49
],
"offset": [
0,
0
],
"originalSize": [
47,
49
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "scoin_8",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1233,
1,
44,
63
],
"offset": [
0,
0
],
"originalSize": [
44,
63
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -5,8 +5,8 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1325,
181,
1683,
113,
30,
36
],
@ -18,6 +18,7 @@
30,
36
],
"rotated": 1,
"capInsets": [
0,
0,

View File

@ -5,7 +5,7 @@
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
724,
735,
110,
47,
59

View File

@ -0,0 +1,29 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "cost_7",
"texture": "f8d067a0-98d0-4a97-8159-506946262d4b",
"atlas": "fa9a438e-1f24-47fe-bbcd-b75abcff2ea8",
"rect": [
1683,
82,
29,
37
],
"offset": [
0,
0
],
"originalSize": [
29,
37
],
"rotated": 1,
"capInsets": [
0,
0,
0,
0
]
}
}

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More