Commit eff05818 authored by liujiangnan's avatar liujiangnan

feat

parent b0b1a4e8
......@@ -2771,7 +2771,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "389xV2zpxJUozPioVjTIIq"
"_id": "0fMbGJgBVJ87XLMA1ewiul"
},
{
"__type__": "cc.Label",
......@@ -2804,7 +2804,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "28FOiBSMxGEIhSO1biLWFB"
"_id": "35hwbEImhDA4/f7jN7SPTK"
},
{
"__type__": "cc.PrivateNode",
......@@ -2867,7 +2867,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "29vNEfrBVCQLIWKt3iCkug"
"_id": "c9NWT4RL9D5o3c2yQKzmAG"
},
{
"__type__": "cc.Label",
......@@ -2900,7 +2900,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "01LPm9mutGdZ9+ejPhZ92f"
"_id": "fevxcmlHFGip6IEtIO/btQ"
},
{
"__type__": "cc.PrivateNode",
......@@ -2963,7 +2963,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "28qwAbBZZO75pTU7Wgjlkf"
"_id": "d8/qzi5cdDF4dUIqNKyYkU"
},
{
"__type__": "cc.Label",
......@@ -2996,7 +2996,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "41QfxsoH1NWLyy+5CKX7A8"
"_id": "fc5B09rP5KSbVbLZ1SNWFv"
},
{
"__type__": "cc.PrivateNode",
......@@ -3059,7 +3059,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "b2hKDnKdhAcLklpZ6PpSsC"
"_id": "589w1uYjVJWYwOm5jh8Iws"
},
{
"__type__": "cc.Label",
......@@ -3092,7 +3092,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "c80WCy9IVP+JPKn8/7m64u"
"_id": "0f0GkCb/dETZd6XK5ZKyi6"
},
{
"__type__": "cc.PrivateNode",
......@@ -3155,7 +3155,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "cbQDlQACBF8rHw3r9yNTvo"
"_id": "19FcQhqllFmKzxDVsRBBHW"
},
{
"__type__": "cc.Label",
......@@ -3188,7 +3188,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "ceZ1P0t1VNsL5z2S3gLX3c"
"_id": "0d0w+l7npNO5B971BtnKDd"
},
{
"__type__": "cc.RichText",
......@@ -6369,7 +6369,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "331I+0bPJN0IBSuKNXe+7L"
"_id": "4aL0qutHVHBqZa0hVtbNoB"
},
{
"__type__": "cc.Label",
......@@ -6402,7 +6402,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "537qypCctIwrncFt8fuSwy"
"_id": "756jCjMipIG57e14FRYEXf"
},
{
"__type__": "cc.PrivateNode",
......@@ -6465,7 +6465,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "cc2T7webhEo66H1By3w0Oi"
"_id": "0fO+0buchA7IJJY41Xfx/O"
},
{
"__type__": "cc.Label",
......@@ -6498,7 +6498,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "1e1TPQXRRBIY+JfQ//ZKWw"
"_id": "fdzk8KCUlGuZU6oXq9oLAV"
},
{
"__type__": "cc.PrivateNode",
......@@ -6561,7 +6561,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "30ol49q0ZDg5l0JtcS2jtA"
"_id": "a95SYnHbZEZqqu5q5Zk+cN"
},
{
"__type__": "cc.Label",
......@@ -6594,7 +6594,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "c7M0+LYGtHiJ+JH8mNlCjZ"
"_id": "e4URzzVNRElbDCE0Dv/ZCh"
},
{
"__type__": "cc.RichText",
......@@ -7073,7 +7073,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "cbI9BZ4YtKi5QiuCVH7eax"
"_id": "e84Q+tTgpBUKbvsWUcLaSZ"
},
{
"__type__": "cc.Label",
......@@ -7106,7 +7106,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "c2zTQH1V9PgZITVbrlDWup"
"_id": "ce5J+VyUpCw7A0P3U1Pm1D"
},
{
"__type__": "cc.PrivateNode",
......@@ -7169,7 +7169,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "ff/r7eILRBgrKGjPdR/bHT"
"_id": "25XjoYpFpCm5xsh49kXAyK"
},
{
"__type__": "cc.Label",
......@@ -7202,7 +7202,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "ceAgQDRgFFbbs3tXVtklWt"
"_id": "30YXvXjJNAZo7+Ajtxoa37"
},
{
"__type__": "cc.PrivateNode",
......@@ -7265,7 +7265,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "3bvQVtSntCqL7wMPIo4Yd3"
"_id": "47jU4V4qtDPb4MYlCGhwWg"
},
{
"__type__": "cc.Label",
......@@ -7298,7 +7298,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "8diztGJtxFg5yYkemzZ6i6"
"_id": "1ah3XsE0ZFxZkq4/CePuND"
},
{
"__type__": "cc.RichText",
......@@ -7588,7 +7588,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "adpjLzd3RBiqN1HKl6n7rO"
"_id": "932AYruB5It69kJl0FCnbo"
},
{
"__type__": "cc.Label",
......@@ -7621,7 +7621,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "eb9WQdzPdLlZ9BQP8I95Vd"
"_id": "3eF37iczxKwIxNr2+5CHAE"
},
{
"__type__": "cc.PrivateNode",
......@@ -7684,7 +7684,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "9ai5shoTBH2LAa9Ae/0wo8"
"_id": "96P8kqRwtAY5E+DU6KT4vY"
},
{
"__type__": "cc.Label",
......@@ -7717,7 +7717,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "62HbKhXIVOZpbX45JG1c2G"
"_id": "d87UYDJSpHjadBOPyUfxGf"
},
{
"__type__": "cc.PrivateNode",
......@@ -7780,7 +7780,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "1c8kWoV1ZIP7//Jp7DCjJw"
"_id": "12iA6eeRdOAoIs5T/6y1Zc"
},
{
"__type__": "cc.Label",
......@@ -7813,7 +7813,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "59rIiXypdHirRmEQXUBPcX"
"_id": "01UCDtJXNPTaObIH+B0rs/"
},
{
"__type__": "cc.RichText",
......@@ -9238,7 +9238,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "4cOOvFVEJCxadrA1kG5mSg"
"_id": "ddWuTomL1DjYd2/fMv25Kr"
},
{
"__type__": "cc.Label",
......@@ -9271,7 +9271,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "f3L7cFa8ND/JO99+8tIQr2"
"_id": "56bbQ2ezdKjL0D028tGA3q"
},
{
"__type__": "cc.PrivateNode",
......@@ -9334,7 +9334,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "a4RYmGOvFEi4FYU0fCoVX/"
"_id": "70OnthvOpIroTn5csdPPBp"
},
{
"__type__": "cc.Label",
......@@ -9367,7 +9367,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "50D+M8lfVL5INE0Yh7TGSv"
"_id": "ceURIAnzhNNruim0LCBiZT"
},
{
"__type__": "cc.PrivateNode",
......@@ -9430,7 +9430,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "42AF7dIjZMA4fvKIpEcNHR"
"_id": "49XJUOBFRPq67/Y79zbplp"
},
{
"__type__": "cc.Label",
......@@ -9463,7 +9463,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "23S98CDV1BUIkur2S7hNid"
"_id": "705Mhv0W1JdozJ+Y8qX1j6"
},
{
"__type__": "cc.PrivateNode",
......@@ -9526,7 +9526,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "744wNMjMBCJ5AiXHX9kC1W"
"_id": "17IsWpQvpHjKsiPJtnYRWR"
},
{
"__type__": "cc.Label",
......@@ -9559,7 +9559,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "f3WPdyashIZYWL4OPznWPU"
"_id": "e8+zyRm7lFWZ6G1kdozVCs"
},
{
"__type__": "cc.PrivateNode",
......@@ -9622,7 +9622,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "dfKY/nZnxD94vS+gl3YMgw"
"_id": "94CZyQngVPDodIO4qMsWIX"
},
{
"__type__": "cc.Label",
......@@ -9655,7 +9655,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "a3ai7UOS9C0I+SLnvnlpS7"
"_id": "41cOGl6idD6IskXrHp1xPD"
},
{
"__type__": "cc.PrivateNode",
......@@ -9718,7 +9718,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "f8LkoSpIJCE5Oo+3yQW9cV"
"_id": "9c+n8TtQ9E4pND+GVhtQmi"
},
{
"__type__": "cc.Label",
......@@ -9751,7 +9751,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "daPTO45aJMG7wASaG3mGi3"
"_id": "d2N5sQx5VI9Ku0agikuSqs"
},
{
"__type__": "cc.PrivateNode",
......@@ -9814,7 +9814,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "0fWbH201BHoJzcpJn7pxXq"
"_id": "02aTVgxo9L9ZdvCiUEU64p"
},
{
"__type__": "cc.Label",
......@@ -9847,7 +9847,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "94a3WTmMhGM5QtDxc6mukQ"
"_id": "85n9TPKCJCKZV/VeQoIz2x"
},
{
"__type__": "cc.RichText",
......@@ -12593,7 +12593,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "602887HU1KLY+zZhL2mmsP"
"_id": "77LIG1rKREPYHSJh0+c+dy"
},
{
"__type__": "cc.Label",
......@@ -12626,7 +12626,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "50Ssz0D31FspxOdVIhJ48B"
"_id": "b2uHA0w7NGbocnNu99SEbR"
},
{
"__type__": "cc.PrivateNode",
......@@ -12689,7 +12689,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "12wGuXoVpOVK0ejAG7QpsI"
"_id": "09HfQng3dHiJSYegRq7Skm"
},
{
"__type__": "cc.Label",
......@@ -12722,7 +12722,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "efacspQtJMpoFc9K0WlCh/"
"_id": "1bOhqzIAxBSK0vC0vC3ZV3"
},
{
"__type__": "cc.PrivateNode",
......@@ -12785,7 +12785,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "15TVr9OJ5Bh4ix94KsYmJp"
"_id": "fd/OoDIUZHMLdSrmZ6zBeH"
},
{
"__type__": "cc.Label",
......@@ -12818,7 +12818,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "c6Q4CmW/xDTbr8LQbAK/2g"
"_id": "1aXbORFz1Jt4MlV0ahCKeY"
},
{
"__type__": "cc.RichText",
......@@ -26066,11 +26066,9 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -26096,7 +26094,7 @@
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": 14.469999999999997,
"_top": 14.469999999999999,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......
......@@ -135,7 +135,11 @@ export default class NewClass extends cc.Component {
cc.find(`unlock`, itemClone).active = true;
cc.find(`unlock/text`, itemClone).getComponent(cc.Label).string = row.name;
getSpriteFrimeByUrl(row.cover, (spriteFrame) => {
cc.find(`unlock/cover`, itemClone).getComponent(cc.Sprite).spriteFrame = spriteFrame;
const coverNode = cc.find(`unlock/cover`, itemClone);
coverNode.getComponent(cc.Sprite).spriteFrame = spriteFrame;
const sx = coverNode.width / 70;
const sy = coverNode.height / 80;
coverNode.scale = Math.min(sx, sy);
});
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment