增加ui美术资源

This commit is contained in:
cebgcontract 2022-06-20 14:23:26 +08:00
parent 7590922040
commit 3e36fc3944
43 changed files with 3095 additions and 2639 deletions

View File

@ -47,7 +47,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 450, "width": 450,
"height": 400 "height": 330
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -119,7 +119,7 @@
"_position": { "_position": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 200, "y": 165,
"z": 0 "z": 0
}, },
"_scale": { "_scale": {
@ -164,10 +164,10 @@
"height": 40 "height": 40
}, },
"_N$startAxis": 0, "_N$startAxis": 0,
"_N$paddingLeft": 0, "_N$paddingLeft": 10,
"_N$paddingRight": 0, "_N$paddingRight": 10,
"_N$paddingTop": 0, "_N$paddingTop": 10,
"_N$paddingBottom": 0, "_N$paddingBottom": 10,
"_N$spacingX": 10, "_N$spacingX": 10,
"_N$spacingY": 10, "_N$spacingY": 10,
"_N$verticalDirection": 1, "_N$verticalDirection": 1,

View File

@ -149,9 +149,7 @@
"_enabled": true, "_enabled": true,
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": null,
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
@ -199,15 +197,15 @@
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 51, "r": 255,
"g": 0, "g": 255,
"b": 255, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 48.38, "width": 100,
"height": 40 "height": 14
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -217,7 +215,7 @@
"_position": { "_position": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": -50, "x": -50,
"y": -53, "y": -56,
"z": 0 "z": 0
}, },
"_scale": { "_scale": {
@ -251,8 +249,8 @@
"_useOriginalSize": false, "_useOriginalSize": false,
"_string": "loading", "_string": "loading",
"_N$string": "loading", "_N$string": "loading",
"_fontSize": 15, "_fontSize": 12,
"_lineHeight": 40, "_lineHeight": 14,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
@ -261,7 +259,7 @@
"_N$horizontalAlign": 0, "_N$horizontalAlign": 0,
"_N$verticalAlign": 1, "_N$verticalAlign": 1,
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 3,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "" "_id": ""
}, },

View File

@ -205,14 +205,14 @@
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 0, "r": 255,
"g": 0, "g": 255,
"b": 0, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 75.04, "width": 0,
"height": 40 "height": 40
}, },
"_anchorPoint": { "_anchorPoint": {
@ -222,7 +222,7 @@
}, },
"_position": { "_position": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": -162, "x": -143,
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
@ -255,9 +255,9 @@
}, },
"_enabled": true, "_enabled": true,
"_useOriginalSize": false, "_useOriginalSize": false,
"_string": "name", "_string": "",
"_N$string": "name", "_N$string": "",
"_fontSize": 30, "_fontSize": 25,
"_lineHeight": 40, "_lineHeight": 40,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
@ -303,14 +303,14 @@
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 0, "r": 246,
"g": 0, "g": 190,
"b": 0, "b": 93,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 108.44, "width": 0,
"height": 40 "height": 40
}, },
"_anchorPoint": { "_anchorPoint": {
@ -353,9 +353,9 @@
}, },
"_enabled": true, "_enabled": true,
"_useOriginalSize": false, "_useOriginalSize": false,
"_string": "1000.00", "_string": "",
"_N$string": "1000.00", "_N$string": "",
"_fontSize": 30, "_fontSize": 25,
"_lineHeight": 40, "_lineHeight": 40,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,

View File

@ -18,36 +18,42 @@
"_children": [ "_children": [
{ {
"__id__": 2 "__id__": 2
},
{
"__id__": 5
},
{
"__id__": 8
} }
], ],
"_active": true, "_active": true,
"_level": 1, "_level": 1,
"_components": [ "_components": [
{ {
"__id__": 5 "__id__": 11
}, },
{ {
"__id__": 6 "__id__": 12
}, },
{ {
"__id__": 7 "__id__": 13
} }
], ],
"_prefab": { "_prefab": {
"__id__": 9 "__id__": 15
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 153, "r": 255,
"g": 153, "g": 255,
"b": 153, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 40, "width": 116,
"height": 80 "height": 36
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -82,14 +88,14 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "New Label", "_name": "btn-selected",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_level": 4, "_level": 2,
"_components": [ "_components": [
{ {
"__id__": 3 "__id__": 3
@ -101,9 +107,211 @@
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 153, "r": 255,
"g": 153, "g": 255,
"b": 153, "b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 116,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "89db0d56-124d-4f2b-99a8-a9c433657a84"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "907f9b53-1333-4900-b166-4ba7a7b6e09f"
},
"fileId": "62eNCW2ZlF75HgJ9bdc0qT",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "btn-disable",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 105,
"height": 27
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "47eb8576-31c6-4604-89dd-5e8c98a25ac5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "907f9b53-1333-4900-b166-4ba7a7b6e09f"
},
"fileId": "487HjGGIVF/72CFdXUow7u",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 4,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 254,
"g": 255,
"b": 175,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
@ -128,14 +336,14 @@
"y": 1, "y": 1,
"z": 1 "z": 1
}, },
"_rotationX": 90, "_rotationX": 0,
"_rotationY": 90, "_rotationY": 0,
"_quat": { "_quat": {
"__type__": "cc.Quat", "__type__": "cc.Quat",
"x": 0, "x": 0,
"y": 0, "y": 0,
"z": -0.7071067811865475, "z": 0,
"w": 0.7071067811865476 "w": 1
}, },
"_skewX": 0, "_skewX": 0,
"_skewY": 0, "_skewY": 0,
@ -147,7 +355,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 2 "__id__": 8
}, },
"_enabled": true, "_enabled": true,
"_useOriginalSize": false, "_useOriginalSize": false,
@ -185,11 +393,11 @@
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": false,
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "13d3eb87-b218-4fb7-b7c2-31e8a58b67bc" "__uuid__": "89db0d56-124d-4f2b-99a8-a9c433657a84"
}, },
"_type": 1, "_type": 1,
"_sizeMode": 0, "_sizeMode": 0,
@ -215,26 +423,29 @@
}, },
"_enabled": true, "_enabled": true,
"titleLabel": { "titleLabel": {
"__id__": 3 "__id__": 9
}, },
"border": { "normalLayer": {
"__id__": 1 "__id__": 5
},
"selectLayer": {
"__id__": 2
}, },
"title": "", "title": "",
"selected": false, "selected": false,
"colors": [ "colors": [
{ {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 127, "r": 255,
"g": 127, "g": 255,
"b": 127, "b": 255,
"a": 255 "a": 255
}, },
{ {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 0, "r": 254,
"g": 255, "g": 255,
"b": 0, "b": 175,
"a": 255 "a": 255
} }
], ],
@ -252,7 +463,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 8 "__id__": 14
} }
], ],
"_N$interactable": true, "_N$interactable": true,

View File

@ -0,0 +1,7 @@
{
"ver": "1.0.1",
"uuid": "d0f80a0b-e9bb-4ca7-96f0-58353a2488bb",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "52c1b6be-727c-4dd8-b6c6-e6db5665300f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"bar-black": {
"ver": "1.0.4",
"uuid": "040ee26c-fe0c-4996-a957-4c17cd376ff5",
"rawTextureUuid": "52c1b6be-727c-4dd8-b6c6-e6db5665300f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 38,
"height": 35,
"rawWidth": 38,
"rawHeight": 35,
"borderTop": 9,
"borderBottom": 8,
"borderLeft": 9,
"borderRight": 9,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "bb24d3bb-5178-4164-aa96-99004ac11978",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"bg-active": {
"ver": "1.0.4",
"uuid": "ef910b74-7518-4046-b523-593f1eb10a6d",
"rawTextureUuid": "bb24d3bb-5178-4164-aa96-99004ac11978",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 111,
"height": 21,
"rawWidth": 111,
"rawHeight": 21,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "96cdeac0-2701-48e2-b7bd-2273d22624c5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"bg-black": {
"ver": "1.0.4",
"uuid": "fad979aa-0f36-462e-aa08-698c5506e6e6",
"rawTextureUuid": "96cdeac0-2701-48e2-b7bd-2273d22624c5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 425,
"height": 35,
"rawWidth": 425,
"rawHeight": 35,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "94d40a43-2a04-43be-ba22-f47f7aad247d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"bg-blue": {
"ver": "1.0.4",
"uuid": "f201fb81-4964-47e4-a820-bececa838851",
"rawTextureUuid": "94d40a43-2a04-43be-ba22-f47f7aad247d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 425,
"height": 404,
"rawWidth": 425,
"rawHeight": 404,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "52645aef-c7f2-4204-88fc-30d3c2dced23",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"btn-bg-blue": {
"ver": "1.0.4",
"uuid": "4ae4aa57-b716-4630-bda9-7496f9c38443",
"rawTextureUuid": "52645aef-c7f2-4204-88fc-30d3c2dced23",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 124,
"height": 47,
"rawWidth": 124,
"rawHeight": 47,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "71c6d77f-e06f-4e88-8f25-64935293af23",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"btn-bg-yellow": {
"ver": "1.0.4",
"uuid": "9dc44980-73ff-4dd0-aea1-4436a816a533",
"rawTextureUuid": "71c6d77f-e06f-4e88-8f25-64935293af23",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 117,
"height": 45,
"rawWidth": 117,
"rawHeight": 45,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "7bbc11a0-158b-43ff-987a-1b707b7ee709",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"btn-disable": {
"ver": "1.0.4",
"uuid": "47eb8576-31c6-4604-89dd-5e8c98a25ac5",
"rawTextureUuid": "7bbc11a0-158b-43ff-987a-1b707b7ee709",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 105,
"height": 27,
"rawWidth": 105,
"rawHeight": 27,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 773 B

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "f6b645db-aa13-4a65-a000-03a520b0c979",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"btn-receive": {
"ver": "1.0.4",
"uuid": "0318efa7-0d9f-4101-b916-cc871a7fdc52",
"rawTextureUuid": "f6b645db-aa13-4a65-a000-03a520b0c979",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 21,
"height": 20,
"rawWidth": 21,
"rawHeight": 20,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "6d4421eb-8d4f-4ec6-915a-f22402c93773",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"btn-selected": {
"ver": "1.0.4",
"uuid": "89db0d56-124d-4f2b-99a8-a9c433657a84",
"rawTextureUuid": "6d4421eb-8d4f-4ec6-915a-f22402c93773",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 116,
"height": 36,
"rawWidth": 116,
"rawHeight": 36,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "1ee0c9cf-2003-4f18-9256-f81d8ddaf4de",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"btn-send": {
"ver": "1.0.4",
"uuid": "238e7701-9a0d-4bb1-8f99-45b1a59a4ce7",
"rawTextureUuid": "1ee0c9cf-2003-4f18-9256-f81d8ddaf4de",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 26,
"height": 27,
"rawWidth": 26,
"rawHeight": 27,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "8a6520fe-085f-418d-b612-0239d90ca098",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"icon-cp": {
"ver": "1.0.4",
"uuid": "5298fe45-c38f-416c-a27d-073a1097a3ba",
"rawTextureUuid": "8a6520fe-085f-418d-b612-0239d90ca098",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 31,
"rawWidth": 32,
"rawHeight": 31,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "7b5dc213-8939-4974-a92e-6444a95ce2b2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"icon-plus": {
"ver": "1.0.4",
"uuid": "00fac768-80b9-4a74-8070-fef6c27c807c",
"rawTextureUuid": "7b5dc213-8939-4974-a92e-6444a95ce2b2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 21,
"height": 23,
"rawWidth": 21,
"rawHeight": 23,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 B

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "480808a6-08b9-4aa2-ab9a-925c47a8cf43",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"line-blue": {
"ver": "1.0.4",
"uuid": "a7a228dd-6a62-4d0e-ac15-14634b0d041f",
"rawTextureUuid": "480808a6-08b9-4aa2-ab9a-925c47a8cf43",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1,
"height": 20,
"rawWidth": 1,
"rawHeight": 20,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "c4880e20-dd01-4133-9247-1a85347f07a7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"main-bg": {
"ver": "1.0.4",
"uuid": "b6ad997e-434c-4a67-a5c2-21dc292f2cc0",
"rawTextureUuid": "c4880e20-dd01-4133-9247-1a85347f07a7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1024,
"height": 512,
"rawWidth": 1024,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "64c2be77-c1a2-4351-9e4d-522b35ae0fc2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"rect-blue": {
"ver": "1.0.4",
"uuid": "16696a1b-0613-47b2-bae9-c1a4b7f3450a",
"rawTextureUuid": "64c2be77-c1a2-4351-9e4d-522b35ae0fc2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 400,
"height": 61,
"rawWidth": 400,
"rawHeight": 61,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,31 @@
{
"ver": "2.2.0",
"uuid": "f34c1753-914d-42a2-a09b-95860f065d7a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"rect-line": {
"ver": "1.0.4",
"uuid": "f8a72ecb-343d-4c53-9429-112006b05c75",
"rawTextureUuid": "f34c1753-914d-42a2-a09b-95860f065d7a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 40,
"height": 39,
"rawWidth": 40,
"rawHeight": 39,
"borderTop": 9,
"borderBottom": 9,
"borderLeft": 9,
"borderRight": 9,
"subMetas": {}
}
}
}

View File

@ -48,12 +48,11 @@ export default class JCWallet {
public data: IAccount[] = [] public data: IAccount[] = []
constructor() { constructor() {
this.web3 = new Web3('https://rpc-testnet.kcc.network') this.web3 = new Web3('https://rpc-mainnet.kcc.network')
this.erc20Standard = new ERC20Standard(this.web3); this.erc20Standard = new ERC20Standard(this.web3);
this.erc721Standard = new ERC721Standard(this.web3); this.erc721Standard = new ERC721Standard(this.web3);
this.wallet = this.web3.eth.accounts.wallet.load(this.password) this.wallet = this.web3.eth.accounts.wallet.load(this.password)
if (!this.wallet) { if (!this.wallet || this.wallet.length === 0) {
this.wallet = this.web3.eth.accounts.wallet;
let key = '0xa6c4354fb93a55fb67117969a12465209395ec31089fea9e6e061f873b87a473' let key = '0xa6c4354fb93a55fb67117969a12465209395ec31089fea9e6e061f873b87a473'
this.wallet.add(key); this.wallet.add(key);
this.web3.eth.accounts.wallet.save(this.password); this.web3.eth.accounts.wallet.save(this.password);

View File

@ -56,7 +56,7 @@ export default class OneNFT extends WalletBase {
} }
async refreshNFTInfo() { async refreshNFTInfo() {
const url = `${BASE_TOKEN_URI}${this.data.tokenId}?t=${Date.now()}` const url = `${BASE_TOKEN_URI}${this.data.tokenId}`
const info: any = await GET_JSON(url) const info: any = await GET_JSON(url)
console.log(info) console.log(info)
this.data.name = info.name this.data.name = info.name
@ -66,8 +66,9 @@ export default class OneNFT extends WalletBase {
updateUI() { updateUI() {
if (this.data.image) { if (this.data.image) {
let self = this
cc.loader.load(this.data.image, function(err, texture){ cc.loader.load(this.data.image, function(err, texture){
this.icon.spriteFrame = new cc.SpriteFrame(texture); self.icon.spriteFrame = new cc.SpriteFrame(texture);
}) })
} }
this.nftIDlabel.string = this.data.tokenId this.nftIDlabel.string = this.data.tokenId

View File

@ -12,7 +12,9 @@ export default class TextBtn extends WalletBase {
titleLabel: cc.Label = null; titleLabel: cc.Label = null;
@property(cc.Node) @property(cc.Node)
border: cc.Node = null; normalLayer: cc.Node = null;
@property(cc.Node)
selectLayer: cc.Node = null;
@Watch() @Watch()
@property @property
@ -43,7 +45,8 @@ export default class TextBtn extends WalletBase {
this.titleLabel.string = this.title this.titleLabel.string = this.title
let color = this.selected ? this.colors[1] : this.colors[0]; let color = this.selected ? this.colors[1] : this.colors[0];
this.titleLabel.node.color = color this.titleLabel.node.color = color
this.border.color = color this.selectLayer && (this.selectLayer.active = this.selected)
this.normalLayer && (this.normalLayer.active = !this.selected)
} }
onClick() { onClick() {

View File

@ -51,7 +51,7 @@ export default class TokenTab extends WalletBase {
const btn = cc.instantiate(this.btnPreb) const btn = cc.instantiate(this.btnPreb)
const btnM: TextBtn = btn.getComponent(TextBtn) const btnM: TextBtn = btn.getComponent(TextBtn)
this.btnGroup.addBtn(btnM); this.btnGroup.addBtn(btnM);
btnM.title = this.titles[i] btnM.title = this.titles[i].replace(/^\S/, s => s.toUpperCase())
btnM.index = i btnM.index = i
btnM.selected = i === 0 btnM.selected = i === 0
} }

File diff suppressed because it is too large Load Diff

View File

@ -21,8 +21,8 @@ export default class WalletController extends cc.Component {
@property(cc.Node) @property(cc.Node)
private walletNode: cc.Node = null private walletNode: cc.Node = null
// private apiBase = 'https://market.cebg.games' private apiBase = 'https://market.cebg.games'
private apiBase = 'https://game2006api-test.kingsome.cn' //private apiBase = 'https://game2006api-test.kingsome.cn'
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
@ -31,7 +31,8 @@ export default class WalletController extends cc.Component {
start () { start () {
this.walletNode.active = false; this.walletNode.active = false;
this.wallet = new JCWallet(); this.wallet = new JCWallet();
let chains = CC_DEBUG ? [322, 97] : [321, 56] //let chains = CC_DEBUG ? [322, 97] : [321, 56]
let chains = [321]
this.wallet.init({ this.wallet.init({
chains chains
}) })