瀏覽代碼

【预制体】红包提现-添加红包提现预制体

mojunshou 8 月之前
父節點
當前提交
43697486ec

+ 8 - 8
assets/bundle/common/prefab/setting.prefab

@@ -1640,8 +1640,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 450,
-      "height": 100
+      "width": 420,
+      "height": 135
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -1680,7 +1680,7 @@
       "__uuid__": "b9bfe0ba-07d0-44f2-830e-9c3bca5c517a@f9941",
       "__expectedType__": "cc.SpriteFrame"
     },
-    "_type": 0,
+    "_type": 1,
     "_fillType": 0,
     "_sizeMode": 0,
     "_fillCenter": {
@@ -1743,7 +1743,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": -6.912,
-      "y": 46.41,
+      "y": 40.169,
       "z": 0
     },
     "_lrot": {
@@ -1942,7 +1942,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 450,
+      "width": 420,
       "height": 60
     },
     "_anchorPoint": {
@@ -1982,7 +1982,7 @@
       "__uuid__": "b9bfe0ba-07d0-44f2-830e-9c3bca5c517a@f9941",
       "__expectedType__": "cc.SpriteFrame"
     },
-    "_type": 0,
+    "_type": 1,
     "_fillType": 0,
     "_sizeMode": 0,
     "_fillCenter": {
@@ -2300,7 +2300,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 450,
+      "width": 420,
       "height": 60
     },
     "_anchorPoint": {
@@ -2340,7 +2340,7 @@
       "__uuid__": "b9bfe0ba-07d0-44f2-830e-9c3bca5c517a@f9941",
       "__expectedType__": "cc.SpriteFrame"
     },
-    "_type": 0,
+    "_type": 1,
     "_fillType": 0,
     "_sizeMode": 0,
     "_fillCenter": {

File diff suppressed because it is too large
+ 1943 - 0
assets/bundle/gui/eliminate/prefab/RedPackeItem.prefab


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

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "c5832914-4b91-496c-ac50-5d2b6674d25b",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "RedPackeItem"
+  }
+}

File diff suppressed because it is too large
+ 1920 - 0
assets/bundle/gui/eliminate/prefab/red_packet_item.prefab


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

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "2a9baff6-6f53-4c63-8b17-95e4e8793672",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "red_packet_item"
+  }
+}

File diff suppressed because it is too large
+ 3524 - 0
assets/bundle/gui/eliminate/prefab/red_packet_withdrawal.prefab


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

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "846c2b5c-f4ce-4187-8e0c-93b8a5e2bd94",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "red_packet_withdrawal"
+  }
+}

+ 6 - 3
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 17:40:22
+ * @LastEditTime: 2025-03-20 17:57:22
  */
 import { LayerType, UIConfig } from "../../../../../extensions/oops-plugin-framework/assets/core/gui/layer/LayerManager";
 
@@ -26,7 +26,9 @@ export enum UIID {
     /** 关于我们页面 */
     AboutUs,
     /** 微信提现 */
-    WechatWithdraw
+    WechatWithdraw,
+    /**红包提现 */
+    RedPacketWithdraw
 
 }
 
@@ -41,5 +43,6 @@ 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.WechatWithdraw]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/wechat_withdrawal" },
+    [UIID.RedPacketWithdraw]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/red_packet_withdrawal" }
 }

+ 12 - 0
assets/script/game/eliminate/view/RedPackeItemView.ts

@@ -0,0 +1,12 @@
+import { _decorator } from 'cc';
+import { GameComponent } from "db://oops-framework/module/common/GameComponent";
+
+const { ccclass, property } = _decorator;
+
+/** 显示对象控制 */
+@ccclass('RedPackeItemView')
+export class RedPackeItemView extends GameComponent {
+    protected start() {
+
+    }
+}

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

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "f2eab54b-72f9-47e4-85d1-95411b5dd15a",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 20 - 0
assets/script/game/eliminate/view/RedPackeWithdrawalViewComp.ts

@@ -0,0 +1,20 @@
+import { _decorator } from "cc";
+import { ecs } from "db://oops-framework/libs/ecs/ECS";
+import { CCComp } from "db://oops-framework/module/common/CCComp";
+
+const { ccclass, property } = _decorator;
+
+/** 视图层对象 */
+@ccclass('RedEnvelopeWithdrawalViewComp')
+@ecs.register('RedEnvelopeWithdrawalView', false)
+export class RedEnvelopeWithdrawalViewComp extends CCComp {
+    /** 视图层逻辑代码分离演示 */
+    start() {
+        // const entity = this.ent as ecs.Entity;         // ecs.Entity 可转为当前模块的具体实体对象
+    }
+
+    /** 视图对象通过 ecs.Entity.remove(RedEnvelopeWithdrawalViewComp) 删除组件是触发组件处理自定义释放逻辑 */
+    reset() {
+        this.node.destroy();
+    }
+}

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

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "689d9bac-274d-43d5-bb2d-4884415177f0",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}