Przeglądaj źródła

增加隐私弹窗界面

mojunshou 8 miesięcy temu
rodzic
commit
51c6ea44ca

Plik diff jest za duży
+ 1442 - 0
assets/bundle/common/prefab/kindTips.prefab


+ 13 - 0
assets/bundle/common/prefab/kindTips.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "ceb7e142-f1c3-40e9-8322-cf5b2084283b",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "kindTips"
+  }
+}

Plik diff jest za duży
+ 1630 - 0
assets/bundle/common/prefab/retention.prefab


+ 13 - 0
assets/bundle/common/prefab/retention.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "c99766dd-071e-4d37-9a57-6406d169dee3",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "retention"
+  }
+}

BIN
assets/bundle/common/texture/btn_wx.png


+ 134 - 0
assets/bundle/common/texture/btn_wx.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.27",
+  "importer": "image",
+  "imported": true,
+  "uuid": "b9bfe0ba-07d0-44f2-830e-9c3bca5c517a",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "b9bfe0ba-07d0-44f2-830e-9c3bca5c517a@6c48a",
+      "displayName": "btn_wx",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "b9bfe0ba-07d0-44f2-830e-9c3bca5c517a",
+        "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": "b9bfe0ba-07d0-44f2-830e-9c3bca5c517a@f9941",
+      "displayName": "btn_wx",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 162,
+        "height": 135,
+        "rawWidth": 162,
+        "rawHeight": 135,
+        "borderTop": 31,
+        "borderBottom": 48,
+        "borderLeft": 32,
+        "borderRight": 43,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -81,
+            -67.5,
+            0,
+            81,
+            -67.5,
+            0,
+            -81,
+            67.5,
+            0,
+            81,
+            67.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            135,
+            162,
+            135,
+            0,
+            0,
+            162,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -81,
+            -67.5,
+            0
+          ],
+          "maxPos": [
+            81,
+            67.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "b9bfe0ba-07d0-44f2-830e-9c3bca5c517a@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "b9bfe0ba-07d0-44f2-830e-9c3bca5c517a@6c48a"
+  }
+}

+ 9 - 0
assets/bundle/gui/common.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "2d226942-79a1-407a-b6ae-749f72398987",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 9 - 0
assets/bundle/gui/common/texture.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "37138f5c-39d8-4731-8c59-e4d5bbf23349",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

BIN
assets/bundle/gui/common/texture/loading_1.png


+ 134 - 0
assets/bundle/gui/common/texture/loading_1.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.27",
+  "importer": "image",
+  "imported": true,
+  "uuid": "266e9a1f-7327-4e6e-8679-7b6d61019a9f",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "266e9a1f-7327-4e6e-8679-7b6d61019a9f@6c48a",
+      "displayName": "loading_1",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "266e9a1f-7327-4e6e-8679-7b6d61019a9f",
+        "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": "266e9a1f-7327-4e6e-8679-7b6d61019a9f@f9941",
+      "displayName": "loading_1",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 580,
+        "height": 53,
+        "rawWidth": 580,
+        "rawHeight": 53,
+        "borderTop": 15,
+        "borderBottom": 15,
+        "borderLeft": 63,
+        "borderRight": 56,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -290,
+            -26.5,
+            0,
+            290,
+            -26.5,
+            0,
+            -290,
+            26.5,
+            0,
+            290,
+            26.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            53,
+            580,
+            53,
+            0,
+            0,
+            580,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -290,
+            -26.5,
+            0
+          ],
+          "maxPos": [
+            290,
+            26.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "266e9a1f-7327-4e6e-8679-7b6d61019a9f@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "266e9a1f-7327-4e6e-8679-7b6d61019a9f@6c48a"
+  }
+}

BIN
assets/bundle/gui/common/texture/loading_2.png


+ 134 - 0
assets/bundle/gui/common/texture/loading_2.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.27",
+  "importer": "image",
+  "imported": true,
+  "uuid": "2c018cab-821c-4124-969e-717ae5f847c1",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "2c018cab-821c-4124-969e-717ae5f847c1@6c48a",
+      "displayName": "loading_2",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "2c018cab-821c-4124-969e-717ae5f847c1",
+        "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": "2c018cab-821c-4124-969e-717ae5f847c1@f9941",
+      "displayName": "loading_2",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 575,
+        "height": 46,
+        "rawWidth": 575,
+        "rawHeight": 46,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -287.5,
+            -23,
+            0,
+            287.5,
+            -23,
+            0,
+            -287.5,
+            23,
+            0,
+            287.5,
+            23,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            46,
+            575,
+            46,
+            0,
+            0,
+            575,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -287.5,
+            -23,
+            0
+          ],
+          "maxPos": [
+            287.5,
+            23,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "2c018cab-821c-4124-969e-717ae5f847c1@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "2c018cab-821c-4124-969e-717ae5f847c1@6c48a"
+  }
+}

Plik diff jest za duży
+ 1185 - 45
assets/bundle/gui/loading/loading.prefab


+ 22 - 0
assets/script/game/common/tips/ClickEventHandler.ts

@@ -0,0 +1,22 @@
+/*
+ * @Author: mojunshou 1637302775@qq.com
+ * @Date: 2025-03-19 17:46:09
+ * @LastEditors: mojunshou 1637302775@qq.com
+ * @LastEditTime: 2025-03-19 18:01:56
+ * @Description: 用户协议和隐私协议点击事件
+ */
+import { _decorator, EventTouch } from 'cc';
+import { GameComponent } from "db://oops-framework/module/common/GameComponent";
+
+const { ccclass, property } = _decorator;
+
+/** 显示对象控制 */
+@ccclass('ClickEventHandler')
+export class ClickEventHandler extends GameComponent {
+
+    onClicked(eventTouch: EventTouch, param: string) {
+        console.log("onClicked", param);
+    }
+
+
+}

+ 9 - 0
assets/script/game/common/tips/ClickEventHandler.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "16f06877-98f3-4a8d-b02c-59a044903521",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 32 - 0
assets/script/game/common/tips/KindTipsView.ts

@@ -0,0 +1,32 @@
+/*
+ * @Author: mojunshou 1637302775@qq.com
+ * @Date: 2025-03-19 18:02:51
+ * @LastEditors: mojunshou 1637302775@qq.com
+ * @LastEditTime: 2025-03-19 18:03:09
+ * @Description: 
+ */
+import { _decorator, Component, Node } from 'cc';
+import { GameComponent } from 'db://oops-framework/module/common/GameComponent';
+const { ccclass, property } = _decorator;
+
+@ccclass('KindTipsView')
+export class KindTipsView extends GameComponent {
+    start() {
+        this.setButton();
+    }
+
+    update(deltaTime: number) {
+
+    }
+
+    private btn_agree() {
+        console.log("同意");
+    }
+
+    private btn_disagree() {
+        console.log("不同意");
+        //打开新的挽留弹窗
+    }
+}
+
+

+ 9 - 0
assets/script/game/common/tips/KindTipsView.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "25efddb7-258f-4caa-9e06-8ff84a482558",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 53 - 4
assets/script/game/initialize/view/LoadingViewComp.ts

@@ -1,8 +1,8 @@
 /*
  * @Author: dgflash
  * @Date: 2021-07-03 16:13:17
- * @LastEditors: bansomin
- * @LastEditTime: 2024-03-31 01:17:02
+ * @LastEditors: mojunshou 1637302775@qq.com
+ * @LastEditTime: 2025-03-19 17:29:41
  */
 import { _decorator } from "cc";
 import { oops } from "../../../../../extensions/oops-plugin-framework/assets/core/Oops";
@@ -12,6 +12,7 @@ import { ModuleUtil } from "../../../../../extensions/oops-plugin-framework/asse
 import { DemoViewComp } from "../../account/view/DemoViewComp";
 import { smc } from "../../common/SingletonModuleComp";
 import { UIID } from "../../common/config/GameUIConfig";
+import { EventTouch } from "cc";
 
 const { ccclass, property } = _decorator;
 
@@ -19,6 +20,11 @@ const { ccclass, property } = _decorator;
 @ccclass('LoadingViewComp')
 @ecs.register('LoadingView', false)
 export class LoadingViewComp extends CCVMParentComp {
+
+
+
+
+
     /** VM 组件绑定数据 */
     data: any = {
         /** 加载资源当前进度 */
@@ -35,6 +41,7 @@ export class LoadingViewComp extends CCVMParentComp {
 
     start() {
         this.enter();
+        this.setButton();
     }
 
     enter() {
@@ -77,8 +84,50 @@ export class LoadingViewComp extends CCVMParentComp {
     private async onCompleteCallback() {
         // 获取用户信息的多语言提示文本
         this.data.prompt = oops.language.getLangByID("loading_load_player");
-        await ModuleUtil.addViewUiAsync(smc.account, DemoViewComp, UIID.Demo);
-        ModuleUtil.removeViewUi(this.ent, LoadingViewComp, UIID.Loading);
+        // await ModuleUtil.addViewUiAsync(smc.account, DemoViewComp, UIID.Demo);
+        // ModuleUtil.removeViewUi(this.ent, LoadingViewComp, UIID.Loading);
+    }
+
+
+    /**
+     * @description: 微信登录
+     * @return {*}
+     */
+    private btn_wxlogin() {
+        //
+
+
+    }
+
+
+
+    /**
+     * @description: 用户协议
+     * @return {*}
+     */
+    private btn_user() {
+        console.log("用户协议");
+
+
+    }
+
+
+    /**
+     * @description: 隐私协议
+     * @return {*}
+     */
+    private btn_privacy() {
+        console.log("隐私协议");
+
+
+    }
+
+
+    //打开温馨提示
+    private open_kindTipsView() {
+
+        //
+
     }
 
     reset(): void { }

+ 2 - 2
package.json

@@ -7,7 +7,7 @@
     "crypto-es": "^1.2.7"
   },
   "description": "消消金块游戏项目",
-  "name": "oops-game-kit",
+  "name": "com-game-eliminate",
   "uuid": "00d7d957-a3e8-4ad6-80f4-2fcfb235bca4",
   "version": "3.6.3"
-}
+}