/// <summary> /// 试炼副本总结算 /// </summary> /// <param name="dataBuffer"></param> /// <param name="socketID"></param> /// <returns></returns> CommandCallbackType ReceiveTrialsSettlement(byte[] dataBuffer, int socketID) { SMSGEctypeTrialsTotalResult_SC sMSGEctypeTrialsTotalResult_SC = SMSGEctypeTrialsTotalResult_SC.ParsePackage(dataBuffer); TraceUtil.Log("收到试炼副本总结算:" + sMSGEctypeTrialsTotalResult_SC.dwProgress); UIEventManager.Instance.TriggerUIEvent(UIEventType.TrialSettlement, sMSGEctypeTrialsTotalResult_SC); return(CommandCallbackType.Continue); }
public void ShowTrialsSettlement(object obj) { SMSGEctypeTrialsTotalResult_SC sMSGEctypeTrialsTotalResult_SC = (SMSGEctypeTrialsTotalResult_SC)obj; if (TrialsSettlementpanel == null) { TrialsSettlementpanel = CreatObjectToNGUI.InstantiateObj(TrialsSettlementPanelPrefab, transform).GetComponent <TrialsSettlementpanel_V2>(); } TrialsSettlementpanel.Show(sMSGEctypeTrialsTotalResult_SC); if (SingleTrialsSettlementPanel != null) { SingleTrialsSettlementPanel.Close(); } }
public void Show(SMSGEctypeTrialsTotalResult_SC sMSGEctypeTrialsTotalResult_SC) { TraceUtil.Log("显示结算:" + sMSGEctypeTrialsTotalResult_SC.byClearance); ScorePanelComponent.alpha = 0; this.sMSGEctypeTrialsTotalResult_SC = sMSGEctypeTrialsTotalResult_SC; if (sMSGEctypeTrialsTotalResult_SC.byClearance == 1) { StartCoroutine(StartTimeScale(0)); } else { ShowPanel(); } }
public void Show(SMSGEctypeTrialsTotalResult_SC sMSGEctypeTrialsTotalResult_SC) { int showComponentID = ComponentID * 2; for (int i = 0; i < 2; i++) { if ((showComponentID + i) < sMSGEctypeTrialsTotalResult_SC.dwEquipReward.Count) { SEquipRewardInfo sEquipRewardInfo = sMSGEctypeTrialsTotalResult_SC.dwEquipReward[showComponentID + i]; ItemData creatItemData = ItemDataManager.Instance.GetItemData((int)sEquipRewardInfo.dwEquipId); ItemCreatIconPoint[i].ClearChild(); CreatObjectToNGUI.InstantiateObj(creatItemData._picPrefab, ItemCreatIconPoint[i]); ItemInfoLabel[i].SetText(creatItemData._GoodsClass == 3 ? sEquipRewardInfo.dwEquipNum.ToString() : LanguageTextManager.GetString(creatItemData._szGoodsName)); } else { ItemCreatIconPoint[i].ClearChild(); ItemInfoLabel[i].SetText(""); } } AnimationComponent.Stop(); AnimationComponent.Play(); }