Parcourir la source

功能开启添加气泡红包

薛鸿潇 il y a 5 ans
Parent
commit
3121d2cdb2

Fichier diff supprimé car celui-ci est trop grand
+ 162 - 143
assets/resources/game/prefab/game.prefab


+ 4 - 0
assets/resources/game/prefab/gameplay.prefab

@@ -1263,6 +1263,7 @@
     },
     "_enabled": true,
     "panel_name": "module/reward/rewardLuck",
+    "bool_Auth": false,
     "open_type": 0,
     "transition_type": 0,
     "onComplete": [],
@@ -1684,6 +1685,7 @@
     },
     "_enabled": true,
     "panel_name": "module/reward/rewardLuck",
+    "bool_Auth": false,
     "open_type": 0,
     "transition_type": 0,
     "onComplete": [],
@@ -2105,6 +2107,7 @@
     },
     "_enabled": true,
     "panel_name": "module/reward/rewardLuck",
+    "bool_Auth": false,
     "open_type": 0,
     "transition_type": 0,
     "onComplete": [],
@@ -2526,6 +2529,7 @@
     },
     "_enabled": true,
     "panel_name": "module/reward/rewardLuck",
+    "bool_Auth": false,
     "open_type": 0,
     "transition_type": 0,
     "onComplete": [],

+ 11 - 0
assets/script/before/GamePlay.ts

@@ -194,6 +194,7 @@ export default class GamePlay extends cc.Component {
             cc.tween(this.btn_gameGetRed4).delay(0.4).to(1, { y: 60 }, { easing: "" }).to(1, { y: 0 }, { easing: "" }).union().repeatForever().start();
 
         }).catch();
+        this.qipaoShow();
     }
 
     onEnable() {
@@ -1126,4 +1127,14 @@ export default class GamePlay extends cc.Component {
             clearInterval(this.interval_ShowGuide);
         }
     }
+
+    /**
+     * 气泡红包是否开启
+     */
+    private qipaoShow() {
+        for (let i = 0; i < 4; i++) {
+            this['btn_gameGetRed' + (i + 1)].active = gData.gameData.funBtns.btn8.active;
+        }
+
+    }
 }

+ 7 - 2
assets/script/game/data/module/GuideWeakData.ts

@@ -19,6 +19,11 @@ export default class GuideWeakData {
      */
     public init() {
         // this.data_config = data_config;
+        if (gData.gameData.configs.ServerConfig.triggerTime)
+            this.data_config.triggerTime = gData.gameData.configs.ServerConfig.triggerTime;
+        if (gData.gameData.configs.ServerConfig.panelWeight) {
+
+        }
     }
     /**
      * 星云数据配置
@@ -26,7 +31,7 @@ export default class GuideWeakData {
      * - 触发时间
      */
     public data_config = {
-        "panelWeight": {
+        panelWeight: {
             "1": 10,
             "2": 10,
             "4": 10,
@@ -34,7 +39,7 @@ export default class GuideWeakData {
             "6": 10,
             "7": 10
         },
-        "triggerTime": 5
+        triggerTime: 5
     }
     /** 功能是否启动 */
     public enable: boolean = false;

+ 2 - 0
assets/script/game/game/FunBtns.ts

@@ -18,6 +18,8 @@ export default class FunBtns extends cc.Component {
     btn6: cc.Node = null;
     @property({ type: cc.Node, displayName: "常规提现" })
     btn7: cc.Node = null;
+    @property({ type: cc.Node, displayName: "气泡红包组" })
+    btn8: cc.Node = null;
     @property({ type: cc.Node, displayName: "福利礼包" })
     btn_redeem: cc.Node = null;
 

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff