public override void Refresh(object data) { if (this.mData == data) { return; } this.mData = (GUIGuildMinesRecordData)data; this.Refresh(); }
public void OnOrePillageClick(GUIGuildMinesRecordData data) { if (this.mData.RevengeCount <= 0) { GameUIManager.mInstance.ShowMessageTipByKey("guildMines16", 0f, 0f); return; } MC2S_OrePillageStart mC2S_OrePillageStart = new MC2S_OrePillageStart(); mC2S_OrePillageStart.TargetID = data.mRecord.GUID; mC2S_OrePillageStart.Amount = data.mRecord.PillageCount; mC2S_OrePillageStart.Flag = true; Globals.Instance.CliSession.Send(1026, mC2S_OrePillageStart); GameUIState uiState = GameUIManager.mInstance.uiState; LocalPlayer player = Globals.Instance.Player; uiState.PlayerLevel = player.Data.Level; uiState.PlayerEnergy = player.Data.Energy; uiState.PlayerExp = player.Data.Exp; uiState.PlayerMoney = player.Data.Money; uiState.SetOldFurtherData(player.TeamSystem.GetPet(0)); GameUIPopupManager.GetInstance().PopState(true, null); }