xx 1 year ago
parent
commit
8a97437b5e
2 changed files with 18 additions and 18 deletions
  1. 15 15
      assets/resources/prefabs/game.prefab
  2. 3 3
      assets/script/game/results_new_car.ts

+ 15 - 15
assets/resources/prefabs/game.prefab

@@ -176,7 +176,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -4309,7 +4309,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -4798,7 +4798,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -4950,7 +4950,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -5102,7 +5102,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -6750,7 +6750,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -9041,7 +9041,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -9241,7 +9241,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 565.707,
+      "y": 610.375,
       "z": 0
     },
     "_lrot": {
@@ -10945,7 +10945,7 @@
     "_isAbsVerticalCenter": true,
     "_originalWidth": 0,
     "_originalHeight": 0,
-    "_alignMode": 2,
+    "_alignMode": 0,
     "_lockFlags": 0,
     "_id": ""
   },
@@ -11019,7 +11019,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 399.9999999999999
+      "height": 399.99999999999943
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -11164,7 +11164,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 399.9999999999999
+      "height": 399.99999999999943
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -11314,7 +11314,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 399.9999999999999
+      "height": 399.99999999999943
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -12508,7 +12508,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -12694,7 +12694,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -13199,7 +13199,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 3 - 3
assets/script/game/results_new_car.ts

@@ -70,9 +70,9 @@ export class results_new_car extends base_ui {
             }
             this.btn_go_lib.active = true
             this.btn_use_car.active = false
-            director.once(Director.EVENT_AFTER_DRAW,()=>{
-                this.content.parent.parent.getComponent(ScrollView).scrollToLeft(0.1)
-            })
+            // director.once(Director.EVENT_AFTER_DRAW,()=>{
+            //     this.content.parent.parent.getComponent(ScrollView).scrollToLeft(0.1)
+            // })
            
         }else{
             this.default_car_id  = new_car_d.id