Forráskód Böngészése

首次登录,弹隐私协议提示

薛鸿潇 5 éve
szülő
commit
99e3865f9c

+ 6 - 6
assets/resources/game/prefab/game.prefab

@@ -3577,19 +3577,19 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 750,
-      "height": 97
+      "height": 280
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
       "x": 0.5,
-      "y": 0.5
+      "y": 0
     },
     "_trs": {
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
         0,
-        101.5,
+        53,
         0,
         0,
         0,
@@ -3658,8 +3658,8 @@
     "_alignFlags": 41,
     "_left": 0,
     "_right": 0,
-    "_top": 0,
-    "_bottom": 0,
+    "_top": -183,
+    "_bottom": 1237,
     "_verticalCenter": 0,
     "_horizontalCenter": 0,
     "_isAbsLeft": true,
@@ -3669,7 +3669,7 @@
     "_isAbsHorizontalCenter": true,
     "_isAbsVerticalCenter": true,
     "_originalWidth": 750,
-    "_originalHeight": 0,
+    "_originalHeight": 97,
     "_id": ""
   },
   {

+ 3 - 3
assets/resources/module/login/login.prefab

@@ -61,7 +61,7 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        0,
+        375,
         667,
         0,
         0,
@@ -1588,7 +1588,7 @@
     "_enabled": true,
     "alignMode": 1,
     "_target": null,
-    "_alignFlags": 5,
+    "_alignFlags": 45,
     "_left": 0,
     "_right": 0,
     "_top": 0,
@@ -1601,7 +1601,7 @@
     "_isAbsBottom": true,
     "_isAbsHorizontalCenter": true,
     "_isAbsVerticalCenter": true,
-    "_originalWidth": 0,
+    "_originalWidth": 750,
     "_originalHeight": 1334,
     "_id": ""
   },

+ 2 - 2
assets/script/game/component/BangsFit.ts

@@ -1,7 +1,7 @@
 
 const {ccclass, property} = cc._decorator;
-const LeftPadding = 60;
-const RightPadding = 60;
+const LeftPadding = 50;
+const RightPadding = 50;
 /**
  * 刘海屏适配
  * @author 薛鸿潇

+ 6 - 1
assets/script/game/module/login/Login.ts

@@ -41,7 +41,12 @@ export default class Login extends cc.Component {
                 gData.appData.getDeviceInfoCompelete = false;
             }
             else if (gData.gameData.dataFinish) {//登录流程完毕
-                mk.ui.openPanel("game/prefab/game");
+                if (!mk.storage.getStorage('notFirstLogin')) {
+                    mk.ui.openPanel("module/agreementTip/agreementTip");
+                } else {
+                    mk.ui.openPanel("game/prefab/game");
+                }
+
                 gData.gameData.dataFinish = false;
             }
         }