private void SetGuildMark() { for (int i = 0; i < this.m_nlbWarList.Count; i++) { UIListItemContainer item = this.m_nlbWarList.GetItem(i); if (!(item == null)) { GUILDWAR_MATCH_INFO gUILDWAR_MATCH_INFO = item.Data as GUILDWAR_MATCH_INFO; if (gUILDWAR_MATCH_INFO != null) { UIButton[] componentsInChildren = item.GetComponentsInChildren <UIButton>(); if (gUILDWAR_MATCH_INFO.SUB_INFO.i64GuildID[0] == NrTSingleton <NewGuildManager> .Instance.GetGuildID() || gUILDWAR_MATCH_INFO.SUB_INFO.i64GuildID[1] == NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_UI_GUILDMARK", componentsInChildren[0], componentsInChildren[0].GetSize()); } } DrawTexture[] componentsInChildren2 = item.GetComponentsInChildren <DrawTexture>(); for (int j = 0; j < componentsInChildren2.Length; j++) { if (componentsInChildren2[j].data != null) { long num = (long)componentsInChildren2[j].data; if (num > 0L) { string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(num); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), componentsInChildren2[j]); } } } } } }
public void Update(USER_FRIEND_INFO userFriendInfo) { this.strName = TKString.NEWString(userFriendInfo.szName); this.i16Level = userFriendInfo.i16Level; this.i32WorldID = userFriendInfo.i32FriendWorldID; this.i32WorldID_Connect = userFriendInfo.i32WorldID_Connect; this.i64PersonID = userFriendInfo.nPersonID; this.i16BattleMatch = userFriendInfo.i16BattleMatch; this.bConnect = (userFriendInfo.i8Location > 0); this.byLocation = userFriendInfo.i8Location; this.i32MapUnique = userFriendInfo.i32MapUnique; this.i32FaceCharKind = userFriendInfo.i32FaceCharKind; this.byUserPlayState = userFriendInfo.i8UserPlayState; this.i32CostumeUnique = userFriendInfo.i32FaceCharCostumeUnique; this.Friend_HelpSolInfo = userFriendInfo.FriendHelpSolInfo; this.strPlatformName = TKString.NEWString(userFriendInfo.szPlatformName); this.i64LogoutTime = userFriendInfo.i64LogoutTIme; string[] array = TKString.NEWString(userFriendInfo.szGuildName).Split(new char[] { '_' }); this.strGuildName = array[0]; if (array.Length > 1) { this.bGuildWar = true; } this.i16ColosseumGrade = userFriendInfo.i16ColosseumGrade; this.ui8UserPortrait = userFriendInfo.ui8UserPortrait; if (userFriendInfo.ui8UserPortrait == 1 && this.i64PersonID > 0L && this.i64PersonID > 11L) { string userPortraitURL = NrTSingleton <NkCharManager> .Instance.GetUserPortraitURL(this.i64PersonID); WebFileCache.RequestImageWebFile(userPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebUserImageCallback), this.UserPortrait); } }
public void SetPortrait() { if (this.m_lPersonID > 0L && this.m_lPersonID > 11L) { string userPortraitURL = NrTSingleton <NkCharManager> .Instance.GetUserPortraitURL(this.m_lPersonID); WebFileCache.RequestImageWebFile(userPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebGuildImageCallback), this.m_lPersonID); } }
public void SetLoadGuildMark() { if (0L < NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(NrTSingleton <NewGuildManager> .Instance.GetGuildID()); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebGuildImageCallback), this.m_dtGuildMark); } }
public void SetUserTexture(long lPersonID) { if (lPersonID > 0L && lPersonID > 11L) { string userPortraitURL = NrTSingleton <NkCharManager> .Instance.GetUserPortraitURL(lPersonID); WebFileCache.RequestImageWebFile(userPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebUserStoryChatImageCallback), lPersonID); } }
public void SetDetailInfo(NewGuildWarDetailInfoDlg.eSTATE eState) { this.InitControl(); if (this.m_i64GuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { this.m_lbGuildName.SetText(NrTSingleton <NewGuildManager> .Instance.GetGuildName()); } else { this.m_lbGuildName.SetText(NrTSingleton <GuildWarManager> .Instance.GuildWarGuildName); } if (0L < this.m_i64GuildID) { string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(this.m_i64GuildID); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), null); } int num = 0; ApplyUserInfo applyUserInfo = this.GetApplyUserInfo(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID); if (applyUserInfo == null) { applyUserInfo = this.GetApplyUserInfoLeader(); } if (applyUserInfo != null) { num = (int)applyUserInfo.GetRaidBattlePos(); } this.m_iCurSelectIndex = num; this.m_iOldSelectIndex = num; this.LoadEffect(); this.SetDetailInfoSub(num); if (this.m_i64GuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2595"), "targetname", NrTSingleton <NewGuildManager> .Instance.GetGuildName(), "count", (int)(this.m_iRaidUnique + 1) }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2595"), "targetname", NrTSingleton <GuildWarManager> .Instance.GuildWarGuildName, "count", (int)(this.m_iRaidUnique + 1) }); } this.m_lbGuildWarInfo.SetText(this.m_strText); }
public void Set(long i64PersonID, bool bReFresh) { this.m_i64PersonID = i64PersonID; if (this.m_i64PersonID > 0L && this.m_i64PersonID > 11L) { string userPortraitURL = NrTSingleton <NkCharManager> .Instance.GetUserPortraitURL(i64PersonID); WebFileCache.RequestImageWebFile(userPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebUserStoryChatImageCallback), this.m_i64PersonID); } }
public void AddFriend(USER_FRIEND_INFO kFriendInfo) { if (this.m_dicFriendList.ContainsKey(kFriendInfo.nPersonID)) { this.m_dicFriendList.Remove(kFriendInfo.nPersonID); } this.m_dicFriendList.Add(kFriendInfo.nPersonID, kFriendInfo); if (kFriendInfo.nPersonID > 10L && !this.m_dicFriendTextureData.ContainsKey(kFriendInfo.nPersonID)) { this.m_dicFriendTextureData.Add(kFriendInfo.nPersonID, null); string userPortraitURL = NrTSingleton <NkCharManager> .Instance.GetUserPortraitURL(kFriendInfo.nPersonID); WebFileCache.RequestImageWebFile(userPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebUserImageCallback), kFriendInfo.nPersonID); } }
private void SetGuildMark() { for (int i = 0; i < this.m_nlbDeclareWarList.Count; i++) { UIListItemContainer uIListItemContainer = this.m_nlbDeclareWarList.GetItem(i) as UIListItemContainer; DrawTexture[] componentsInChildren = uIListItemContainer.GetComponentsInChildren <DrawTexture>(); for (int j = 0; j < componentsInChildren.Length; j++) { DeclareWarGuildMarkData declareWarGuildMarkData = (DeclareWarGuildMarkData)componentsInChildren[j].data; if (declareWarGuildMarkData.i64GuildID != 0L) { string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(declareWarGuildMarkData.i64GuildID); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), componentsInChildren[j]); } } } }
public void SetListAttackGuildMark() { for (int i = 0; i < this.m_lbCurrentStatus.Count; i++) { IUIListObject item = this.m_lbCurrentStatus.GetItem(i); if (item != null) { MINE_GUILD_CURRENTSTATUS_INFO mINE_GUILD_CURRENTSTATUS_INFO = item.Data as MINE_GUILD_CURRENTSTATUS_INFO; if (mINE_GUILD_CURRENTSTATUS_INFO != null) { if (mINE_GUILD_CURRENTSTATUS_INFO.byCurrentStatusType == 1 || mINE_GUILD_CURRENTSTATUS_INFO.byCurrentStatusType == 0) { if (mINE_GUILD_CURRENTSTATUS_INFO.i64AttackGuildID > 0L) { DrawTexture drawTexture = ((UIListItemContainer)item).GetElement(8) as DrawTexture; if (drawTexture != null) { if (mINE_GUILD_CURRENTSTATUS_INFO.i64AttackGuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID() || !mINE_GUILD_CURRENTSTATUS_INFO.bIsAttackGuildNameHide) { string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(mINE_GUILD_CURRENTSTATUS_INFO.i64AttackGuildID); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebGuildImageCallback), drawTexture); } else { drawTexture.SetTexture("Win_BI_Nomark"); } } } } else if (mINE_GUILD_CURRENTSTATUS_INFO.byCurrentStatusType == 2) { DrawTexture drawTexture2 = ((UIListItemContainer)item).GetElement(8) as DrawTexture; if (drawTexture2 != null) { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; drawTexture2.SetTexture(eCharImageType.SMALL, kMyCharInfo.GetImgFaceCharKind(), -1, string.Empty); } } } } } }
public void GuildImageSetting() { this.m_nlbWaitGuildInfo.Clear(); long guildID = NrTSingleton <NewGuildManager> .Instance.GetGuildID(); this.m_nTotalCount = 0; for (int i = 0; i < this.m_TempGuildInfo.Count; i++) { NewListItem newListItem = new NewListItem(this.m_nlbWaitGuildInfo.ColumnNum, true, string.Empty); if (this.m_TempGuildInfo[i].nGuildID == guildID) { newListItem.SetListItemData(0, NrTSingleton <CTextParser> .Instance.GetTextColor("1107") + this.m_TempGuildInfo[i].strGuildName, null, null, null); } else { newListItem.SetListItemData(0, this.m_TempGuildInfo[i].strGuildName, null, null, null); } if (this.m_TempGuildInfo[i].isHiddenInfo) { newListItem.SetListItemData(1, NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Win_BI_Nomark"), true, null, null); } else { newListItem.SetListItemData(1, NrTSingleton <NewGuildManager> .Instance.GetGuildDefualtTexture(), true, null, null); } this.m_nlbWaitGuildInfo.Add(newListItem); } this.m_nlbWaitGuildInfo.RepositionItems(); for (int j = 0; j < this.m_TempGuildInfo.Count; j++) { if (!this.m_TempGuildInfo[j].isHiddenInfo) { string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(this.m_TempGuildInfo[j].nGuildID); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), j); } } }
public void SetInfo(GS_GUILDWAR_INFO_ACK ACK) { string text = string.Empty; if (NrTSingleton <GuildWarManager> .Instance.CanGetGuildWarReward()) { this.m_boxNotice.Hide(false); } else { this.m_boxNotice.Hide(true); } if (ACK.i64GuildID[1] > 0L) { base.SetShowLayer(1, true); base.SetShowLayer(2, true); this.m_lbApplyNoti.Hide(true); if (ACK.bGuildWarTimeState == 2) { this.m_lbGuildWarTimeState.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2979")); } else if (ACK.bGuildWarTimeState == 3) { int num; if (ACK.i32WarMatchPoint[0] > ACK.i32WarMatchPoint[1]) { num = 0; } else if (ACK.i32WarMatchPoint[0] < ACK.i32WarMatchPoint[1]) { num = 1; } else { num = ((ACK.i32Rank[0] >= ACK.i32Rank[1]) ? 0 : 1); } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2980"), "targetname", TKString.NEWString(ACK.strGuildName[num]) }); this.m_lbGuildWarTimeState.SetText(text); NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_GUILDWAR_VICTORYMARK", this.m_dtVictoryEffect[num], this.m_dtVictoryEffect[num].GetSize()); if (num == 0) { TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "ETC", "GUILD_WIN", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); } else { TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "ETC", "GUILD_LOSE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); } } else { base.SetShowLayer(2, false); } } else { base.SetShowLayer(1, false); base.SetShowLayer(2, false); this.m_lbApplyNoti.Hide(false); } NrTSingleton <GuildWarManager> .Instance.bIsGuildWar = ACK.bIsGuildWar; NrTSingleton <GuildWarManager> .Instance.bIsGuildWarCancelReservation = ACK.bIsCancelReservation; this.SetApplyButton(); for (int i = 0; i < 2; i++) { if (ACK.i64GuildID[i] > 0L) { this.m_btGuild[i].Data = ACK.i64GuildID[i]; string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(ACK.i64GuildID[i]); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), this.m_dtGMark[i]); text = TKString.NEWString(ACK.strGuildName[i]); if (NrTSingleton <GuildWarManager> .Instance.bIsGuildWar && i == 0) { text = string.Format("{0}{1}", NrTSingleton <CTextParser> .Instance.GetTextColor("1401"), TKString.NEWString(ACK.strGuildName[i])); } this.m_lbGuildName[i].SetText(text); this.m_lbMatchPoint[i].SetText(ACK.i32WarMatchPoint[i].ToString()); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1685"), "count", ACK.i32Rank[i] }); this.m_lbGuildWarRank[i].SetText(text); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1786"), "count", ACK.i16Level[i] }); this.m_lbGuildLevel[i].SetText(text); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1303"), "count1", ACK.i16CurMemberNum[i], "count2", ACK.i16MaxMemberNum[i] }); this.m_lbMemberCount[i].SetText(text); long num2 = 0L; long num3 = 1L; GUILD_EXP guildLevelUpInfo = NrTSingleton <NkGuildExpManager> .Instance.GetGuildLevelUpInfo(ACK.i16Level[i]); if (guildLevelUpInfo != null) { num2 = ACK.i64Exp[i] - guildLevelUpInfo.m_nExp; } GUILD_EXP guildLevelUpInfo2 = NrTSingleton <NkGuildExpManager> .Instance.GetGuildLevelUpInfo(ACK.i16Level[i] + 1); if (guildLevelUpInfo2 != null && guildLevelUpInfo != null) { num3 = guildLevelUpInfo2.m_nExp - guildLevelUpInfo.m_nExp; if (0L > num3) { num3 = 0L; } } float num4 = (float)num2 / (float)num3; if (1f < num4) { num4 = 1f; } this.m_dtExpBar[i].SetSize(this.m_fExpWidth[i] * num4, this.m_dtExpBar[i].GetSize().y); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("603"), "count1", num2, "count2", num3 }); this.m_lbExpBarText[i].SetText(text); if (ACK.i64BirthDate[i] > 0L) { DateTime dueDate = PublicMethod.GetDueDate(ACK.i64BirthDate[i]); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("602"), "year", dueDate.Year, "month", dueDate.Month, "day", dueDate.Day }); this.m_lbGuildBirth[i].SetText(text); } else { this.m_lbGuildBirth[i].SetText(string.Empty); } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1041"), "count", ACK.i32WarPoint[i] }); this.m_lbAccrueHonor[i].SetText(text); } } }
public void MakeCharGuild(eCharKindType chartype, long i64GuildID, string strGuildName, bool bGuildWar, bool ridestate) { if (this.m_pkHeadUpRoot == null) { return; } this.DisposeGameObject(this.m_pkGuildSprite); if (this.m_pkGuildSprite == null) { this.m_pkGuildSprite = CResources.ADDPrefabLoad(this.m_pkHeadUpRoot, NrTSingleton <UIDataManager> .Instance.FilePath + "Prefabs/CharName"); if (this.m_pkGuildSprite != null) { CharNameBillboardSprite component = this.m_pkGuildSprite.GetComponent <CharNameBillboardSprite>(); if (component == null) { TsLog.LogWarning("!!!!!!!!!!!!!!!!!!!!! m_pkGuildSprite NULL ", new object[0]); return; } component.Init(); if (strGuildName.Length != 0) { string str = string.Empty; if (bGuildWar) { str = NrTSingleton <CTextParser> .Instance.GetTextColor("1401"); } else { str = NrTSingleton <CTextParser> .Instance.GetTextColor("2005"); } component.SetText(str + strGuildName); component.SetTextSize(12f); this.MakeCharGuildRank(component); if (i64GuildID != 0L) { string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(i64GuildID); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), component); } else { Transform transform = component.transform.FindChild("CharRank"); if (transform != null) { DrawTexture drawTexture = (DrawTexture)transform.GetComponent(typeof(DrawTexture)); drawTexture.SetTexture(NrTSingleton <NewGuildManager> .Instance.GetGuildDefualtTexture()); component.ShowTextAndPlane(true, false, true); } else { component.ShowTextAndPlane(true, false, false); } } this.m_kTempVector3.x = 0f; this.m_kTempVector3.y = 2f; this.m_kTempVector3.z = 0f; this.m_pkGuildSprite.transform.localPosition = this.m_kTempVector3; } this.SyncBillboardRotate(true); bool showHeadUp = this.IsCheckShowHeadUp(chartype); this.SetShowHeadUp(showHeadUp); } } }
public void SetDetailInfo(GS_NEWGUILD_DETAILINFO_ACK ACK) { this.m_lGuildID = ACK.i64GuildID; this.m_strGuildName = TKString.NEWString(ACK.strGuildName); if (ACK.bGuildWar) { this.m_strGuildName = string.Format("{0}{1}", NrTSingleton <CTextParser> .Instance.GetTextColor("1401"), this.m_strGuildName); } this.m_lbGuildName.Text = this.m_strGuildName; this.Send_GS_DECLAREWAR_LIST_REQ(); int i16Rank = (int)ACK.i16Rank; if (0 < i16Rank) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1689"), "count", i16Rank, "count2", ACK.i32Point }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1851"), "count", ACK.i32Point }); } this.m_lbRank.SetText(this.m_strText); long num = 0L; long num2 = 1L; GUILD_EXP guildLevelUpInfo = NrTSingleton <NkGuildExpManager> .Instance.GetGuildLevelUpInfo(ACK.i16Level); if (guildLevelUpInfo != null) { num = ACK.i64Exp - guildLevelUpInfo.m_nExp; } GUILD_EXP guildLevelUpInfo2 = NrTSingleton <NkGuildExpManager> .Instance.GetGuildLevelUpInfo(ACK.i16Level + 1); if (guildLevelUpInfo2 != null && guildLevelUpInfo != null) { num2 = guildLevelUpInfo2.m_nExp - guildLevelUpInfo.m_nExp; if (0L > num2) { num2 = 0L; } } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1786"), "count", ACK.i16Level }); this.m_lbLevel.SetText(this.m_strText); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("603"), "count1", num, "count2", num2 }); this.m_lbExpText.SetText(this.m_strText); float num3 = (float)num / (float)num2; if (1f < num3) { num3 = 1f; } this.m_dtExp.SetSize(this.m_fExpWidth * num3, this.m_dtExp.GetSize().y); this.m_lbMasterName.SetText(TKString.NEWString(ACK.strMasterName)); this.m_strText = TKString.NEWString(ACK.strSubMasterName); if (string.Empty == this.m_strText) { this.m_strText = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("48"); } this.m_lbSubMasterName.SetText(this.m_strText); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1303"), "count1", ACK.i16CurMemberNum, "count2", ACK.i16MaxMemberNum }); this.m_lbMemberNum.SetText(this.m_strText); this.m_lbGuildMessage.SetText(TKString.NEWString(ACK.strGuildMessage)); if (0 < ACK.i16ApplicantNum && 0L < this.m_lGuildID && this.m_lGuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID() && NrTSingleton <NewGuildManager> .Instance.IsDischargeMember(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID)) { this.m_bxApplicantNum.Hide(false); this.m_bxApplicantNum.SetText(ACK.i16ApplicantNum.ToString()); } else { this.m_bxApplicantNum.Hide(true); } if (0L < ACK.i64CreateDate) { DateTime dueDate = PublicMethod.GetDueDate(ACK.i64CreateDate); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("602"), "year", dueDate.Year, "month", dueDate.Month, "day", dueDate.Day }); this.m_lbGuildCreateDate.SetText(this.m_strText); } else { this.m_lbGuildCreateDate.SetText(string.Empty); } this.m_bIsDeclareWarTarget = ACK.bIsDeclareWarTarget; this.SetButton(); this.m_lbFund.SetText(ANNUALIZED.Convert(ACK.i64Fund)); switch (i16Rank) { case 1: this.m_dtMedal.Hide(false); this.m_dtMedal.SetTexture("Win_I_Rank03"); break; case 2: this.m_dtMedal.Hide(false); this.m_dtMedal.SetTexture("Win_I_Rank02"); break; case 3: this.m_dtMedal.Hide(false); this.m_dtMedal.SetTexture("Win_I_Rank01"); break; default: this.m_dtMedal.Hide(true); break; } if (0L < this.m_lGuildID) { string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(this.m_lGuildID); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), null); } }
public void SetInfo(CONGRATULATORY_MESSAGE messageNfy) { if (NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1) == null) { return; } int charkind = messageNfy.i32params[0]; if (messageNfy.m_nItemUnique == 0 && messageNfy.m_nMsgType != 10 && messageNfy.m_nMsgType != 9) { if (NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(charkind) == null) { return; } this.m_dSolFrame.SetTexture(NrTSingleton <NrCharKindInfoManager> .Instance.GetSolRankBackImg(charkind)); } string text = string.Empty; string text2 = string.Empty; if (messageNfy.m_nMsgType == 1) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("61"); string text3 = TKString.NEWString(messageNfy.char_name); string text4 = string.Empty; text4 = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(messageNfy.i32params[0]); string itemNameByItemUnique = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(messageNfy.i32params[2]); if (string.Empty != itemNameByItemUnique) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2559"), "charname", text3, "target", itemNameByItemUnique, "solname", text4 }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1383"), "charname", text3, "targetname", text4 }); } this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, messageNfy.i32params[1]); } else if (messageNfy.m_nMsgType == 3) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("61"); string text5 = TKString.NEWString(messageNfy.char_name); switch (messageNfy.i32params[1]) { case 1: if (messageNfy.i32params[2] == 0) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("988"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname", text5 }); } break; case 2: if (messageNfy.i32params[2] == 0) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("990"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname", text5 }); } break; case 3: { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; kMyCharInfo.m_kFriendInfo.UpdateFriendBabelData(messageNfy.m_nPersonID, (short)messageNfy.i32params[3], (byte)messageNfy.i32params[4], (short)((byte)messageNfy.i32params[5]), 0); if (messageNfy.i32params[2] == 0 && messageNfy.i32params[5] == 6) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("989"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname", text5, "floor", messageNfy.i32params[3], "subfloor", messageNfy.i32params[4] + 1 }); } else { this.Close(); } break; } } this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, -1); } else if (messageNfy.m_nMsgType == 2) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("556"); string text6 = TKString.NEWString(messageNfy.char_name); if (messageNfy.i32params[3] == 2) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text6, "charname2", TKString.NEWString(messageNfy.szparam1), "floor", messageNfy.i32params[1], "subfloor", messageNfy.i32params[2] + 1 }); } else if (messageNfy.i32params[3] == 3) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1405"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text6, "charname2", TKString.NEWString(messageNfy.szparam1), "charname3", TKString.NEWString(messageNfy.szparam2), "floor", messageNfy.i32params[1], "subfloor", messageNfy.i32params[2] + 1 }); } else if (messageNfy.i32params[3] == 4) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1406"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text6, "charname2", TKString.NEWString(messageNfy.szparam1), "charname3", TKString.NEWString(messageNfy.szparam2), "charname4", TKString.NEWString(messageNfy.szparam3), "floor", messageNfy.i32params[1], "subfloor", messageNfy.i32params[2] + 1 }); } this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, -1); } else if (messageNfy.m_nMsgType == 11) { this.m_laTitle.Text = NrTSingleton <MythRaidManager> .Instance.GetMythRaidTypeText((eMYTHRAID_DIFFICULTY)messageNfy.i32params[4]); string text7 = TKString.NEWString(messageNfy.char_name); if (messageNfy.i32params[3] == 2) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3269"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text7, "charname2", TKString.NEWString(messageNfy.szparam1) }); } else if (messageNfy.i32params[3] == 3) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3270"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text7, "charname2", TKString.NEWString(messageNfy.szparam1), "charname3", TKString.NEWString(messageNfy.szparam2) }); } else if (messageNfy.i32params[3] == 4) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3271"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text7, "charname2", TKString.NEWString(messageNfy.szparam1), "charname3", TKString.NEWString(messageNfy.szparam2), "charname4", TKString.NEWString(messageNfy.szparam3) }); } this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, -1); } else if (messageNfy.m_nMsgType == 4) { string text8 = TKString.NEWString(messageNfy.char_name); string text9 = NrTSingleton <NrItemSkillInfoManager> .Instance.GetPreText(messageNfy.i32params[0]) + " " + NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(messageNfy.m_nItemUnique); TsLog.LogWarning("CharName={0} ItemName={1}, ItemUnique={2}, skilllevel={3}", new object[] { text8, text9, messageNfy.m_nItemUnique, messageNfy.i32params[1] }); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1364"), "charname", text8, "targetname", text9, "skilllevel", messageNfy.i32params[1] }); ITEM iTEM = new ITEM(); iTEM.m_nOption[2] = 6; iTEM.m_nItemUnique = messageNfy.m_nItemUnique; iTEM.m_nItemNum = messageNfy.m_nItemNum; this.m_iSolFace.SetItemTexture(iTEM); } else if (messageNfy.m_nMsgType == 6) { string text10 = TKString.NEWString(messageNfy.char_name); string itemNameByItemUnique2 = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(messageNfy.m_nItemUnique); if (messageNfy.i32params[0] > 0) { string itemNameByItemUnique3 = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(messageNfy.i32params[0]); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1932"), "charname", text10, "targetname1", itemNameByItemUnique3, "targetname", itemNameByItemUnique2 }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1383"), "charname", text10, "targetname", itemNameByItemUnique2 }); } ITEM iTEM2 = new ITEM(); iTEM2.m_nOption[2] = 6; iTEM2.m_nItemUnique = messageNfy.m_nItemUnique; iTEM2.m_nItemNum = messageNfy.m_nItemNum; this.m_iSolFace.SetItemTexture(iTEM2); } else if (messageNfy.m_nMsgType == 5) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("61"); string text11 = TKString.NEWString(messageNfy.char_name); string text12 = string.Empty; text12 = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(messageNfy.i32params[0]); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1817"), "charname", text11, "targetname", text12 }); this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, messageNfy.i32params[1]); } else if (messageNfy.m_nMsgType == 7) { this.m_laTitle.Text = this.GetTitle_GuildMsg(messageNfy.i32params[0]); text2 = this.GetExplain_GuildMsg(messageNfy.i32params[0], messageNfy.i32params[1], messageNfy.i32params[2]); if (messageNfy.i32params[0] == 0 || messageNfy.i32params[0] == 1 || messageNfy.i32params[0] == 2) { BABEL_GUILDBOSS babelGuildBossinfo = NrTSingleton <BabelTowerManager> .Instance.GetBabelGuildBossinfo((short)messageNfy.i32params[1]); if (babelGuildBossinfo == null) { return; } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(babelGuildBossinfo.m_nBossKind); if (charKindInfo != null) { this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charKindInfo.GetCharKind(), -1); } } } else if (messageNfy.m_nMsgType == 8) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("61"); string text13 = TKString.NEWString(messageNfy.char_name); string text14 = string.Empty; text14 = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(messageNfy.i32params[0]); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3088"), "charname", text13, "solname", text14 }); this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, messageNfy.i32params[1]); } else if (messageNfy.m_nMsgType == 9) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(messageNfy.i32params[0].ToString()); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox(messageNfy.i32params[1].ToString()); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { textFromMessageBox, "targetname", TKString.NEWString(messageNfy.char_name) }); string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(messageNfy.i64Param); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), this.m_iSolFace); } else if (messageNfy.m_nMsgType == 10) { byte grade = (byte)messageNfy.level; short minedata_id = (short)messageNfy.i32params[0]; this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(messageNfy.i32params[1].ToString()); string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(messageNfy.i32params[2].ToString()); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { textFromInterface, "targetname", TKString.NEWString(messageNfy.char_name), "targetname2", BASE_MINE_DATA.GetMineName(grade, minedata_id) }); MINE_DATA mineDataFromGrade = BASE_MINE_DATA.GetMineDataFromGrade(grade); if (mineDataFromGrade != null) { this.m_iSolFace.SetTexture(mineDataFromGrade.Mine_UI_Icon); } } else if (messageNfy.m_nMsgType == 12) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("61"); string textFromInterface2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3333"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { textFromInterface2, "targetname", TKString.NEWString(messageNfy.char_name), "targetname2", NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(messageNfy.m_nItemUnique), "count", messageNfy.m_nItemNum }); this.m_iSolFace.SetTextureFromBundle("UI/Etc/goldegg"); } this.m_Label_contents.Text = text2; }