future 1 år sedan
förälder
incheckning
fdff8660b1

+ 19 - 16
assets/resources/prefabs/unlock_play_dialog.prefab

@@ -352,7 +352,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 47.96,
+      "y": 55.96,
       "z": 0
     },
     "_lrot": {
@@ -488,7 +488,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": -8,
+      "y": -5,
       "z": 0
     },
     "_lrot": {
@@ -684,8 +684,8 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": -60,
-      "y": -7,
+      "x": -72,
+      "y": -9,
       "z": 0
     },
     "_lrot": {
@@ -861,8 +861,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 83,
-      "height": 30
+      "width": 88,
+      "height": 35
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -1027,8 +1027,8 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 60,
-      "y": -7,
+      "x": 71,
+      "y": -9,
       "z": 0
     },
     "_lrot": {
@@ -1077,8 +1077,8 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": -19,
-      "y": 0,
+      "x": -20,
+      "y": 1,
       "z": 0
     },
     "_lrot": {
@@ -1213,7 +1213,7 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 12,
+      "x": 14,
       "y": 1,
       "z": 0
     },
@@ -1254,7 +1254,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 40,
+      "width": 45,
       "height": 20
     },
     "_anchorPoint": {
@@ -1340,8 +1340,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 83,
-      "height": 30
+      "width": 96,
+      "height": 35
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -1442,7 +1442,10 @@
       "b": 124,
       "a": 255
     },
-    "_normalSprite": null,
+    "_normalSprite": {
+      "__uuid__": "48cb939b-3138-460f-ba25-241e65f59acb@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
     "_hoverSprite": null,
     "_pressedSprite": null,
     "_disabledSprite": null,
@@ -1526,7 +1529,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 335,
-      "height": 260
+      "height": 300
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 3 - 2
assets/script/homepage/unlock_play_dialog.ts

@@ -29,11 +29,12 @@ export class unlock_play_dialog extends Component {
     }
 
     setupCoinNumber(number:number) {
-        this.btn_coin.children[0].getComponent(Label).string = number + ''
+        this.btn_coin.getChildByName('Label').getComponent(Label).string = number + ''
+        // this.btn_coin.children[0].getComponent(Label).string = number + ''
     }
 
     public setupLookVideo(string:string) {
-        this.btn_look_video.children[0].getComponent(Label).string = string
+        this.btn_look_video.getChildByName('Label').getComponent(Label).string = string
     }
 
     public close() {