private void SetReincarnateListBox(ref NewListItem item, int i, int i32CharKind, byte bCharRank, bool bElement) { string text = string.Empty; NkSoldierInfo battleSolDataCheck = this.GetBattleSolDataCheck(ref this.m_eElement_Msg[i], i32CharKind, bCharRank); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(i32CharKind); if (charKindInfo == null) { TsLog.LogOnlyEditor("!!!!!!!!!! SolGuild - Element CharKind " + i32CharKind + " Error"); return; } item.SetListItemData(8, false); item.SetListItemData(9, false); item.SetListItemData(10, false); item.SetListItemData(11, false); NkListSolInfo nkListSolInfo = new NkListSolInfo(); nkListSolInfo.SolCharKind = i32CharKind; nkListSolInfo.SolGrade = (int)(bCharRank - 1); item.SetListItemData(3, nkListSolInfo, null, null, null); item.SetListItemData(4, charKindInfo.GetName(), null, null, null); text = this.GetElementSolMsg(this.m_eElement_Msg[i]); item.SetListItemData(5, text, null, null, null); if (this.m_eElement_Msg[i] == eElement_MsgType.eElement_OK || this.m_eElement_Msg[i] == eElement_MsgType.eElement_SOLHEIGHT) { item.SetListItemData(0, true); item.SetListItemData(1, false); item.SetListItemData(7, battleSolDataCheck.GetListSolInfo(false), null, null, null); } else { item.SetListItemData(0, false); item.SetListItemData(1, true); if (battleSolDataCheck == null) { item.SetListItemData(7, false); return; } item.SetListItemData(7, battleSolDataCheck.GetListSolInfo(false), null, null, null); } if (bElement) { bool flag = false; for (int j = 0; j < 6; j++) { if (battleSolDataCheck.GetEquipItemInfo() != null) { ITEM item2 = battleSolDataCheck.GetEquipItemInfo().m_kItem[j].GetItem(); if (item2 == null) { TsLog.LogWarning("!!!!!!!!!!!!!! CharKind {0} : Item pos{1} == ITEM NULL ", new object[] { i32CharKind, j }); } else if (item2.m_nItemUnique != 0) { flag = true; } } } if (flag) { item.SetListItemData(5, false); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("627"); item.SetListItemData(8, true); item.SetListItemData(9, true); item.SetListItemData(9, text, battleSolDataCheck, new EZValueChangedDelegate(this.OnClickReleaseEquip), null); } else if (battleSolDataCheck.GetFriendPersonID() != 0L) { item.SetListItemData(5, false); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("74"); item.SetListItemData(8, true); item.SetListItemData(9, true); item.SetListItemData(9, text, battleSolDataCheck, new EZValueChangedDelegate(this.OnClickUnsetSolHelp), null); } } item.Data = battleSolDataCheck.GetSolID(); }
public override void SetComponent() { base.SetScreenCenter(); this.bt_Enter = (base.GetControl("BT_Start") as Button); Button expr_22 = this.bt_Enter; expr_22.Click = (EZValueChangedDelegate)Delegate.Combine(expr_22.Click, new EZValueChangedDelegate(this._clickEnter)); this.lb_BossDESC = (base.GetControl("LB_BossDESC") as Label); this.lb_BossName = (base.GetControl("LB_BossName") as Label); int kind = 3806; MYTHRAIDINFO_DATA mythRaidInfoData = NrTSingleton <NrBaseTableManager> .Instance.GetMythRaidInfoData(NrTSingleton <MythRaidManager> .Instance.GetMyInfo().nRaidSeason.ToString() + NrTSingleton <MythRaidManager> .Instance.GetMyInfo().nRaidType.ToString()); if (mythRaidInfoData == null) { Debug.LogError("MythRaid Info Load Fail"); } else { kind = mythRaidInfoData.nMainBossCharKind; NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(mythRaidInfoData.nMainBossCharKind); this.lb_BossDESC.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(mythRaidInfoData.i32TextExplain.ToString())); if (charKindInfo != null) { this.lb_BossName.SetText(charKindInfo.GetName()); } } this.dt_RaidBoss = (base.GetControl("DT_RaidBoss_Img") as DrawTexture); this.dt_RaidBoss.SetTexture(eCharImageType.LARGE, kind, -1, string.Empty); this.dt_RaidBG = (base.GetControl("DT_Raid_BG") as DrawTexture); this.dt_RaidBG.SetTextureFromBundle("UI/mythicraid/mythic_raid_bg"); this.dt_RaidBoss_BG = (base.GetControl("DT_RaidBoss_BG") as DrawTexture); this.dt_RaidBoss_BG.SetTextureFromBundle("UI/mythicraid/mythic_raid_monsterbox"); this.dt_RaidBoss_effect = (base.GetControl("DT_RaidBoss_effect") as DrawTexture); NrTSingleton <FormsManager> .Instance.RequestAttachUIEffect("ui/mythicraid/fx_myth_raid_lobby_mobile", this.dt_RaidBoss_effect, this.dt_RaidBoss_effect.GetSize()); this.bt_RewardInfo = (base.GetControl("BT_RewardInfo") as Button); Button expr_1D8 = this.bt_RewardInfo; expr_1D8.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1D8.Click, new EZValueChangedDelegate(this.OnClickRewardGet)); this.bt_RewardInfo.Visible = false; this.bt_PartySearch = (base.GetControl("BT_PartySearch") as Button); Button expr_221 = this.bt_PartySearch; expr_221.Click = (EZValueChangedDelegate)Delegate.Combine(expr_221.Click, new EZValueChangedDelegate(this.OnClickPartySearch)); this.bt_SearchCancel = (base.GetControl("BT_SearchCancel") as Button); Button expr_25E = this.bt_SearchCancel; expr_25E.Click = (EZValueChangedDelegate)Delegate.Combine(expr_25E.Click, new EZValueChangedDelegate(this.OnClickSearchCancel)); this.bt_SearchCancel.Visible = false; this.partyCancelPosition = this.bt_SearchCancel.transform.localPosition; this.dt_RewardAlarm = (base.GetControl("DT_RewardAlarm") as DrawTexture); this.dt_RewardAlarm.Visible = false; this.dt_PartySearch_Waiting = (base.GetControl("DT_PartySearch_Waiting") as DrawTexture); this.btn_Back = (base.GetControl("BTN_Back") as Button); this.btn_Back.Click = new EZValueChangedDelegate(this.OnClickBack); this.tb_Rank = (base.GetControl("ToolBar_Rank") as Toolbar); this.nlb_Rank = (base.GetControl("NLB_Rank") as NewListBox); this.tb_Rank.Control_Tab[0].ButtonClick = new EZValueChangedDelegate(this.OnClickSoloRank); this.tb_Rank.Control_Tab[0].SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3152")); this.tb_Rank.Control_Tab[1].ButtonClick = new EZValueChangedDelegate(this.OnClickPartyRank); this.tb_Rank.Control_Tab[1].SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3153")); this.tb_Rank.Control_Tab[2].ButtonClick = new EZValueChangedDelegate(this.OnClickMyInfo); this.tb_Rank.Control_Tab[2].SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3138")); this.enablePosition[0] = this.tb_Rank.Control_Tab[0].spriteText.transform.localPosition; this.enablePosition[1] = this.tb_Rank.Control_Tab[1].spriteText.transform.localPosition; this.enablePosition[2] = this.tb_Rank.Control_Tab[2].spriteText.transform.localPosition; this.disablePosition[0].x = this.enablePosition[0].x; this.disablePosition[0].y = this.enablePosition[0].y - 7f; this.disablePosition[0].z = this.enablePosition[0].z; this.disablePosition[1].x = this.enablePosition[1].x; this.disablePosition[1].y = this.enablePosition[1].y - 7f; this.disablePosition[1].z = this.enablePosition[1].z; this.disablePosition[2].x = this.enablePosition[2].x; this.disablePosition[2].y = this.enablePosition[2].y - 7f; this.disablePosition[2].z = this.enablePosition[2].z; this.lb_MyRank_Rank = (base.GetControl("LB_MyRank_Rank") as Label); this.lb_MyRank_Name = (base.GetControl("LB_MyRank_Name") as Label); this.lb_MyRank_Damage = (base.GetControl("LB_MyRank_Damage") as Label); this.TextAniSetting(this.lb_MyRank_Damage, -1f, 0.01f, 0.5f, true, true, true); this.bt_RankPage1 = (base.GetControl("BT_RankPage1") as Button); Button expr_636 = this.bt_RankPage1; expr_636.Click = (EZValueChangedDelegate)Delegate.Combine(expr_636.Click, new EZValueChangedDelegate(this.OnClickPagePrev)); this.bt_RankPage2 = (base.GetControl("BT_RankPage2") as Button); Button expr_673 = this.bt_RankPage2; expr_673.Click = (EZValueChangedDelegate)Delegate.Combine(expr_673.Click, new EZValueChangedDelegate(this.OnClickPageNext)); this.lb_RankPageInfo = (base.GetControl("LB_RankPageInfo") as Label); this.lb_SolRank = (base.GetControl("LB_SolRank") as Label); this.TextAniSetting(this.lb_SolRank, 1.2f, 0.01f, 0.4f, true, true, false); this.lb_PartyRank = (base.GetControl("LB_PartyRank") as Label); this.TextAniSetting(this.lb_PartyRank, 1.2f, 0.01f, 0.4f, true, true, false); this.lb_SolDamage = (base.GetControl("LB_SolDamage") as Label); this.TextAniSetting(this.lb_SolDamage, -1f, 0.01f, 0.5f, true, true, true); this.lb_PartyDamage = (base.GetControl("LB_PartyDamage") as Label); this.TextAniSetting(this.lb_PartyDamage, -1f, 0.01f, 0.5f, true, true, true); this.dt_SoloRank_BG = (base.GetControl("DT_SoloRank_BG") as DrawTexture); this.dt_SoloRank_BG.SetTextureFromBundle("UI/mythicraid/mythic_raid_dragonframe"); this.dt_PartyRank_BG = (base.GetControl("DT_PartyRank_BG") as DrawTexture); this.dt_PartyRank_BG.SetTextureFromBundle("UI/mythicraid/mythic_raid_dragonframe"); this.lb_RoundInfo = (base.GetControl("LB_RoundInfo") as Label); this.dt_RoundInfo_BG = (base.GetControl("DT_RoundInfo_BG") as DrawTexture); this.dt_RoundInfo_BG.SetTextureFromBundle("UI/mythicraid/mythic_raid_dragonframe"); this.nlb_ClearRewardinfo = (base.GetControl("NLB_ClearRewardinfo") as NewListBox); this.nlb_ClearRewardinfo.BackButtonAniEnable(false); base.ShowBlackBG(1f); if (null != base.BLACK_BG) { base.BLACK_BG.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); } }
public void SetDeadSol(long nSolID) { if (Battle.BATTLE.BattleRoomtype == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_COLOSSEUM) { return; } if ((Battle.BATTLE.BattleRoomtype == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_BABELTOWER || Battle.BATTLE.BattleRoomtype == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_BOUNTYHUNT) && Battle.BabelPartyCount != 1) { return; } if (Battle.BATTLE.BattleRoomtype == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_MYTHRAID || Battle.BATTLE.BattleRoomtype == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_NEWEXPLORATION) { return; } BATTLE_CONSTANT_Manager instance = BATTLE_CONSTANT_Manager.GetInstance(); if (instance == null) { return; } int num = (int)instance.GetValue(eBATTLE_CONSTANT.eBATTLE_CONSTANT_RESURRECTION_COUNT); if (this.nReviveCount >= num) { if (this.m_nlDeadSolList.Count > 0) { this.m_nlDeadSolList.Clear(); } return; } NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo == null) { return; } NkSoldierInfo soldierInfoFromSolID = charPersonInfo.GetSoldierInfoFromSolID(nSolID); if (soldierInfoFromSolID == null || !soldierInfoFromSolID.IsValid()) { return; } if (this.m_nlDeadSolList.Count >= 3) { this.m_nlDeadSolList.RemoveItem(0, true); } NewListItem newListItem = new NewListItem(this.m_nlDeadSolList.ColumnNum, true, string.Empty); newListItem.Data = soldierInfoFromSolID.GetSolID(); NkListSolInfo nkListSolInfo = new NkListSolInfo(); nkListSolInfo.SolCharKind = soldierInfoFromSolID.GetCharKind(); nkListSolInfo.SolGrade = (int)soldierInfoFromSolID.GetGrade(); nkListSolInfo.SolLevel = soldierInfoFromSolID.GetLevel(); nkListSolInfo.FightPower = soldierInfoFromSolID.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_FIGHTINGPOWER); nkListSolInfo.ShowLevel = false; nkListSolInfo.SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(soldierInfoFromSolID); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(soldierInfoFromSolID.GetCharKind()); if (charKindInfo != null) { short gradeMaxLevel = charKindInfo.GetGradeMaxLevel((short)soldierInfoFromSolID.GetGrade()); if (soldierInfoFromSolID.GetLevel() >= gradeMaxLevel) { nkListSolInfo.ShowCombat = true; nkListSolInfo.ShowLevel = false; } else { nkListSolInfo.ShowCombat = false; nkListSolInfo.ShowLevel = true; } } newListItem.SetListItemData(1, nkListSolInfo, soldierInfoFromSolID, new EZValueChangedDelegate(this.BtClickUpListBox), null); this.m_nlDeadSolList.Add(newListItem); this.m_nlDeadSolList.RepositionItems(); base.AllHideLayer(); base.ShowLayer(this.DEAD_SOLLIST_LAYER_2); }
public void ShowInfo() { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo == null) { return; } NkSoldierInfo leaderSoldierInfo = charPersonInfo.GetLeaderSoldierInfo(); if (leaderSoldierInfo == null) { return; } int num = (int)NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_REINCARNATION_COUNT); int num2 = num + 1; ReincarnationInfo reincarnation = NrTSingleton <NrBaseTableManager> .Instance.GetReincarnation(num.ToString()); if (reincarnation == null) { return; } ReincarnationInfo reincarnation2 = NrTSingleton <NrBaseTableManager> .Instance.GetReincarnation(num2.ToString()); if (reincarnation2 == null) { return; } UIBaseInfoLoader solGradeImg = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolGradeImg(leaderSoldierInfo.GetCharKind(), (int)leaderSoldierInfo.GetGrade()); if (solGradeImg != null) { this.m_dtCurRank.Visible = true; this.m_dtCurRank.SetTexture(solGradeImg); } else { this.m_dtCurRank.Visible = false; } this.m_dtCurPortrait.SetTexture(eCharImageType.LARGE, leaderSoldierInfo.GetCharKind(), (int)leaderSoldierInfo.GetGrade(), string.Empty); int num3 = leaderSoldierInfo.GetSeason() + 1; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1208"), "count", num3.ToString() }); this.m_lbCurSeason.SetText(this.m_strText); solGradeImg = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolGradeImg(leaderSoldierInfo.GetCharKind(), 0); if (solGradeImg != null) { this.m_dtAfterRank.Visible = true; this.m_dtAfterRank.SetTexture(solGradeImg); } else { this.m_dtAfterRank.Visible = false; } int reincarnationCharKind = reincarnation2.GetReincarnationCharKind(reincarnation, leaderSoldierInfo.GetCharKind()); this.m_dtAfterPortrait.SetTexture(eCharImageType.LARGE, reincarnationCharKind, 0, string.Empty); num3 = 2; NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(reincarnationCharKind); if (charKindInfo != null) { BASE_SOLGRADEINFO cHARKIND_SOLGRADEINFO = charKindInfo.GetCHARKIND_SOLGRADEINFO(0); if (cHARKIND_SOLGRADEINFO != null) { num3 = cHARKIND_SOLGRADEINFO.SolSeason + 1; } } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1208"), "count", num3.ToString() }); this.m_lbAfterSeason.SetText(this.m_strText); this.m_lNeedMoney = reincarnation2.lNeedMoney; this.m_lbNeedMoney.SetText(ANNUALIZED.Convert(reincarnation2.lNeedMoney)); this.m_lbMyMoney.SetText(ANNUALIZED.Convert(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money)); }
private void _LinkSolData() { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo == null) { return; } int num = 0; this.m_lbSolList.Clear(); foreach (GS_BATTLE_RESULT_SOLDIER current in this.m_SolInfoList) { NewListItem newListItem = new NewListItem(this.m_lbSolList.ColumnNum, true, string.Empty); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(current.CharKind); if (charKindInfo != null) { newListItem.SetListItemData(1, new NkListSolInfo { SolCharKind = current.CharKind, SolGrade = current.SolGrade, SolInjuryStatus = current.bInjury, SolLevel = current.i16Level, ShowLevel = true, SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(current.i32CostumeUnique) }, null, null, null); string text = string.Empty; text = charKindInfo.GetName(); string text2 = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("471"), "targetname", text, "count", current.i16Level }); newListItem.SetListItemData(2, text2, null, null, null); NkSoldierInfo soldierInfoFromSolID = charPersonInfo.GetSoldierInfoFromSolID(current.SolID); short num2 = 0; if (soldierInfoFromSolID != null) { num2 = charKindInfo.GetGradeMaxLevel((short)soldierInfoFromSolID.GetGrade()); float num3 = soldierInfoFromSolID.GetExpPercent(); string empty = string.Empty; if (num3 < 0f) { num3 = 0f; } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("672"), "Count", ((int)(num3 * 100f)).ToString() }); newListItem.SetListItemData(4, "Com_T_GauWaPr4", 400f * num3, null, null); newListItem.SetListItemData(5, empty, null, null, null); } if (num2 == current.i16Level) { newListItem.SetListItemData(6, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("286"), null, null, null); } else { string empty2 = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1802"), "exp", ANNUALIZED.Convert(current.i32AddExp) }); text2 += "\r\n"; text2 += empty2; newListItem.SetListItemData(6, empty2, null, null, null); } this.m_lbSolList.Add(newListItem); num++; } } this.m_lbSolList.RepositionItems(); }
private void InitLegendDataSet(int i32CharKind) { this.m_btn_Legend.SetEnabled(false); this.m_CharKind_Legendinfo = NrTSingleton <NrBaseTableManager> .Instance.GetLegendGuide_Col(i32CharKind); if (this.m_CharKind_Legendinfo == null) { return; } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_CharKind_Legendinfo.i32Element_LegendCharkind); if (charKindInfo == null) { return; } this.m_Label_character_name.SetText(charKindInfo.GetName()); byte b = this.m_CharKind_Legendinfo.ui8Element_LegendGrade - 1; short legendType = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendType(i32CharKind, (int)b); this.m_DrawTexture_character.SetTextureEffect(eCharImageType.LARGE, i32CharKind, (int)b, string.Empty); UIBaseInfoLoader solLargeGradeImg = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolLargeGradeImg(i32CharKind, (int)b); if (0 < legendType) { this.m_DrawTexture_rank.SetSize(solLargeGradeImg.UVs.width, solLargeGradeImg.UVs.height); } this.m_DrawTexture_rank.SetTexture(solLargeGradeImg); int weaponType = charKindInfo.GetWeaponType(); this.m_DT_WEAPON.SetTexture(string.Format("Win_I_Weapon{0}", weaponType.ToString())); int season = charKindInfo.GetSeason(b); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1208"), "count", season + 1 }); this.m_Label_SeasonNum.SetText(empty); SOL_GUIDE solGuild = NrTSingleton <NrTableSolGuideManager> .Instance.GetSolGuild(this.m_CharKind_Legendinfo.i32Element_LegendCharkind); BATTLESKILL_BASE battleSkillBase = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillBase(solGuild.m_i32SkillUnique); if (battleSkillBase != null) { UIBaseInfoLoader battleSkillIconTexture = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillIconTexture(battleSkillBase.m_nSkillUnique); this.m_DT_SKILLICON.SetTexture(battleSkillIconTexture); string empty2 = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1293"), "skillname", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(battleSkillBase.m_strTextKey) }); } else { this.m_DT_SKILLICON.SetTexture(string.Empty); } this.m_Label_Gold2.SetText(ANNUALIZED.Convert(this.m_CharKind_Legendinfo.i64NeedMoney)); this.m_Label_Essence2.SetText(ANNUALIZED.Convert(this.m_CharKind_Legendinfo.i32NeedEssence)); this.m_NewListBox_Reincarnate.Clear(); for (int i = 0; i < 5; i++) { this.m_eElement_Msg[i] = eElement_MsgType.eElement_NONE; if (i32CharKind != 0) { bool bLastElement; if (i == 4) { this.m_eElement_Msg[i] = eElement_MsgType.eElement_NONE; bLastElement = true; } else { this.m_eElement_Msg[i] = eElement_MsgType.eElement_OK; bLastElement = false; } NewListItem item = new NewListItem(this.m_NewListBox_Reincarnate.ColumnNum, true, string.Empty); this.SetLegendReincarnateListBox(ref item, i, this.m_CharKind_Legendinfo.i32Base_CharKind[i], this.m_CharKind_Legendinfo.ui8Base_LegendGrade[i], bLastElement); this.m_NewListBox_Reincarnate.Add(item); } } this.m_NewListBox_Reincarnate.RepositionItems(); }
public void MakeGuildWarListItem(byte iRaidUnique) { NewListItem newListItem = new NewListItem(this.m_nlbGuildWarList.ColumnNum, true); newListItem.Data = iRaidUnique; bool flag = false; GUILDWAR_APPLY_INFO guildWarApplyInfo = this.GetGuildWarApplyInfo(NrTSingleton <NewGuildManager> .Instance.GetGuildID(), iRaidUnique); if (guildWarApplyInfo != null) { switch (guildWarApplyInfo.ui8MilitaryStatus) { case 0: newListItem.SetListItemData(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1323"), iRaidUnique, new EZValueChangedDelegate(this.ClickGuildWarApply), null); newListItem.SetListItemData(3, false); newListItem.SetListItemData(4, false); break; case 1: if (guildWarApplyInfo.i64MilitaryActionTime > 0L) { newListItem.SetListItemData(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1615"), iRaidUnique, new EZValueChangedDelegate(this.ClickGuildWarApplyCancel), null); this.m_strText = this.GetTimeToString(guildWarApplyInfo.i64MilitaryActionTime); if (this.m_strText != string.Empty) { this.m_strTime = string.Format("{0} : {1}", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1525"), this.m_strText); newListItem.SetListItemData(3, this.m_strTime, null, null, null); } else { newListItem.SetListItemData(3, false); } newListItem.SetListItemData(4, false); } else { newListItem.SetListItemData(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1615"), iRaidUnique, new EZValueChangedDelegate(this.ClickGuildWarApplyCancel), null); newListItem.SetListItemData(3, false); newListItem.SetListItemData(4, false); } break; case 2: newListItem.SetListItemData(0, false); if (guildWarApplyInfo.i64MilitaryActionTime > 0L) { this.m_strText = this.GetTimeToString(guildWarApplyInfo.i64MilitaryActionTime); if (this.m_strText != string.Empty) { this.m_strTime = string.Format("{0} : {1}", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1526"), this.m_strText); newListItem.SetListItemData(4, this.m_strTime, null, null, null); } else { newListItem.SetListItemData(4, false); } newListItem.SetListItemData(3, false); } else { newListItem.SetListItemData(3, false); newListItem.SetListItemData(4, false); } break; } this.m_strText = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1615"); if (guildWarApplyInfo.i64MilitaryActionTime > 0L) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2549"), "count", (int)(iRaidUnique + 1) }); } } else { newListItem.SetListItemData(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1323"), iRaidUnique, new EZValueChangedDelegate(this.ClickGuildWarApply), null); newListItem.SetListItemData(3, false); newListItem.SetListItemData(4, false); } if (!flag) { } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2549"), "count", (int)(iRaidUnique + 1) }); newListItem.SetListItemData(1, this.m_strText, null, null, null); newListItem.SetListItemData(2, this.m_strText, null, null, null); newListItem.SetListItemData(5, string.Empty, iRaidUnique, new EZValueChangedDelegate(this.ClickMyMilitaryDetail), null); newListItem.SetListItemData(6, string.Empty, iRaidUnique, new EZValueChangedDelegate(this.ClickEnemyMilitaryDetail), null); int raidFaceCharKind = this.GetRaidFaceCharKind(NrTSingleton <NewGuildManager> .Instance.GetGuildID(), iRaidUnique); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(raidFaceCharKind); if (charKindInfo != null) { newListItem.SetListItemData(7, raidFaceCharKind, null, null, null); } else { newListItem.SetListItemData(7, true); } int raidFaceCharKind2 = this.GetRaidFaceCharKind(NrTSingleton <GuildWarManager> .Instance.GuildWarGuildID, iRaidUnique); charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(raidFaceCharKind2); if (charKindInfo != null) { newListItem.SetListItemData(8, raidFaceCharKind2, null, null, null); } else { newListItem.SetListItemData(8, true); } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1984"), "count1", this.GetRaidMilitaryCount(NrTSingleton <NewGuildManager> .Instance.GetGuildID(), iRaidUnique), "count2", 9 }); newListItem.SetListItemData(9, this.m_strText, null, null, null); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1984"), "count1", this.GetRaidMilitaryCount(NrTSingleton <GuildWarManager> .Instance.GuildWarGuildID, iRaidUnique), "count2", 9 }); newListItem.SetListItemData(10, this.m_strText, null, null, null); this.m_nlbGuildWarList.Add(newListItem); }
public void SetPlace(string strPlace, ref int i32CastleUnique, ref int i32SectionUnique, ref float fX, ref float fZ, ref int i32SrcCharKind) { if (strPlace.Equals("off")) { i32CastleUnique = -1; return; } char[] array = TKString.StringChar(strPlace); byte b = 0; byte b2 = 0; int charkind = 0; string text = string.Empty; bool flag = false; while ((int)b < strPlace.Length) { if (array[(int)b] == ' ') { b += 1; } else if (array[(int)b] == '_') { if (b2 == 0) { if (text == "pos") { flag = true; } else { int.TryParse(text, out i32CastleUnique); } text = string.Empty; b2 += 1; } else if (b2 == 1) { if (flag) { int.TryParse(text, out i32CastleUnique); } else { int.TryParse(text, out i32SectionUnique); } text = string.Empty; b2 += 1; } else if (b2 == 2) { if (flag) { float.TryParse(text, out fX); } text = string.Empty; b2 += 1; } b += 1; } else if (array[(int)b] == '/') { text += '_'; b += 1; } else { text += array[(int)b]; b += 1; } } if (flag) { float.TryParse(text, out fZ); } else { int.TryParse(text, out i32SrcCharKind); int.TryParse(text, out charkind); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(charkind); if (charKindInfo != null) { QUEST_AUTO_PATH_POS_CHARCODE autoPath = NrTSingleton <NkQuestManager> .Instance.GetAutoPath((int)((short)i32CastleUnique), 0, charKindInfo.GetCode()); if (autoPath != null) { fX = autoPath.fDesX; fZ = autoPath.fDesY; } } } }
public static List <NkSoldierInfo> GetSolList(eSOLDIER_BATCH_MODE eSoldierBatchMode) { List <NkSoldierInfo> list = new List <NkSoldierInfo>(); List <NkSoldierInfo> list2 = new List <NkSoldierInfo>(); List <NkSoldierInfo> list3 = new List <NkSoldierInfo>(); int num = 0; NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo == null) { return(new List <NkSoldierInfo>()); } NrSoldierList soldierList = charPersonInfo.GetSoldierList(); if (soldierList == null) { return(new List <NkSoldierInfo>()); } NkSoldierInfo[] kSolInfo = soldierList.m_kSolInfo; for (int i = 0; i < kSolInfo.Length; i++) { NkSoldierInfo nkSoldierInfo = kSolInfo[i]; if (eSoldierBatchMode == eSOLDIER_BATCH_MODE.MODE_MINE_MAKEUP || eSoldierBatchMode == eSOLDIER_BATCH_MODE.MODE_EXPEDITION_MAKEUP) { break; } if (!SoldierBatch_SolList.IsNotExcludeSol(nkSoldierInfo, eSoldierBatchMode)) { if (nkSoldierInfo.IsLeader()) { list.Add(nkSoldierInfo); } else { NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(nkSoldierInfo.GetCharKind()); if (charKindInfo != null && nkSoldierInfo.GetLevel() >= 50) { list2.Add(nkSoldierInfo); } else { list3.Add(nkSoldierInfo); } } } } NkReadySolList readySolList = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetReadySolList(); if (readySolList == null) { return(new List <NkSoldierInfo>()); } foreach (NkSoldierInfo current in readySolList.GetList().Values) { if (!SoldierBatch_SolList.IsNotExcludeSol(current, eSoldierBatchMode)) { if (current.IsLeader()) { list.Add(current); } else { NrCharKindInfo charKindInfo2 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(current.GetCharKind()); if (charKindInfo2 != null && current.GetLevel() >= 50) { list2.Add(current); } else { list3.Add(current); } } num++; } } list2.Sort(new Comparison <NkSoldierInfo>(SoldierBatch_SolList.ComparePower)); list3.Sort(new Comparison <NkSoldierInfo>(SoldierBatch_SolList.CompareLevel)); for (int j = 0; j < list2.Count; j++) { list.Add(list2[j]); } for (int k = 0; k < list3.Count; k++) { list.Add(list3[k]); } return(list); }
public void SetCharKindInfo(NrCharKindInfo pkCharKindInfo) { this.m_pkTargetKind = pkCharKindInfo; }
private void SetItem(byte type, QEUST_REWARD_ITEM kReward, ref Label kLabel1, ref Label kLabel2, ref DrawTexture texture) { switch (type) { case 0: { string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("676"); kLabel1.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("790"); kLabel2.Text = ANNUALIZED.Convert(kReward.i64RewardMoney) + textFromInterface; texture.SetTexture("Main_I_ExtraI01"); texture.nItemUniqueTooltip = 0; break; } case 1: kLabel1.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("791"); kLabel2.Text = ANNUALIZED.Convert(kReward.i64RewardExp); texture.SetTexture("Main_I_ExtraI02"); texture.nItemUniqueTooltip = 0; break; case 2: kLabel1.Text = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(kReward.nRewardItemUnique0); kLabel2.Text = "x " + kReward.nRewardItemNum0.ToString(); texture.BaseInfoLoderImage = NrTSingleton <ItemManager> .Instance.GetItemTexture(kReward.nRewardItemUnique0); texture.nItemUniqueTooltip = kReward.nRewardItemUnique0; break; case 3: { NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(kReward.i32RecruitGenCharKind); if (charKindInfo != null) { kLabel1.Text = charKindInfo.GetName(); texture.SetTexture(eCharImageType.SMALL, charKindInfo.GetCharKind(), -1, string.Empty); } kLabel2.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("488"); texture.nItemUniqueTooltip = 0; break; } case 4: { NrCharKindInfo charKindInfo2 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(kReward.i32UpgradeGenCharKind); if (charKindInfo2 != null) { kLabel1.Text = charKindInfo2.GetName(); texture.SetTexture(eCharImageType.SMALL, charKindInfo2.GetCharKind(), -1, string.Empty); } kLabel2.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("487"); texture.nItemUniqueTooltip = 0; break; } case 5: kLabel1.Text = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(kReward.nRecruitReplaceItemUnique); kLabel2.Text = "x " + kReward.nRecruitReplaceItemNum.ToString(); texture.BaseInfoLoderImage = NrTSingleton <ItemManager> .Instance.GetItemTexture(kReward.nRecruitReplaceItemNum); texture.nItemUniqueTooltip = kReward.nRecruitReplaceItemUnique; break; case 6: kLabel1.Text = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(kReward.nUpgradeReplaceItemUnique); kLabel2.Text = "x " + kReward.nUpgradeReplaceItemNum.ToString(); texture.BaseInfoLoderImage = NrTSingleton <ItemManager> .Instance.GetItemTexture(kReward.nUpgradeReplaceItemNum); texture.nItemUniqueTooltip = kReward.nUpgradeReplaceItemUnique; break; } kLabel1.Visible = true; kLabel2.Visible = true; texture.Visible = true; }
public void AddTicketSellInfo() { for (int i = 0; i < this.m_TicketSellInfoList.Count; i++) { TICKET_SELL_INFO tICKET_SELL_INFO = this.m_TicketSellInfoList[i]; NewListItem newListItem = new NewListItem(this.m_TicketList.ColumnNum, true, string.Empty); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(tICKET_SELL_INFO.i32CharKind); if (charKindInfo != null) { if (NrTSingleton <ContentsLimitManager> .Instance.IsTicketSell(tICKET_SELL_INFO.i32CharKind)) { NkSoldierInfo nkSoldierInfo = new NkSoldierInfo(); nkSoldierInfo.SetCharKind(tICKET_SELL_INFO.i32CharKind); byte b = tICKET_SELL_INFO.i8Grade; b -= 1; nkSoldierInfo.SetGrade(b); EVENT_HERODATA eventHeroCharCode = NrTSingleton <NrTableEvnetHeroManager> .Instance.GetEventHeroCharCode(tICKET_SELL_INFO.i32CharKind, tICKET_SELL_INFO.i8Grade); if (eventHeroCharCode != null) { newListItem.SetListItemData(0, "Win_I_EventSol", null, null, null); newListItem.SetListItemData(4, true); } else { UIBaseInfoLoader legendFrame = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendFrame(tICKET_SELL_INFO.i32CharKind, (int)tICKET_SELL_INFO.i8Grade); if (legendFrame != null) { newListItem.SetListItemData(0, legendFrame, null, null, null); } newListItem.SetListItemData(4, false); } string legendName = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendName(tICKET_SELL_INFO.i32CharKind, (int)tICKET_SELL_INFO.i8Grade, charKindInfo.GetName()); newListItem.SetListItemData(1, nkSoldierInfo.GetListSolInfo(false), null, null, null); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2211"), "rank", tICKET_SELL_INFO.i8Grade, "solname", legendName, "count", tICKET_SELL_INFO.i32HeartsNum }); newListItem.SetListItemData(2, empty, null, null, null); newListItem.SetListItemData(3, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("573"), i, new EZValueChangedDelegate(this.ClickTicketSellInfo), null); if (NkUserInventory.GetInstance().Get_First_ItemCnt(70000) < tICKET_SELL_INFO.i32HeartsNum) { newListItem.SetListItemEnable(3, false); } else { newListItem.SetListItemEnable(3, true); } newListItem.Data = eSolRecruitType.SOLRECRUIT_TICKET_SELL_INFO; newListItem.SetListItemData(5, string.Empty, tICKET_SELL_INFO.i32CharKind, new EZValueChangedDelegate(this.ClickTicketSellInfoDetail), null); this.m_TicketList.Add(newListItem); } } } }
public void GetComposeTranscendence(bool bCompose, int i32BaseKind, byte i8BaseRank, byte i8UpgradeRank, int i32SubKind, byte i8SubRank, int i32ItemNum, int i32CostumeUnique) { this.InitComposeData(); this.m_bComposeTranscendence = bCompose; this.m_i32FailItemNum = i32ItemNum; if (bCompose) { this.m_bSetrankText = false; } else { this.m_bSetrankText = true; } this.m_bSetrank = false; this.m_bSetface = false; this.m_bEffectUpdate = false; NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(i32BaseKind); if (charKindInfo == null) { return; } NrCharKindInfo charKindInfo2 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(i32SubKind); if (charKindInfo2 == null) { return; } NrCharKindInfo charKindInfo3 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(i32BaseKind); if (charKindInfo3 == null) { return; } this.m_strBaserankImageKey = this.GetLegendType(charKindInfo, (int)i8BaseRank) + ((int)(i8BaseRank + 1)).ToString(); this.m_strUpgraderankImageKey = this.GetLegendType(charKindInfo3, (int)i8UpgradeRank) + ((int)(i8UpgradeRank + 1)).ToString(); this.m_strSubrankImageKey = this.GetLegendType(charKindInfo2, (int)i8SubRank) + ((int)(i8SubRank + 1)).ToString(); if (charKindInfo.GetLegendType((int)i8BaseRank) == 2) { this.m_bLegendBaseType = true; } else { this.m_bLegendBaseType = false; } if (charKindInfo2.GetLegendType((int)i8SubRank) == 2) { this.m_bLegendSubType = true; } else { this.m_bLegendSubType = false; } string str = string.Empty; if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.m_strBaserankImageKey)) { str = string.Format("{0}", "UI/Soldier/" + this.m_strBaserankImageKey + NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem.SetItemType(ItemType.USER_ASSETB); wWWItem.SetCallback(new PostProcPerItem(this.SetBundleImage), this.m_strBaserankImageKey); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true); } if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.m_strUpgraderankImageKey)) { str = string.Format("{0}", "UI/Soldier/" + this.m_strUpgraderankImageKey + NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem2 = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem2.SetItemType(ItemType.USER_ASSETB); wWWItem2.SetCallback(new PostProcPerItem(this.SetBundleImage), this.m_strUpgraderankImageKey); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem2, DownGroup.RUNTIME, true); } if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.m_strSubrankImageKey)) { str = string.Format("{0}", "UI/Soldier/" + this.m_strSubrankImageKey + NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem3 = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem3.SetItemType(ItemType.USER_ASSETB); wWWItem3.SetCallback(new PostProcPerItem(this.SetBundleImage), this.m_strSubrankImageKey); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem3, DownGroup.RUNTIME, true); } if (!this.m_bSetrankText) { this.m_strUpgraderankTextImageKey = this.GetRankText((int)i8UpgradeRank); if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.m_strUpgraderankTextImageKey)) { str = string.Format("{0}", "UI/Soldier/" + this.m_strUpgraderankTextImageKey + NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem4 = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem4.SetItemType(ItemType.USER_ASSETB); wWWItem4.SetCallback(new PostProcPerItem(this.SetBundleImage), this.m_strUpgraderankTextImageKey); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem4, DownGroup.RUNTIME, true); } } string costumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(i32CostumeUnique); if (UIDataManager.IsUse256Texture()) { this.m_strBasefaceImageKey = charKindInfo.GetPortraitFile1((int)i8BaseRank, costumePortraitPath) + "_256"; } else { this.m_strBasefaceImageKey = charKindInfo.GetPortraitFile1((int)i8BaseRank, costumePortraitPath) + "_512"; } if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.m_strBasefaceImageKey)) { NrTSingleton <UIImageBundleManager> .Instance.RequestCharImage(this.m_strBasefaceImageKey, eCharImageType.LARGE, new PostProcPerItem(this.SetBundleImage)); } if (UIDataManager.IsUse256Texture()) { this.m_strUpgradefaceImageKey = charKindInfo3.GetPortraitFile1((int)i8UpgradeRank, string.Empty) + "_256"; } else { this.m_strUpgradefaceImageKey = charKindInfo3.GetPortraitFile1((int)i8UpgradeRank, string.Empty) + "_512"; } if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.m_strUpgradefaceImageKey)) { NrTSingleton <UIImageBundleManager> .Instance.RequestCharImage(this.m_strUpgradefaceImageKey, eCharImageType.LARGE, new PostProcPerItem(this.SetBundleImage)); } if (UIDataManager.IsUse256Texture()) { this.m_strSubfaceImageKey = charKindInfo2.GetPortraitFile1((int)i8SubRank, string.Empty) + "_256"; } else { this.m_strSubfaceImageKey = charKindInfo2.GetPortraitFile1((int)i8SubRank, string.Empty) + "_512"; } if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.m_strSubfaceImageKey)) { NrTSingleton <UIImageBundleManager> .Instance.RequestCharImage(this.m_strSubfaceImageKey, eCharImageType.LARGE, new PostProcPerItem(this.SetBundleImage)); } str = string.Format("{0}", "UI/Soldier/fx_legendcard_compose" + NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem5 = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem5.SetItemType(ItemType.USER_ASSETB); wWWItem5.SetCallback(new PostProcPerItem(this.SolComposeSuccess), null); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem5, DownGroup.RUNTIME, true); this.eBUNDLEDOWN = SolTranscendenceSuccess.eBUNDLEDOWNSTATE.eBUNDLE_DOWNING; }
public void _LinkSolDataInfiBattle() { int num = 0; this.m_lbSolList.Clear(); foreach (GS_BATTLE_RESULT_SOLDIER current in this.m_SolInfoList) { NewListItem newListItem = new NewListItem(this.m_lbSolList.ColumnNum, true, string.Empty); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(current.CharKind); if (charKindInfo != null) { NkListSolInfo nkListSolInfo = new NkListSolInfo(); nkListSolInfo.SolCharKind = current.CharKind; nkListSolInfo.SolGrade = current.SolGrade; nkListSolInfo.SolInjuryStatus = current.bInjury; nkListSolInfo.SolLevel = current.i16Level; nkListSolInfo.ShowLevel = true; if (NrTSingleton <NrCharCostumeTableManager> .Instance.IsCostumeUniqueEqualSolKind(current.i32CostumeUnique, current.CharKind)) { nkListSolInfo.SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(current.i32CostumeUnique); } EVENT_HERODATA eventHeroCharCode = NrTSingleton <NrTableEvnetHeroManager> .Instance.GetEventHeroCharCode(current.CharKind, (byte)current.SolGrade); Texture2D portraitLeaderSol = this.GetPortraitLeaderSol(current.CharKind); if (portraitLeaderSol != null) { newListItem.SetListItemData(1, portraitLeaderSol, null, null, null, null); } else { if (eventHeroCharCode != null) { newListItem.SetListItemData(0, "Win_I_EventSol", null, null, null); newListItem.EventMark = true; } else { UIBaseInfoLoader legendFrame = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendFrame(current.CharKind, current.SolGrade); if (legendFrame != null) { newListItem.SetListItemData(0, legendFrame, null, null, null); } } newListItem.SetListItemData(1, nkListSolInfo, null, null, null); } string text = string.Empty; if (NrTSingleton <NrCharKindInfoManager> .Instance.IsUserCharKind(current.CharKind)) { text = TKString.NEWString(this.m_InfiBattleInfo.strAttackName); } else { text = charKindInfo.GetName(); } string text2 = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("471"), "targetname", text, "count", current.i16Level }); short gradeMaxLevel = charKindInfo.GetGradeMaxLevel((short)((byte)current.SolGrade)); string str = string.Empty; if (gradeMaxLevel <= current.i16Level) { str = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("286"); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1802"), "exp", ANNUALIZED.Convert(current.i32AddExp) }); } text2 += "\r\n"; text2 += str; newListItem.SetListItemData(2, text2, null, null, null); this.m_lbSolList.Add(newListItem); this.m_lbSolList.RepositionItems(); num++; if (nkListSolInfo.SolInjuryStatus) { this.m_nInjurySolCount++; } } } }
public void MakeNPCInfo(AgitNPCData Data) { short agitLevel = NrTSingleton <NewGuildManager> .Instance.GetAgitLevel(); AgitInfoData agitData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitData(agitLevel.ToString()); if (agitData == null) { return; } NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(Data.strCharCode); if (charKindInfoFromCode == null) { return; } NkListSolInfo nkListSolInfo = new NkListSolInfo(); nkListSolInfo.SolCharKind = charKindInfoFromCode.GetCharKind(); nkListSolInfo.SolGrade = -1; nkListSolInfo.SolLevel = NrTSingleton <NewGuildManager> .Instance.GetAgitLevel(); NewListItem newListItem = new NewListItem(this.m_nlbNPCList.ColumnNum, true, string.Empty); newListItem.SetListItemData(0, ANNUALIZED.Convert(agitData.i32NPCCost), null, null, null); newListItem.SetListItemData(1, true); newListItem.SetListItemData(2, nkListSolInfo, null, null, null); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1435"), "charname", charKindInfoFromCode.GetName() }); newListItem.SetListItemData(3, this.m_strText, null, null, null); this.m_strText = string.Empty; int num = Data.i32LevelRate[(int)(agitLevel - 1)]; switch (Data.ui8NPCType) { case 2: this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2747"); num /= 100; break; case 3: this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2751"); num /= 100; break; case 4: this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2750"); num /= 100; break; case 5: this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2794"); break; } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { this.m_strInfo, "count", num }); newListItem.SetListItemData(4, this.m_strText, null, null, null); newListItem.Data = Data; this.m_nlbNPCList.Add(newListItem); }
private void SetSolDetailInfo() { if (this.pkSolinfo == null) { return; } this.SetCostumeButton(); this.pkSolinfo.UpdateSoldierStatInfo(); NrCharKindInfo charKindInfo = this.pkSolinfo.GetCharKindInfo(); if (charKindInfo == null) { return; } this.m_SolInterfaceTool.m_kSelectCharKindInfo = charKindInfo; this.m_SolInterfaceTool.SetHeroEventLabel(this.pkSolinfo.GetGrade() + 1); string costumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(this.m_selectedSolCostumeUnique); this.m_SolInterfaceTool.SetCharImg(this.pkSolinfo.GetGrade(), costumePortraitPath); this.m_SolInterfaceTool.m_Label_Rank2.Visible = false; if (!NrTSingleton <ContentsLimitManager> .Instance.IsReincarnation()) { if (charKindInfo.IsATB(1L)) { this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = false; } else { this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = true; } } else { this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = true; } SUBDATA_UNION sUBDATA_UNION = default(SUBDATA_UNION); sUBDATA_UNION.nSubData = this.pkSolinfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_AWAKENING_STRDEX); SUBDATA_UNION sUBDATA_UNION2 = default(SUBDATA_UNION); sUBDATA_UNION2.nSubData = this.pkSolinfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_AWAKENING_VITINT); int statSTR = this.pkSolinfo.GetStatSTR(); int statDEX = this.pkSolinfo.GetStatDEX(); int statVIT = this.pkSolinfo.GetStatVIT(); int statINT = this.pkSolinfo.GetStatINT(); this.ShowBaseSolStatAwakening(this.SolSTR, statSTR, sUBDATA_UNION.n32SubData_0); this.ShowBaseSolStatAwakening(this.SolDEX, statDEX, sUBDATA_UNION.n32SubData_1); this.ShowBaseSolStatAwakening(this.SolVIT, statVIT, sUBDATA_UNION2.n32SubData_0); this.ShowBaseSolStatAwakening(this.SolINT, statINT, sUBDATA_UNION2.n32SubData_1); string text = string.Empty; if (charKindInfo.GetCHARKIND_ATTACKINFO().ATTACKTYPE == this.pkSolinfo.GetAttackInfo().ATTACKTYPE) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(charKindInfo.GetCHARKIND_INFO().SoldierSpec1); } else { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(charKindInfo.GetCHARKIND_INFO().SoldierSpec2); } this.m_lbSoldierSpec.SetText(text); this.SolExplain.SetScrollLabel(charKindInfo.GetDesc()); int value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_TRADECOUNT_USE); this.TradeCount.Hide(true); if (value == 1) { this.TradeCount.Hide(true); this.TradeCountName.Hide(false); byte tradeRank = this.pkSolinfo.GetCharKindInfo().GetTradeRank((int)this.pkSolinfo.GetGrade()); if (tradeRank == 0 || this.pkSolinfo.GetGrade() < tradeRank - 1) { if (tradeRank == 0) { this.TradeCountName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1980")); } else if (!this.pkSolinfo.IsAwakening()) { string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1979"), "count", tradeRank }); this.TradeCountName.SetText(empty); } else { this.TradeCountName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2346")); } } else if (!this.pkSolinfo.IsAwakening()) { this.TradeCountName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1206")); long solSubData = this.pkSolinfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_TRADE_COUNT); this.TradeCount.SetText(solSubData.ToString()); this.TradeCount.Hide(false); } else { this.TradeCountName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2346")); } } else { this.TradeCountName.Hide(true); } this.IntroMovieButton.Visible = false; this.IntroMoveieText.Visible = false; this.m_btnSolPreview.Visible = false; if (charKindInfo.IsATB(1L)) { this.IntroMovieButton.Visible = true; this.IntroMoveieText.Visible = true; } else { this.m_btnSolPreview.Visible = true; } this.SetInitiativeValue(); if (this.pkSolinfo.IsAtbCommonFlag(8L)) { this.m_cOnlySkill.SetCheckState(1); } else { this.m_cOnlySkill.SetCheckState(0); } }
public void ClickNPCInvite(IUIObject obj) { UIListItemContainer selectItem = this.m_nlbNPCList.GetSelectItem(); if (selectItem == null) { return; } if (selectItem.Data == null) { return; } AgitNPCData agitNPCData = (AgitNPCData)selectItem.Data; if (agitNPCData == null) { return; } AgitInfoData agitData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitData(this.m_i16NPCLevel.ToString()); if (agitData == null) { return; } AgitInfoData agitData2 = NrTSingleton <NrBaseTableManager> .Instance.GetAgitData(NrTSingleton <NewGuildManager> .Instance.GetAgitLevel().ToString()); if (agitData2 == null) { return; } NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID); if (memberInfoFromPersonID == null) { return; } if (memberInfoFromPersonID.GetRank() < NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_OFFICER) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("769"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (NrTSingleton <NewGuildManager> .Instance.GetFund() < (long)agitData.i32NPCCost) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("754"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (NrTSingleton <NewGuildManager> .Instance.GetAgitNPCSubDataCount() >= (int)agitData2.i8NPCNum) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("770"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } AGIT_NPC_SUB_DATA agitNPCSubDataFromNPCType = NrTSingleton <NewGuildManager> .Instance.GetAgitNPCSubDataFromNPCType(agitNPCData.ui8NPCType); if (agitNPCSubDataFromNPCType != null) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("771"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(agitNPCData.strCharCode); if (charKindInfoFromCode == null) { return; } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("257"), "count", agitData.i32NPCCost, "charname", charKindInfoFromCode.GetName(), "level", this.m_i16NPCLevel }); msgBoxUI.SetMsg(new YesDelegate(this.MsgOKNPCInvite), agitNPCData, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("256"), this.m_strText, eMsgType.MB_OK_CANCEL, 2); }
public override bool CheckGameGuideOnce() { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { return(false); } NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo == null) { return(false); } bool flag = false; for (int i = 0; i < 6; i++) { NkSoldierInfo soldierInfo = charPersonInfo.GetSoldierInfo(i); if (soldierInfo != null) { if (soldierInfo.GetSolID() == 0L) { if (myCharInfo.IsAddBattleSoldier(i)) { flag = true; } } } } if (!flag) { return(false); } NkReadySolList readySolList = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetReadySolList(); if (readySolList == null) { return(false); } if (1 > readySolList.GetCount()) { return(false); } List <NkSoldierInfo> list = new List <NkSoldierInfo>(readySolList.GetList().Values); if (list == null) { return(false); } list.Sort(new Comparison <NkSoldierInfo>(this.CompareExp)); for (int j = 0; j < list.Count; j++) { NkSoldierInfo nkSoldierInfo = list[j]; if (nkSoldierInfo != null) { NrCharKindInfo charKindInfo = nkSoldierInfo.GetCharKindInfo(); if (charKindInfo != null) { if (charKindInfo.GetCHARKIND_CLASSINFO() != null) { if (nkSoldierInfo.GetSolPosType() != 2 && nkSoldierInfo.GetSolPosType() != 6) { int num = 0; for (int k = 0; k < 6; k++) { NkSoldierInfo soldierInfo2 = charPersonInfo.GetSoldierInfo(k); if (soldierInfo2 != null) { if (soldierInfo2.GetSolID() != 0L) { if (soldierInfo2.GetCharKind() == nkSoldierInfo.GetCharKind()) { num++; } } } } if (num < (int)nkSoldierInfo.GetJoinCount()) { this.m_kSolInfo = nkSoldierInfo; return(true); } } } } } } return(false); }
private void ShowNpcImage(Adventure adventure) { if (adventure == null) { return; } bool flag = false; for (int i = 0; i < this.m_MaxControlNum; i++) { NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(adventure.GetMonsterKind(i)); if (charKindInfoFromCode != null) { this.m_AdventureControl[i].m_MonsterImage.SetTexture(eCharImageType.SMALL, charKindInfoFromCode.GetCharKind(), -1, string.Empty); this.m_AdventureControl[i].m_ClearImage.Visible = false; if (NrTSingleton <NkQuestManager> .Instance.QuestGroupClearCheck(adventure.GetQuestGroupUnique(i)) == QUEST_CONST.E_QUEST_GROUP_STATE.E_QUEST_GROUP_STATE_NONE) { this.m_AdventureControl[i].m_ClearImage.Visible = true; this.m_AdventureControl[i].m_DisableMark.Visible = false; this.m_AdventureControl[i].m_DisableBG.Visible = false; this.m_AdventureControl[i].m_MonsterLevel.Text = NrTSingleton <UIDataManager> .Instance.GetString(NrTSingleton <CTextParser> .Instance.GetTextColor("1002"), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("152"), charKindInfoFromCode.GetCHARKIND_MONSTERINFO().MINLEVEL.ToString()); } else if (!flag) { CQuestGroup questGroupByGroupUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByGroupUnique(adventure.GetQuestGroupUnique(i)); if (questGroupByGroupUnique != null) { CQuest cQuest = questGroupByGroupUnique.FindCurrentQuest(); if (cQuest != null) { QUEST_CONST.eQUESTSTATE questState = NrTSingleton <NkQuestManager> .Instance.GetQuestState(cQuest.GetQuestUnique()); if (questState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE) { this.m_CurrentQuest = cQuest; this.m_AdventureControl[i].m_NpcButton.Visible = true; this.m_AdventureControl[i].m_NpcImage.Visible = true; this.m_AdventureControl[i].m_QuestMark.Visible = true; this.m_AdventureControl[i].m_NpcImage.SetTexture(eCharImageType.SMALL, cQuest.GetQuestCommon().i32QuestCharKind, -1, string.Empty); this.m_AdventureControl[i].m_MonsterLevel.Text = NrTSingleton <UIDataManager> .Instance.GetString(NrTSingleton <CTextParser> .Instance.GetTextColor("1002"), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("152"), charKindInfoFromCode.GetCHARKIND_MONSTERINFO().MINLEVEL.ToString()); } else if (questState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ONGOING || questState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_COMPLETE) { this.m_AdventureControl[i].m_DisableMark.Visible = false; this.m_AdventureControl[i].m_DisableBG.Visible = false; this.m_AdventureControl[i].m_MonsterLevel.Text = NrTSingleton <UIDataManager> .Instance.GetString(NrTSingleton <CTextParser> .Instance.GetTextColor("1002"), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("152"), charKindInfoFromCode.GetCHARKIND_MONSTERINFO().MINLEVEL.ToString()); } else { this.m_AdventureControl[i].m_MonsterLevel.Text = NrTSingleton <UIDataManager> .Instance.GetString(NrTSingleton <CTextParser> .Instance.GetTextColor("1102"), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("152"), charKindInfoFromCode.GetCHARKIND_MONSTERINFO().MINLEVEL.ToString()); } flag = true; } } } else { this.m_AdventureControl[i].m_MonsterLevel.Text = NrTSingleton <UIDataManager> .Instance.GetString(NrTSingleton <CTextParser> .Instance.GetTextColor("1102"), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("152"), charKindInfoFromCode.GetCHARKIND_MONSTERINFO().MINLEVEL.ToString()); } } } CQuestGroup questGroupByGroupUnique2 = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByGroupUnique(adventure.GetQuestGroupUnique(0)); if (questGroupByGroupUnique2 == null) { return; } CQuest firstQuest = questGroupByGroupUnique2.GetFirstQuest(); if (firstQuest == null) { return; } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } if ((int)firstQuest.GetQuestLevel(0) > kMyCharInfo.GetLevel()) { base.SetShowLayer(1, true); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("622"), "count", firstQuest.GetQuestLevel(0) }); this.m_BaloonText.Text = empty; this.m_NextButton.controlIsEnabled = false; } else { base.SetShowLayer(1, false); this.m_NextButton.controlIsEnabled = true; } }
public override void ExcuteGameGuide() { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { return; } NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo == null) { return; } int num = -1; for (int i = 0; i < 6; i++) { NkSoldierInfo soldierInfo = charPersonInfo.GetSoldierInfo(i); if (soldierInfo != null) { if (soldierInfo.GetSolID() == 0L) { if (myCharInfo.IsAddBattleSoldier(i)) { num = i; break; } } } } if (num == -1) { return; } NkReadySolList readySolList = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetReadySolList(); if (readySolList == null) { return; } if (1 > readySolList.GetCount()) { return; } List <NkSoldierInfo> list = new List <NkSoldierInfo>(readySolList.GetList().Values); if (list == null) { return; } list.Sort(new Comparison <NkSoldierInfo>(this.CompareExp)); for (int j = 0; j < list.Count; j++) { NkSoldierInfo nkSoldierInfo = list[j]; if (nkSoldierInfo != null) { NrCharKindInfo charKindInfo = nkSoldierInfo.GetCharKindInfo(); if (charKindInfo != null) { if (charKindInfo.GetCHARKIND_CLASSINFO() != null) { int num2 = 0; for (int k = 0; k < 6; k++) { NkSoldierInfo soldierInfo2 = charPersonInfo.GetSoldierInfo(k); if (soldierInfo2 != null) { if (soldierInfo2.GetSolID() != 0L) { if (soldierInfo2.GetCharKind() == nkSoldierInfo.GetCharKind()) { num2++; } } } } if (num2 < (int)nkSoldierInfo.GetJoinCount()) { this.SendSolChangeToServer(ref nkSoldierInfo, 1, 1); return; } } } } } }
public string GetQuestSummary() { string strDlgID = this.GetQuestUnique().ToString() + "a"; int num = 1; QUEST_DLG_INFO questDlgInfo = NrTSingleton <NkQuestManager> .Instance.GetQuestDlgInfo(strDlgID, num); string textColor = NrTSingleton <CTextParser> .Instance.GetTextColor("1107"); string textColor2 = NrTSingleton <CTextParser> .Instance.GetTextColor("1101"); string charName = NrTSingleton <NkCharManager> .Instance.GetChar(1).GetCharName(); NrTSingleton <UIDataManager> .Instance.InitStringBuilder(); NrTSingleton <UIDataManager> .Instance.AppendString("{&20}"); NrTSingleton <UIDataManager> .Instance.AppendString(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1637")); NrTSingleton <UIDataManager> .Instance.AppendString("{&15}"); NrTSingleton <UIDataManager> .Instance.AppendString("\n"); while (questDlgInfo != null) { string strLang_Idx = questDlgInfo.strLang_Idx; string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { strLang_Idx }); NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(questDlgInfo.QuestDlgCharCode); if (charKindInfoFromCode == null) { num++; questDlgInfo = NrTSingleton <NkQuestManager> .Instance.GetQuestDlgInfo(strDlgID, num); } else { if (questDlgInfo.bTalkUser) { NrTSingleton <UIDataManager> .Instance.AppendString(NrTSingleton <CTextParser> .Instance.GetTextColor("1104")); NrTSingleton <UIDataManager> .Instance.AppendString("["); NrTSingleton <UIDataManager> .Instance.AppendString(charName); NrTSingleton <UIDataManager> .Instance.AppendString("] "); NrTSingleton <UIDataManager> .Instance.AppendString(textColor2); NrTSingleton <UIDataManager> .Instance.AppendString(empty); } else { NrTSingleton <UIDataManager> .Instance.AppendString(textColor); NrTSingleton <UIDataManager> .Instance.AppendString("["); NrTSingleton <UIDataManager> .Instance.AppendString(charKindInfoFromCode.GetName()); NrTSingleton <UIDataManager> .Instance.AppendString("] "); NrTSingleton <UIDataManager> .Instance.AppendString(textColor2); NrTSingleton <UIDataManager> .Instance.AppendString(empty); } if (string.Empty != questDlgInfo.strUserAnswer) { NrTSingleton <UIDataManager> .Instance.AppendString("\n"); NrTSingleton <UIDataManager> .Instance.AppendString(NrTSingleton <CTextParser> .Instance.GetTextColor("1104")); NrTSingleton <UIDataManager> .Instance.AppendString("["); NrTSingleton <UIDataManager> .Instance.AppendString(charName); NrTSingleton <UIDataManager> .Instance.AppendString("] "); NrTSingleton <UIDataManager> .Instance.AppendString(textColor2); NrTSingleton <UIDataManager> .Instance.AppendString(questDlgInfo.strUserAnswer); } NrTSingleton <UIDataManager> .Instance.AppendString("\n"); num++; questDlgInfo = NrTSingleton <NkQuestManager> .Instance.GetQuestDlgInfo(strDlgID, num); } } string @string = NrTSingleton <UIDataManager> .Instance.GetString(); if (NrTSingleton <NkQuestManager> .Instance.GetQuestState(this.GetQuestUnique()) == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ONGOING) { return(@string); } if (NrTSingleton <NkQuestManager> .Instance.GetQuestState(this.GetQuestUnique()) == QUEST_CONST.eQUESTSTATE.QUESTSTATE_COMPLETE) { return(@string); } NrTSingleton <UIDataManager> .Instance.AppendString("\n\n"); NrTSingleton <UIDataManager> .Instance.AppendString("{&20}"); NrTSingleton <UIDataManager> .Instance.AppendString(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1638")); NrTSingleton <UIDataManager> .Instance.AppendString("{&15}"); NrTSingleton <UIDataManager> .Instance.AppendString("\n"); strDlgID = this.GetQuestUnique() + "p"; num = 1; questDlgInfo = NrTSingleton <NkQuestManager> .Instance.GetQuestDlgInfo(strDlgID, num); while (questDlgInfo != null) { string strLang_Idx2 = questDlgInfo.strLang_Idx; string empty2 = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { strLang_Idx2 }); NrCharKindInfo charKindInfoFromCode2 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(questDlgInfo.QuestDlgCharCode); if (charKindInfoFromCode2 == null) { num++; questDlgInfo = NrTSingleton <NkQuestManager> .Instance.GetQuestDlgInfo(strDlgID, num); } else { if (questDlgInfo.bTalkUser) { NrTSingleton <UIDataManager> .Instance.AppendString(NrTSingleton <CTextParser> .Instance.GetTextColor("1104")); NrTSingleton <UIDataManager> .Instance.AppendString("["); NrTSingleton <UIDataManager> .Instance.AppendString(charName); NrTSingleton <UIDataManager> .Instance.AppendString("] "); NrTSingleton <UIDataManager> .Instance.AppendString(textColor2); NrTSingleton <UIDataManager> .Instance.AppendString(empty2); } else { NrTSingleton <UIDataManager> .Instance.AppendString(textColor); NrTSingleton <UIDataManager> .Instance.AppendString("["); NrTSingleton <UIDataManager> .Instance.AppendString(charKindInfoFromCode2.GetName()); NrTSingleton <UIDataManager> .Instance.AppendString("] "); NrTSingleton <UIDataManager> .Instance.AppendString(textColor2); NrTSingleton <UIDataManager> .Instance.AppendString(empty2); } if (string.Empty != questDlgInfo.strUserAnswer) { NrTSingleton <UIDataManager> .Instance.AppendString("\n"); NrTSingleton <UIDataManager> .Instance.AppendString(NrTSingleton <CTextParser> .Instance.GetTextColor("1104")); NrTSingleton <UIDataManager> .Instance.AppendString("["); NrTSingleton <UIDataManager> .Instance.AppendString(charName); NrTSingleton <UIDataManager> .Instance.AppendString("] "); NrTSingleton <UIDataManager> .Instance.AppendString(textColor2); NrTSingleton <UIDataManager> .Instance.AppendString(questDlgInfo.strUserAnswer); } NrTSingleton <UIDataManager> .Instance.AppendString("\n"); num++; questDlgInfo = NrTSingleton <NkQuestManager> .Instance.GetQuestDlgInfo(strDlgID, num); } } return(NrTSingleton <UIDataManager> .Instance.GetString()); }
private void SetStageList() { this.m_fScrollPos = this.m_nlbStage.scrollPos; this.m_fScrollPos = ((this.m_fScrollPos < 0f) ? 0f : this.m_fScrollPos); this.m_nlbStage.Clear(); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3424"), "count", (int)this.m_bSelectedFloor }); this.m_lbTitle.SetText(empty); for (int i = 0; i < 2; i++) { string text = string.Empty; if (i == 0) { text = string.Format("Mobile/DLG/NewExploration/NLB_NewExploration_columndata{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath); } else { text = string.Format("Mobile/DLG/NewExploration/NLB_NewExploration2_columndata{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath); } this.m_nlbStage.SetColumnData(text); NewListItem newListItem = new NewListItem(this.m_nlbStage.ColumnNum, true, string.Empty); newListItem.m_szColumnData = text; newListItem.SetListItemData(0, string.Format("ui/NewExploration/NewExploration_{0}_{1}", (int)this.m_bSelectedFloor, i + 1), true, null, null); int num = 0; for (int j = 0; j < 5; j++) { int num2 = j * 9 + 1; int num3 = j + i * 5 + 1; newListItem.SetListItemData(num2, string.Empty, (sbyte)num3, new EZValueChangedDelegate(this.OnClickStageList), null); newListItem.SetListItemData(num2 + 3, string.Format("{0}-{1}", this.m_bSelectedFloor, num3), null, null, null); if (num3 != 10) { NEWEXPLORATION_DATA data = NrTSingleton <NewExplorationManager> .Instance.GetData(this.m_bSelectedFloor, (sbyte)num3); if (data != null) { NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(data.i32BossCharKind); if (charKindInfo == null) { break; } CostumeDrawTextureInfo costumeDrawTextureInfo = new CostumeDrawTextureInfo(); costumeDrawTextureInfo.imageType = eCharImageType.SMALL; costumeDrawTextureInfo.charKind = charKindInfo.GetCharKind(); newListItem.SetListItemData(num2 + 4, costumeDrawTextureInfo, null, null, null); } } else { num2--; } bool visibe = NrTSingleton <NewExplorationManager> .Instance.IsClear(this.m_bSelectedFloor, (sbyte)num3); newListItem.SetListItemData(num2 + 5, visibe); newListItem.SetListItemData(num2 + 6, visibe); bool flag = (int)this.m_bSelectedFloor == (int)NrTSingleton <NewExplorationManager> .Instance.GetFloor() && (int)((sbyte)num3) == (int)NrTSingleton <NewExplorationManager> .Instance.GetSubFloor(); newListItem.SetListItemData(num2 + 7, flag); newListItem.SetListItemData(num2 + 8, flag); if (flag) { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo != null && charPersonInfo.GetLeaderSoldierInfo().IsValid()) { NrCharKindInfo charKindInfo2 = charPersonInfo.GetLeaderSoldierInfo().GetCharKindInfo(); if (charKindInfo2 != null) { CostumeDrawTextureInfo costumeDrawTextureInfo2 = new CostumeDrawTextureInfo(); costumeDrawTextureInfo2.imageType = eCharImageType.SMALL; costumeDrawTextureInfo2.charKind = charKindInfo2.GetCharKind(); newListItem.SetListItemData(num2 + 8, costumeDrawTextureInfo2, null, null, null); } } } num = num2 + 8; } num++; int num4 = (i != 0) ? 3 : 2; for (int k = 0; k < num4; k++) { int num5 = (k + 1) * 2; if (i != 0) { num5 += 4; } bool flag2 = NrTSingleton <NewExplorationManager> .Instance.IsOpenTreasureBox(this.m_bSelectedFloor, (sbyte)num5); newListItem.SetListItemData(num, !flag2); newListItem.SetListItemData(num, string.Empty, (sbyte)num5, new EZValueChangedDelegate(this.OnClickTreasureList), null); newListItem.SetListItemData(num + 1, flag2); newListItem.SetListItemData(num + 1, string.Empty, (sbyte)num5, new EZValueChangedDelegate(this.OnClickTreasureList), null); newListItem.SetListItemData(num + 4, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3425"), null, null, null); newListItem.SetListItemData(num + 5, NrTSingleton <NewExplorationManager> .Instance.CanGetTreasure(this.m_bSelectedFloor, (sbyte)num5)); num += 6; } this.m_nlbStage.Add(newListItem); } this.m_nlbStage.RepositionItems(); this.m_nlbStage.ScrollPosition = this.m_fScrollPos; }
public void SetInfo() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } string text = string.Empty; string text2 = string.Empty; BABEL_GUILDBOSS babelGuildBossinfo = NrTSingleton <BabelTowerManager> .Instance.GetBabelGuildBossinfo(this.m_GuildBossFloor); if (babelGuildBossinfo == null) { return; } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(babelGuildBossinfo.m_nBossKind); this.m_laGuildBossName.Text = charKindInfo.GetName(); this.m_dtBossImg.SetTexture(eCharImageType.LARGE, charKindInfo.GetCharKind(), -1, string.Empty); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1808"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "count1", ANNUALIZED.Convert(this.m_i32CurBossHp), "count2", ANNUALIZED.Convert(babelGuildBossinfo.m_nBossMaxHP) }); this.m_laGuildBossHp.Text = text2; float num = (float)this.m_i32CurBossHp / (float)babelGuildBossinfo.m_nBossMaxHP; this.m_dtBossCurHP.SetSize(this.BOSSHP_BAR_WIDTH * num, this.m_dtBossCurHP.GetSize().y); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "itemname", NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(babelGuildBossinfo.m_nBaseReward_ItemUnique), "count", babelGuildBossinfo.m_nBaseReward_ItemNum }); this.m_lbRewardBaseItemNum.Text = text2; int num2 = (babelGuildBossinfo.m_nReward_BaseMoney * kMyCharInfo.GetLevel() >= babelGuildBossinfo.m_nReward_BaseMoney_Max) ? babelGuildBossinfo.m_nReward_BaseMoney_Max : (babelGuildBossinfo.m_nReward_BaseMoney * kMyCharInfo.GetLevel()); this.m_laBasicReward.Text = ANNUALIZED.Convert(num2); this.m_dtRewardBaseItem.SetTexture(NrTSingleton <ItemManager> .Instance.GetItemTexture(babelGuildBossinfo.m_nBaseReward_ItemUnique)); this.SortMemberInfo(); int num3 = 1; bool flag = false; bool flag2 = false; this.m_lbGuildMemberList.Clear(); for (int i = 0; i < this.m_listMemberInfo.Count; i++) { NEWGUILD_BOSS_PLAYER_INFO nEWGUILD_BOSS_PLAYER_INFO = this.m_listMemberInfo[i]; NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(nEWGUILD_BOSS_PLAYER_INFO.i64PersonID); if (memberInfoFromPersonID != null) { if (this.m_byRoomState != 3 && nEWGUILD_BOSS_PLAYER_INFO.i64PersonID == NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID) { flag2 = true; } bool flag3 = false; NewListItem newListItem = new NewListItem(this.m_lbGuildMemberList.ColumnNum, true, string.Empty); Texture2D portrait = memberInfoFromPersonID.GetPortrait(); if (this.m_byRoomState == 3) { if (nEWGUILD_BOSS_PLAYER_INFO.i64PersonID == NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID) { flag = true; } if (nEWGUILD_BOSS_PLAYER_INFO.i64PersonID == this.ClearPersonID) { this.m_itClearUserFace.Visible = true; if (portrait != null) { this.m_itClearUserFace.SetTexture(portrait); } else { NkListSolInfo nkListSolInfo = new NkListSolInfo(); nkListSolInfo.SolCharKind = memberInfoFromPersonID.GetFaceCharKind(); nkListSolInfo.SolLevel = memberInfoFromPersonID.GetLevel(); nkListSolInfo.SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(memberInfoFromPersonID.GetCostumeUnique()); nkListSolInfo.SolGrade = -1; this.m_itClearUserFace.SetSolImageTexure(eCharImageType.SMALL, nkListSolInfo, false); } this.m_lbClearUserName.SetText(memberInfoFromPersonID.GetCharName()); this.m_lbClearUserName.Visible = true; newListItem.SetListItemData(21, true); newListItem.SetListItemData(8, false); flag3 = true; } } if (!flag3) { newListItem.SetListItemData(12, false); } newListItem.SetListItemData(2, memberInfoFromPersonID.GetCharName(), null, null, null); text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1915"); newListItem.SetListItemData(3, text2, null, null, null); float num4 = (float)nEWGUILD_BOSS_PLAYER_INFO.i32Damage / (float)babelGuildBossinfo.m_nBossMaxHP; float num5 = num4 * 340f; newListItem.SetListItemData(5, string.Empty, num5, null, null); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1916"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "count1", ANNUALIZED.Convert(nEWGUILD_BOSS_PLAYER_INFO.i32Damage), "count2", (int)(num4 * 100f) }); newListItem.SetListItemData(6, text2, null, null, null); if (portrait != null) { newListItem.SetListItemData(7, portrait, null, null, null, null); } else { newListItem.SetListItemData(7, new NkListSolInfo { SolCharKind = memberInfoFromPersonID.GetFaceCharKind(), SolLevel = memberInfoFromPersonID.GetLevel(), SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(memberInfoFromPersonID.GetCostumeUnique()), SolGrade = -1 }, null, null, null); } if (!flag3) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1186"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "count", num3 }); newListItem.SetListItemData(9, text2, null, null, null); } else { newListItem.SetListItemData(9, false); } newListItem.SetListItemData(10, memberInfoFromPersonID.GetRankText(), null, null, null); this.m_lbGuildMemberList.Add(newListItem); num3++; } } this.m_lbGuildMemberList.RepositionItems(); if (flag2 && !flag) { this.m_btGuildBossStart.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3292")); } else { this.m_btGuildBossStart.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("633")); } if (!flag) { Button expr_596 = this.m_btGuildBossStart; expr_596.Click = (EZValueChangedDelegate)Delegate.Combine(expr_596.Click, new EZValueChangedDelegate(this.OnClickStart)); } else { this.m_btGuildBossStart.SetEnabled(false); } if (this.m_byRoomState == 3) { this.m_dtBossVictoyImg.Visible = true; this.m_dtClearUserBG.Visible = true; this.m_dtClearBG.Visible = true; } }
public bool IsUserCharKind(int iCharKind) { NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(iCharKind); return(this.IsUserCharKind(charKindInfo)); }
public void SetTimeShopItem(TIMESHOP_DATA _pTimeShopItem, int _i32CharKind) { if (_pTimeShopItem == null) { return; } this.m_DrawTexture_Won.SetTexture(NrTSingleton <NrTableTimeShopManager> .Instance.Get_MoneyTypeTextureName((eTIMESHOP_MONEYTYPE)_pTimeShopItem.m_nMoneyType)); this.m_Label_Price.Text = _pTimeShopItem.m_lPrice.ToString(); this.m_Button_Price.Data = _pTimeShopItem; this.m_Label_Price.Visible = true; this.m_Button_Price.Visible = true; this.m_DrawTexture_Won.Visible = true; if (NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.IsBuy_TimeShopItemByIDX(_pTimeShopItem.m_lIdx)) { this.m_Button_Price.SetEnabled(false); this.m_Label_Price.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3341"); this.m_DrawTexture_Won.Visible = false; } byte b = 6; int level = 50; string strSolKind = string.Empty; NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(_i32CharKind); if (charKindInfo != null) { strSolKind = charKindInfo.GetCode(); } ITEMINFO itemInfo = NrTSingleton <ItemManager> .Instance.GetItemInfo(_pTimeShopItem.m_nItemUnique); if (itemInfo != null) { b = (byte)(itemInfo.m_nParam[1] + 1); if (b <= 1) { b = NrTSingleton <ItemManager> .Instance.GetTopGrade_GroupSolTicket((long)_pTimeShopItem.m_nItemUnique, strSolKind); } if (b > 15) { b = 15; } } else { List <SOL_GUIDE> value = NrTSingleton <NrTableSolGuideManager> .Instance.GetValue(); foreach (SOL_GUIDE current in value) { if (current.m_i32CharKind == _i32CharKind) { b = (byte)current.m_iSolGrade; } } } if (charKindInfo != null) { level = (int)charKindInfo.GetGradeMaxLevel((short)(b - 1)); } this.SetSolKind(_i32CharKind, b, level); this.m_eParentUI = G_ID.TIMESHOP_DLG; }
public bool IsUserCharKind(NrCharKindInfo CharKindInfo) { return(CharKindInfo != null && CharKindInfo.IsATB(1L)); }
public void NpcClick(IUIObject obj) { UI_UIGuide uI_UIGuide = NrTSingleton <FormsManager> .Instance.GetForm((G_ID)this.m_nWinID) as UI_UIGuide; if (uI_UIGuide != null) { uI_UIGuide.CloseUI = true; } NrCharBase charByCharUnique = NrTSingleton <NkCharManager> .Instance.GetCharByCharUnique(this.m_i16CharUnique); if (charByCharUnique == null) { return; } NrCharKindInfo charKindInfo = charByCharUnique.GetCharKindInfo(); if (charKindInfo == null) { return; } if (!charByCharUnique.IsCharKindATB(16L)) { if (charByCharUnique.IsCharKindATB(8L)) { if (NrTSingleton <NkClientLogic> .Instance.IsNPCTalkState()) { return; } if (charByCharUnique.IsCharKindATB(562949953421312L)) { GS_TREASUREBOX_CLICK_REQ gS_TREASUREBOX_CLICK_REQ = new GS_TREASUREBOX_CLICK_REQ(); gS_TREASUREBOX_CLICK_REQ.i32CharUnique = (int)charByCharUnique.GetCharUnique(); SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_TREASUREBOX_CLICK_REQ, gS_TREASUREBOX_CLICK_REQ); return; } if (charByCharUnique.IsCharKindATB(1125899906842624L)) { if (!NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.IsBountyHunt()) { return; } GS_BABELTOWER_GOLOBBY_REQ gS_BABELTOWER_GOLOBBY_REQ = new GS_BABELTOWER_GOLOBBY_REQ(); gS_BABELTOWER_GOLOBBY_REQ.mode = 0; gS_BABELTOWER_GOLOBBY_REQ.babel_floor = 0; gS_BABELTOWER_GOLOBBY_REQ.babel_subfloor = 0; gS_BABELTOWER_GOLOBBY_REQ.nPersonID = 0L; gS_BABELTOWER_GOLOBBY_REQ.i16BountyHuntUnique = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.BountyHuntUnique; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BABELTOWER_GOLOBBY_REQ, gS_BABELTOWER_GOLOBBY_REQ); return; } else { NrTSingleton <NkQuestManager> .Instance.IncreaseQuestParamVal(30, (long)charKindInfo.GetCharKind(), 1L); NrTSingleton <NkQuestManager> .Instance.IncreaseQuestParamVal(8, (long)charKindInfo.GetCharKind(), 1L); NrTSingleton <NkQuestManager> .Instance.IncreaseQuestParamVal(99, (long)charKindInfo.GetCharKind(), 1L); NrTSingleton <NkQuestManager> .Instance.IncreaseQuestParamVal(48, (long)charKindInfo.GetCharKind(), 1L); if (charByCharUnique.GetCharUnique() >= 31300 && charByCharUnique.GetCharUnique() <= 31400) { string text = NrTSingleton <NkQuestManager> .Instance.IsCheckCodeANDParam(QUEST_CONST.eQUESTCODE.QUESTCODE_TAKECHAR, (long)charKindInfo.GetCharKind()); if (text != string.Empty) { TakeTalk_DLG takeTalk_DLG = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.TAKETALK_DLG) as TakeTalk_DLG; if (takeTalk_DLG != null) { takeTalk_DLG.SetNpc(charKindInfo.GetCharKind(), charByCharUnique.GetCharUnique(), text); takeTalk_DLG.Show(); } return; } } if (charByCharUnique.GetCharUnique() >= 31005 && charByCharUnique.GetCharUnique() <= 31200) { return; } NpcTalkUI_DLG npcTalkUI_DLG = (NpcTalkUI_DLG)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.NPCTALK_DLG); npcTalkUI_DLG.SetNpcID(charKindInfo.GetCharKind(), charByCharUnique.GetCharUnique()); npcTalkUI_DLG.Show(); } } else if (charByCharUnique.IsCharKindATB(4L)) { NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char == null) { return; } @char.MoveTo(charByCharUnique.GetCharObject().transform.position); NrTSingleton <NkClientLogic> .Instance.SetPickChar(charByCharUnique); if (charKindInfo.GetCHARKIND_MONSTERINFO() != null) { NrTSingleton <GameGuideManager> .Instance.MonsterLevel = (int)charKindInfo.GetCHARKIND_MONSTERINFO().MINLEVEL; } else { NrTSingleton <GameGuideManager> .Instance.MonsterLevel = 0; } this.Close(); return; } return; } if (charByCharUnique.IsCharKindATB(268435456L)) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("39"), SYSTEM_MESSAGE_TYPE.NORMAL_SYSTEM_MESSAGE); return; } NrCharBase char2 = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (char2 == null) { return; } char2.MoveTo(charByCharUnique.GetCharObject().transform.position); NrTSingleton <NkClientLogic> .Instance.SetPickChar(charByCharUnique); this.Close(); }
public int GetCharKindbyMythSkillUniqueMaxCount(int iCharKind, int i32Idx) { NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(iCharKind); return(charKindInfo.GetMythBattleSkillUniqueMaxCount()); }
public void SetEpisode(BountyInfoData Data) { if (Data == null) { return; } this.m_strText = string.Format("UI/Bounty/{0}", Data.strMonBG); this.m_dtBG.SetTextureFromBundle(this.m_strText); this.m_iBountyHuntUnique = Data.i16Unique; if (this.m_iBountyHuntUnique == NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.BountyHuntUnique) { this.m_btAccept.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2382")); } else { this.m_btAccept.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2327")); } byte bountyHuntClearRank = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetBountyHuntClearRank(Data.i16Unique); if (0 < bountyHuntClearRank) { this.m_dtClearRank.Visible = true; this.m_dtClearRank.SetTexture(NrTSingleton <BountyHuntManager> .Instance.GetBountyRankImgText(bountyHuntClearRank)); this.m_dtClearRankBG.Visible = true; } else { this.m_dtClearRank.Visible = false; this.m_dtClearRankBG.Visible = false; } this.m_dtMonFaceBG.SetTexture(Data.strMonBG); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(Data.i32NPCCharKind); if (charKindInfo != null) { this.m_lbMonsterName.SetText(charKindInfo.GetName()); } this.m_dtMonFace.SetTexture(eCharImageType.LARGE, Data.i32NPCCharKind, 0, string.Empty); if (NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.IsBountyHuntClearUnique(Data.i16Unique)) { this.m_btAccept.SetEnabled(false); this.m_lbReward.Visible = false; this.m_lbReward2.Visible = false; this.m_lbClear.Visible = true; } else { this.m_btAccept.SetEnabled(true); this.m_lbReward.Visible = true; this.m_lbReward2.Visible = true; this.m_lbClear.Visible = false; int num = Data.i32FirstRewardUnique; int num2 = Data.i32FirstRewardNum; ITEM iTEM = new ITEM(); iTEM.m_nItemUnique = num; iTEM.m_nItemNum = num2; this.m_itRewardItem.SetItemTexture(iTEM); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697"), "itemname", NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(num), "count", num2 }); this.m_lbReward.SetText(this.m_strText); num = Data.i32RepeatRewardUnique; num2 = Data.i32RepeatRewardNum; if (num == 0) { this.m_itRewardItem2.Visible = false; this.m_lbReward2.Visible = false; } else { ITEM iTEM2 = new ITEM(); iTEM2.m_nItemUnique = num; iTEM2.m_nItemNum = num2; this.m_itRewardItem2.SetItemTexture(iTEM2); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697"), "itemname", NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(num), "count", num2 }); this.m_lbReward2.SetText(this.m_strText); } } }
public void SetElementGui() { this.m_Button_Reincarnate.SetEnabled(false); this.m_NewListBox_Reincarnate.Clear(); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_SelectSlotData.i32KindInfo); if (charKindInfo == null) { TsLog.LogOnlyEditor("!!!! SOL CHARKIND ERROR {0}" + this.m_SelectSlotData.i32KindInfo + " !!"); return; } if (this.m_SolInterfaceTool == null) { TsLog.LogOnlyEditor("!!!! SOL CHARKIND ERROR {0}" + this.m_SelectSlotData.i32KindInfo + " !!"); return; } this.m_SolInterfaceTool.m_kSelectCharKindInfo = charKindInfo; if (this.m_MaterialSol == null) { TsLog.LogOnlyEditor("!!!! m_MaterialSol ERROR {0}" + this.m_SelectSlotData.i32KindInfo + " !!"); return; } if (this.m_MaterialSol.i32BaseCharKind != this.m_SelectSlotData.i32KindInfo) { this.m_MaterialSol.Init(); } byte b = 0; if (this.m_MaterialSol.i32BaseCharKind == this.m_SelectSlotData.i32KindInfo) { b = this.m_MaterialSol.i8BaseGrade; } if (b < 0) { b = 0; } this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = true; short legendType = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendType(this.m_SelectSlotData.i32KindInfo, (int)(b - 1)); UIBaseInfoLoader solLargeGradeImg = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolLargeGradeImg(this.m_SelectSlotData.i32KindInfo, (int)(b - 1)); if (0 < legendType) { this.m_SolInterfaceTool.m_DrawTexture_rank.SetSize(solLargeGradeImg.UVs.width, solLargeGradeImg.UVs.height); } this.m_SolInterfaceTool.m_DrawTexture_rank.SetTexture(solLargeGradeImg); if (this.m_SelectSlotData.i32KindInfo == 0) { this.m_Toolbar.Control_Tab[2].Visible = false; this.m_Toolbar.Control_Tab[1].Visible = false; return; } this.m_SolInterfaceTool.SetSeason(b); this.m_SolInterfaceTool.SetHeroEventLabel(b); int num = 0; byte bCharRank = 0; for (int i = 0; i < 5; i++) { if (this.m_MaterialSol.i32BaseCharKind == this.m_SelectSlotData.i32KindInfo) { this.m_MaterialSol.GetCharData((byte)i, ref num, ref bCharRank); } this.m_eElement_Msg[i] = eElement_MsgType.eElement_NONE; if (num != 0) { NewListItem item = new NewListItem(this.m_NewListBox_Reincarnate.ColumnNum, true, string.Empty); this.m_eElement_Msg[i] = eElement_MsgType.eElement_NOTSOL; this.SetReincarnateListBox(ref item, i, num, bCharRank, false); this.m_NewListBox_Reincarnate.Add(item); } } this.m_NewListBox_Reincarnate.RepositionItems(); bool flag = this.SetButtonReincarnate(); this.m_Button_Reincarnate.SetEnabled(flag); if (flag) { num = 0; bCharRank = 0; this.m_NewListBox_Reincarnate.Clear(); for (int j = 0; j < 5; j++) { if (this.m_MaterialSol.i32BaseCharKind == this.m_SelectSlotData.i32KindInfo) { this.m_MaterialSol.GetCharData((byte)j, ref num, ref bCharRank); } this.m_eElement_Msg[j] = eElement_MsgType.eElement_NONE; if (num != 0) { NewListItem item2 = new NewListItem(this.m_NewListBox_Reincarnate.ColumnNum, true, string.Empty); this.m_eElement_Msg[j] = eElement_MsgType.eElement_NOTSOL; this.SetReincarnateListBox(ref item2, j, num, bCharRank, true); this.m_NewListBox_Reincarnate.Add(item2); } } this.m_NewListBox_Reincarnate.RepositionItems(); } long num2 = 0L; if (this.m_MaterialSol.i32BaseCharKind == this.m_SelectSlotData.i32KindInfo) { num2 = this.m_MaterialSol.i64Money; } this.m_Label_Gold.SetText(ANNUALIZED.Convert(num2)); }