Browse Source

【预制体】添加惊喜翻倍,二倍速,提现必返预制体

mojunshou 8 tháng trước cách đây
mục cha
commit
9e07ef8cb5

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1805 - 0
assets/bundle/gui/eliminate/prefab/cashRebate.prefab


+ 13 - 0
assets/bundle/gui/eliminate/prefab/cashRebate.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "60ab678a-5f37-4f45-a678-cecc9985be37",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "cashRebate"
+  }
+}

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 2043 - 0
assets/bundle/gui/eliminate/prefab/doubleRewards.prefab


+ 13 - 0
assets/bundle/gui/eliminate/prefab/doubleRewards.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "42a6765f-999c-42d4-84e0-3a96e6f2c0e0",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "doubleRewards"
+  }
+}

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1857 - 0
assets/bundle/gui/eliminate/prefab/doubleSpeed.prefab


+ 13 - 0
assets/bundle/gui/eliminate/prefab/doubleSpeed.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "b72ecbcc-11a4-4bd1-b346-b45b102efe60",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "doubleSpeed"
+  }
+}

+ 10 - 4
assets/script/game/common/config/GameUIConfig.ts

@@ -1,7 +1,7 @@
 /*
  * @Date: 2021-08-12 09:33:37
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-03-20 19:01:18
+ * @LastEditTime: 2025-03-21 11:35:52
  */
 import { LayerType, UIConfig } from "../../../../../extensions/oops-plugin-framework/assets/core/gui/layer/LayerManager";
 
@@ -28,7 +28,11 @@ export enum UIID {
     /** 微信提现 */
     WechatWithdraw,
     /**红包提现 */
-    RedPacketWithdraw
+    RedPacketWithdraw,
+    /** 双倍加速 */
+    DoubleSpeed,
+    /**提现记录 */
+    WithdrawRecord
 }
 
 /** 打开界面方式的配置数据 */
@@ -42,6 +46,8 @@ export var UIConfigData: { [key: number]: UIConfig } = {
     [UIID.Eliminate]: { layer: LayerType.UI, prefab: "gui/eliminate/eliminate" },
     [UIID.Setting]: { layer: LayerType.UI, prefab: "common/prefab/setting" },
     [UIID.AboutUs]: { layer: LayerType.UI, prefab: "common/prefab/about" },
-    [UIID.WechatWithdraw]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/wechat_withdrawal" },
-    [UIID.RedPacketWithdraw]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/red_packet_withdrawal" }
+    [UIID.WechatWithdraw]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/wechatWithdrawal" },
+    [UIID.RedPacketWithdraw]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/redPacketWithdrawal" },
+    [UIID.DoubleSpeed]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/doubleSpeed" },
+    [UIID.WithdrawRecord]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/withdrawRecord" }
 }

+ 19 - 0
assets/script/game/eliminate/view/CashRebateView.ts

@@ -0,0 +1,19 @@
+/*
+ * @Author: mojunshou 1637302775@qq.com
+ * @Date: 2025-03-21 11:45:43
+ * @LastEditors: mojunshou 1637302775@qq.com
+ * @LastEditTime: 2025-03-21 11:55:27
+ * @Description: 提现必返
+ */
+import { _decorator } from 'cc';
+import { GameComponent } from "db://oops-framework/module/common/GameComponent";
+
+const { ccclass, property } = _decorator;
+
+/** 显示对象控制 */
+@ccclass('CashRebateView')
+export class CashRebateView extends GameComponent {
+    protected start() {
+
+    }
+}

+ 9 - 0
assets/script/game/eliminate/view/CashRebateView.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "27cfe505-b7b1-4fd8-b92e-a8d3eb91333c",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 22 - 0
assets/script/game/eliminate/view/DoubleRewardsView.ts

@@ -0,0 +1,22 @@
+/*
+ * @Author: mojunshou 1637302775@qq.com
+ * @Date: 2025-03-21 11:57:43
+ * @LastEditors: mojunshou 1637302775@qq.com
+ * @LastEditTime: 2025-03-21 14:26:30
+ * @Description: 惊喜翻倍弹窗
+ */
+import { _decorator } from 'cc';
+import { GameComponent } from "db://oops-framework/module/common/GameComponent";
+
+const { ccclass, property } = _decorator;
+
+/** 显示对象控制 */
+@ccclass('DoubleRewardsView')
+export class DoubleRewardsView extends GameComponent {
+    protected start() {
+
+    }
+
+
+
+}

+ 9 - 0
assets/script/game/eliminate/view/DoubleRewardsView.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "01a5aa65-923b-4733-9ba4-1de569307e0b",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 34 - 0
assets/script/game/eliminate/view/DoubleSpeedViewComp.ts

@@ -0,0 +1,34 @@
+/*
+ * @Author: mojunshou 1637302775@qq.com
+ * @Date: 2025-03-21 11:17:22
+ * @LastEditors: mojunshou 1637302775@qq.com
+ * @LastEditTime: 2025-03-21 11:32:11
+ * @Description: 二倍速弹窗
+ */
+import { _decorator } from "cc";
+import { oops } from "db://oops-framework/core/Oops";
+import { ecs } from "db://oops-framework/libs/ecs/ECS";
+import { CCComp } from "db://oops-framework/module/common/CCComp";
+import { UIID } from "../../common/config/GameUIConfig";
+
+const { ccclass, property } = _decorator;
+
+/** 视图层对象 */
+@ccclass('DoubleSpeedViewComp')
+@ecs.register('DoubleSpeedView', false)
+export class DoubleSpeedViewComp extends CCComp {
+    /** 视图层逻辑代码分离演示 */
+    start() {
+        // const entity = this.ent as ecs.Entity;         // ecs.Entity 可转为当前模块的具体实体对象
+        this.setButton();
+    }
+
+    /** 视图对象通过 ecs.Entity.remove(DoubleSpeedViewComp) 删除组件是触发组件处理自定义释放逻辑 */
+    reset() {
+        this.node.destroy();
+    }
+
+    private btn_close() {
+        oops.gui.remove(UIID.DoubleSpeed);
+    }
+}

+ 9 - 0
assets/script/game/eliminate/view/DoubleSpeedViewComp.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "9a3ee2ed-873f-4997-9700-cfd058260670",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}