future 1 năm trước cách đây
mục cha
commit
8a39cbf028

BIN
assets/run/img_text_sound_bg.png


+ 134 - 0
assets/run/img_text_sound_bg.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.26",
+  "importer": "image",
+  "imported": true,
+  "uuid": "b9b8fa36-e469-4001-a39a-3d736c419ec7",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "b9b8fa36-e469-4001-a39a-3d736c419ec7@6c48a",
+      "displayName": "img_text_sound_bg",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "b9b8fa36-e469-4001-a39a-3d736c419ec7",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "b9b8fa36-e469-4001-a39a-3d736c419ec7@f9941",
+      "displayName": "img_text_sound_bg",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 1062,
+        "height": 279,
+        "rawWidth": 1062,
+        "rawHeight": 279,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -531,
+            -139.5,
+            0,
+            531,
+            -139.5,
+            0,
+            -531,
+            139.5,
+            0,
+            531,
+            139.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            279,
+            1062,
+            279,
+            0,
+            0,
+            1062,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -531,
+            -139.5,
+            0
+          ],
+          "maxPos": [
+            531,
+            139.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "b9b8fa36-e469-4001-a39a-3d736c419ec7@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "b9b8fa36-e469-4001-a39a-3d736c419ec7@f9941"
+  }
+}

BIN
assets/run/img_tips_answer.png


+ 35 - 35
assets/run/img_tips_answer.png.meta

@@ -43,13 +43,13 @@
         "trimThreshold": 1,
         "rotated": false,
         "offsetX": 0,
-        "offsetY": -1.5,
-        "trimX": 3,
-        "trimY": 6,
-        "width": 421,
-        "height": 244,
-        "rawWidth": 427,
-        "rawHeight": 253,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 568,
+        "height": 161,
+        "rawWidth": 568,
+        "rawHeight": 161,
         "borderTop": 0,
         "borderBottom": 0,
         "borderLeft": 0,
@@ -61,17 +61,17 @@
         "meshType": 0,
         "vertices": {
           "rawPosition": [
-            -210.5,
-            -122,
+            -284,
+            -80.5,
             0,
-            210.5,
-            -122,
+            284,
+            -80.5,
             0,
-            -210.5,
-            122,
+            -284,
+            80.5,
             0,
-            210.5,
-            122,
+            284,
+            80.5,
             0
           ],
           "indexes": [
@@ -83,33 +83,33 @@
             3
           ],
           "uv": [
-            3,
-            247,
-            424,
-            247,
-            3,
-            3,
-            424,
-            3
+            0,
+            161,
+            568,
+            161,
+            0,
+            0,
+            568,
+            0
           ],
           "nuv": [
-            0.00702576112412178,
-            0.011857707509881422,
-            0.9929742388758782,
-            0.011857707509881422,
-            0.00702576112412178,
-            0.9762845849802372,
-            0.9929742388758782,
-            0.9762845849802372
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
           ],
           "minPos": [
-            -210.5,
-            -122,
+            -284,
+            -80.5,
             0
           ],
           "maxPos": [
-            210.5,
-            122,
+            284,
+            80.5,
             0
           ]
         },

BIN
assets/run/img_tips_answer_video.png


+ 134 - 0
assets/run/img_tips_answer_video.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.26",
+  "importer": "image",
+  "imported": true,
+  "uuid": "5e06f68a-1ea8-4da8-afed-18b4f75a3787",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "5e06f68a-1ea8-4da8-afed-18b4f75a3787@6c48a",
+      "displayName": "img_tips_answer_video",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "5e06f68a-1ea8-4da8-afed-18b4f75a3787",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "5e06f68a-1ea8-4da8-afed-18b4f75a3787@f9941",
+      "displayName": "img_tips_answer_video",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 568,
+        "height": 161,
+        "rawWidth": 568,
+        "rawHeight": 161,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -284,
+            -80.5,
+            0,
+            284,
+            -80.5,
+            0,
+            -284,
+            80.5,
+            0,
+            284,
+            80.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            161,
+            568,
+            161,
+            0,
+            0,
+            568,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -284,
+            -80.5,
+            0
+          ],
+          "maxPos": [
+            284,
+            80.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "5e06f68a-1ea8-4da8-afed-18b4f75a3787@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "5e06f68a-1ea8-4da8-afed-18b4f75a3787@f9941"
+  }
+}

BIN
assets/run/img_tips_bg.png


BIN
assets/run/img_tips_tip.png


+ 35 - 35
assets/run/img_tips_tip.png.meta

@@ -43,13 +43,13 @@
         "trimThreshold": 1,
         "rotated": false,
         "offsetX": 0,
-        "offsetY": -0.5,
-        "trimX": 3,
-        "trimY": 5,
-        "width": 421,
-        "height": 243,
-        "rawWidth": 427,
-        "rawHeight": 252,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 568,
+        "height": 161,
+        "rawWidth": 568,
+        "rawHeight": 161,
         "borderTop": 0,
         "borderBottom": 0,
         "borderLeft": 0,
@@ -61,17 +61,17 @@
         "meshType": 0,
         "vertices": {
           "rawPosition": [
-            -210.5,
-            -121.5,
+            -284,
+            -80.5,
             0,
-            210.5,
-            -121.5,
+            284,
+            -80.5,
             0,
-            -210.5,
-            121.5,
+            -284,
+            80.5,
             0,
-            210.5,
-            121.5,
+            284,
+            80.5,
             0
           ],
           "indexes": [
@@ -83,33 +83,33 @@
             3
           ],
           "uv": [
-            3,
-            247,
-            424,
-            247,
-            3,
-            4,
-            424,
-            4
+            0,
+            161,
+            568,
+            161,
+            0,
+            0,
+            568,
+            0
           ],
           "nuv": [
-            0.00702576112412178,
-            0.015873015873015872,
-            0.9929742388758782,
-            0.015873015873015872,
-            0.00702576112412178,
-            0.9801587301587301,
-            0.9929742388758782,
-            0.9801587301587301
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
           ],
           "minPos": [
-            -210.5,
-            -121.5,
+            -284,
+            -80.5,
             0
           ],
           "maxPos": [
-            210.5,
-            121.5,
+            284,
+            80.5,
             0
           ]
         },

BIN
assets/run/img_tips_tip_video.png


+ 134 - 0
assets/run/img_tips_tip_video.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.26",
+  "importer": "image",
+  "imported": true,
+  "uuid": "ba4a53ba-681d-4958-bb25-351e69b375e0",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "ba4a53ba-681d-4958-bb25-351e69b375e0@6c48a",
+      "displayName": "img_tips_tip_video",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "ba4a53ba-681d-4958-bb25-351e69b375e0",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "ba4a53ba-681d-4958-bb25-351e69b375e0@f9941",
+      "displayName": "img_tips_tip_video",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 568,
+        "height": 161,
+        "rawWidth": 568,
+        "rawHeight": 161,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -284,
+            -80.5,
+            0,
+            284,
+            -80.5,
+            0,
+            -284,
+            80.5,
+            0,
+            284,
+            80.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            161,
+            568,
+            161,
+            0,
+            0,
+            568,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -284,
+            -80.5,
+            0
+          ],
+          "maxPos": [
+            284,
+            80.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "ba4a53ba-681d-4958-bb25-351e69b375e0@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "ba4a53ba-681d-4958-bb25-351e69b375e0@f9941"
+  }
+}

+ 33 - 17
assets/scene/game.scene

@@ -6067,7 +6067,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 50.2,
+      "y": 65.2,
       "z": 0
     },
     "_lrot": {
@@ -6105,7 +6105,7 @@
     "__prefab": null,
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 880,
+      "width": 862,
       "height": 50.4
     },
     "_anchorPoint": {
@@ -6130,9 +6130,9 @@
     "_dstBlendFactor": 4,
     "_color": {
       "__type__": "cc.Color",
-      "r": 0,
-      "g": 0,
-      "b": 0,
+      "r": 255,
+      "g": 255,
+      "b": 255,
       "a": 255
     },
     "_string": "没有设置文本",
@@ -6196,8 +6196,8 @@
     "__prefab": null,
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1080,
-      "height": 125.4
+      "width": 1062,
+      "height": 120.4
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -6227,7 +6227,7 @@
       "a": 255
     },
     "_spriteFrame": {
-      "__uuid__": "d27a1f76-bb54-4568-8ad3-9c73b89d13b0@f9941",
+      "__uuid__": "b9b8fa36-e469-4001-a39a-3d736c419ec7@f9941",
       "__expectedType__": "cc.SpriteFrame"
     },
     "_type": 1,
@@ -6265,8 +6265,8 @@
     "_startAxis": 0,
     "_paddingLeft": 0,
     "_paddingRight": 0,
-    "_paddingTop": 50,
-    "_paddingBottom": 25,
+    "_paddingTop": 30,
+    "_paddingBottom": 40,
     "_spacingX": 0,
     "_spacingY": 0,
     "_verticalDirection": 1,
@@ -7697,7 +7697,7 @@
         "__id__": 221
       }
     ],
-    "_active": false,
+    "_active": true,
     "_components": [
       {
         "__id__": 260
@@ -8859,8 +8859,8 @@
     "__prefab": null,
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 421,
-      "height": 244
+      "width": 568,
+      "height": 161
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -8890,7 +8890,7 @@
       "a": 255
     },
     "_spriteFrame": {
-      "__uuid__": "387889f9-b663-4522-828f-ba981e21d339@f9941",
+      "__uuid__": "5e06f68a-1ea8-4da8-afed-18b4f75a3787@f9941",
       "__expectedType__": "cc.SpriteFrame"
     },
     "_type": 0,
@@ -9021,8 +9021,8 @@
     "__prefab": null,
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 421,
-      "height": 243
+      "width": 568,
+      "height": 161
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -9052,7 +9052,7 @@
       "a": 255
     },
     "_spriteFrame": {
-      "__uuid__": "23d6a9f1-58cd-4fdb-9cd7-63be8263dae2@f9941",
+      "__uuid__": "ba4a53ba-681d-4958-bb25-351e69b375e0@f9941",
       "__expectedType__": "cc.SpriteFrame"
     },
     "_type": 0,
@@ -9270,6 +9270,22 @@
     "text_view": {
       "__id__": 222
     },
+    "sf_tips": {
+      "__uuid__": "23d6a9f1-58cd-4fdb-9cd7-63be8263dae2@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "sf_tips_video": {
+      "__uuid__": "ba4a53ba-681d-4958-bb25-351e69b375e0@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "sf_answer": {
+      "__uuid__": "387889f9-b663-4522-828f-ba981e21d339@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "sf_answer_video": {
+      "__uuid__": "5e06f68a-1ea8-4da8-afed-18b4f75a3787@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
     "_id": "87LwtroQRPGqphkoDJUzfv"
   },
   {

+ 7 - 1
assets/script/run/tips/tips_view.ts

@@ -1,4 +1,4 @@
-import { _decorator, Component, Node, Sprite } from 'cc';
+import { _decorator, Component, Node, Sprite, SpriteFrame } from 'cc';
 import { scene_tips_data, ui_att_item } from '../../../data/data';
 import { gameManager } from '../gameManager';
 import { SdkUtil } from '../../sdkUtil';
@@ -13,6 +13,10 @@ export class tips_view extends Component {
     @property(Node) btn_close:Node = null;
     @property(Node) icon:Node = null;
     @property(Node) text_view:Node = null;
+    @property(SpriteFrame) sf_tips:SpriteFrame;
+    @property(SpriteFrame) sf_tips_video:SpriteFrame;
+    @property(SpriteFrame) sf_answer:SpriteFrame;
+    @property(SpriteFrame) sf_answer_video:SpriteFrame;
     private mData:scene_tips_data = null;
     private IsShowFindRuleTips:boolean = false;
     private IsShowSecondLevel:boolean = false;
@@ -33,6 +37,7 @@ export class tips_view extends Component {
                     if(res.isEnded){
                         this.isLookTipsVideo = true;
                         this.showTips()
+                        this.btn_tips.getComponent(Sprite).spriteFrame = this.sf_tips
                     }
                     // 统计-激励视频广告
                     let level_id = gameManager.Singleton.getLevelData().id
@@ -51,6 +56,7 @@ export class tips_view extends Component {
                     if(res.isEnded){
                         this.isLookAnswerVideo = true;
                         this.showAnswer()
+                        this.btn_answer.getComponent(Sprite).spriteFrame = this.sf_answer
                     }
                     // 统计-激励视频广告
                     let level_id = gameManager.Singleton.getLevelData().id