private void DoLoadListData(cmd_Crown_Gemstone_Product_Info data) { if (m_GenstoneChestFlopList == null) { return; } if (data.cobblestonGemstoneIDList.Length != data.windowGemstoneIDList.Length) { return; } int nGradeMax = 0; for (int i = 0; i < data.cobblestonGemstoneIDList.Length; ++i) { bool bWin = false; int nCobGemstoneID = data.cobblestonGemstoneIDList[i]; if (nCobGemstoneID <= 0) { continue; } SSchemeCrownGemstoneConfig config = CrownPageConfigPage.Instance.GetCrownPageGemstoneConfig(nCobGemstoneID); if (config == null) { continue; } nGradeMax = config.nGradeUpper > nGradeMax ? config.nGradeUpper : nGradeMax; for (int j = 0; j < data.windowGemstoneIDList.Length; ++j) { if (data.windowGemstoneIDList[i] == nCobGemstoneID) { bWin = true; break; } } m_GenstoneChestFlopList[i].UpdateItem(nCobGemstoneID, bWin, data.bOpenWinEnd > 0, data.cobStoneIDList[i], config); } OperationStateText.text = data.bOpenWinEnd > 0 ? "点击抽取其中一颗宝石" : "请选择开窗宝石"; if (nGradeMax >= 0 && nGradeMax < UDefines.sGemstoneGradeDesc.Length) { BestGemstoneTipText.text = "最高品级 : " + UDefines.sGemstoneGradeDesc[nGradeMax]; } int nOpenChestID = LogicDataCenter.prizeChestDataManager.OpenChestID; SSchemePrizeChestConfig chestConfig = ActorPrizeConfig.Instance.GetPrizeChestConfig(nOpenChestID); if (chestConfig != null) { ChestDescText.text = chestConfig.strChestName; } }
public void UpdateGemStoneProductData(cmd_Crown_Gemstone_Product_Info data) { m_productData.data = data; UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_GEMSTONECHESTFLOP_UPDATEVIEW, null); }