Exemplo n.º 1
0
        public void OnMsgBoxOpenWinInfo()
        {
            {
                int nOpenChestID = LogicDataCenter.prizeChestDataManager.OpenChestID;
                int nCostMoney   = 0;
                SSchemePrizeChestConfig chestConfig = ActorPrizeConfig.Instance.GetPrizeChestConfig(nOpenChestID);
                if (chestConfig != null)
                {
                    GemStoneProductData productData             = LogicDataCenter.crownPageDataManager.CrownGemstoneProductInfo;
                    SSchemeCrownGemstoneRandomConfig randConfig = CrownPageConfigPage.Instance.GetCrownPageGemsRandomConfig(chestConfig.nPrizeGroupID);
                    if (randConfig != null && productData != null)
                    {
                        int nGemstoneGroupID = chestConfig.nPrizeGroupID;
                        int nBaseTicket      = randConfig.nOpenWinCost;;
                        int nAdditionTicket  = randConfig.nAdditionWinCost;
                        nCostMoney = nBaseTicket + GetListEffectiveCount(productData.data.windowGemstoneIDList) * nAdditionTicket;
                    }
                }

                UIDialogData data = new UIDialogData(title: "透视宝石",
                                                     message: "消耗" + nCostMoney + "点券,获得一次透视矿石机会",
                                                     buttons: new UIWidgets.DialogActions()
                {
                    { "确认", OnMsgBoxOpenWinHandelSave },
                    { "取消", OnMsgBoxOpenWinHandelCancel }
                },
                                                     closeButtonAction: new UnityEngine.Events.UnityAction(OnMsgBoxOpenWinHandelCancelEx)

                                                     );
                UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_COMMON_DIALOG, data);
            }
        }
Exemplo n.º 2
0
        public void UpdateView()
        {
            GemStoneProductData productData = LogicDataCenter.crownPageDataManager.CrownGemstoneProductInfo;

            DoInitList();
            ResetView();
            DoLoadListData(productData.data);
        }