public void OnClickChangeChannel(IUIObject obj) { if (!this.ChangeChatMode) { string message = string.Empty; NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; long charSubData = kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_LIMIT_CHATTIME); if (charSubData > 0L) { return; } message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("190"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE); InputNumberDlg inputNumberDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_INPUTNUMBER) as InputNumberDlg; if (inputNumberDlg != null) { inputNumberDlg.DonotDepthChange(base.GetLocation().z - 16f); inputNumberDlg.SetScreenCenter(); inputNumberDlg.SetCallback(new Action <InputNumberDlg, object>(this.On_Input_ChangeChannel), null, new Action <InputNumberDlg, object>(this.On_Input_CancelChannel), null); inputNumberDlg.SetMinMax(1L, 300L); } this.ChangeChannelMode(true); } }
public bool IsHaveReward(eBUNNING_EVENT eBurnningEvent) { if (eBurnningEvent <= eBUNNING_EVENT.eBUNNING_EVENT_NONE || eBurnningEvent >= eBUNNING_EVENT.eBUNNING_EVENT_MAX) { return(false); } bool flag = false; SUBDATA_UNION sUBDATA_UNION = default(SUBDATA_UNION); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; sUBDATA_UNION.nSubData = kMyCharInfo.GetCharDetail(15); int num = -1; if (eBurnningEvent != eBUNNING_EVENT.eBUNNING_EVENT_BABELPARTY) { if (eBurnningEvent == eBUNNING_EVENT.eBUNNING_EVENT_COLOSSEUM) { int num2 = (int)sUBDATA_UNION.n8SubData_1; num = num2 % 2; flag = (num > 0); } } else { int num2 = (int)sUBDATA_UNION.n8SubData_0; num = num2 % 2; flag = (num > 0); } return(num >= 0 && flag); }
public override bool CheckGameGuideOnce() { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { return(false); } UserChallengeInfo userChallengeInfo = myCharInfo.GetUserChallengeInfo(); if (userChallengeInfo == null) { return(false); } Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(3130); if (userChallengeInfo2 != null) { if (0L < userChallengeInfo2.m_nValue) { return(false); } } return(0 < NkUserInventory.instance.Get_First_ItemCnt(50304)); }
private void Click_Mine(IUIObject Obj) { if (0L >= NrTSingleton <NewGuildManager> .Instance.GetGuildID() || !NrTSingleton <ContentsLimitManager> .Instance.IsMineApply((short)NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetLevel())) { string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("763"); Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } long charSubData = kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_MINE_TUTORIAL_STEP); if (charSubData == 1L) { MineTutorialStepDlg mineTutorialStepDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MINE_TUTORIAL_STEP_DLG) as MineTutorialStepDlg; if (mineTutorialStepDlg != null) { mineTutorialStepDlg.SetStep(1L); } } else { NrTSingleton <MineManager> .Instance.Send_GS_MINE_GUILD_CURRENTSTATUS_INFO_GET_REQ(1, 1, 0L); } }
public void ClickUseFullGold(IUIObject obj) { TsAudioManager.Container.RequestAudioClip("UI_SFX", "ETC", "ENERTGY_RECHARGE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } long maxWillMoney = this.GetMaxWillMoney(); if (maxWillMoney == 0L) { this.m_btFullGold.SetEnabled(false); return; } this.m_btFullGold.SetEnabled(true); if (maxWillMoney > kMyCharInfo.m_Money) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("89"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } SendPacket.GetInstance().SendObject(46); NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.WILLCHARGE_DLG); }
private void Click_BabelTower(IUIObject Obj) { this.HideTouch(false); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } int level = kMyCharInfo.GetLevel(); int value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BABELTOWER_LIMITLEVEL); if (level < value) { string empty = string.Empty; string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("129"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromNotify, "level", value.ToString() }); Main_UI_SystemMessage.ADDMessage(empty, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (!NrTSingleton <NkClientLogic> .Instance.ShowDownLoadUI(0, 0)) { return; } if (kMyCharInfo.m_kFriendInfo.GetFriendCount() > 0 && kMyCharInfo.m_kFriendInfo.GetFriendsBaBelDataCount() == 0) { GS_FRIENDS_BABELTOWER_CLEARINFO_REQ obj = new GS_FRIENDS_BABELTOWER_CLEARINFO_REQ(); SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_FRIENDS_BABELTOWER_CLEARINFO_REQ, obj); } int value2 = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BABEL_HARD_LEVEL); if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.BABELTOWERMAIN_DLG)) { if (level < value2) { DirectionDLG directionDLG = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_DIRECTION) as DirectionDLG; if (directionDLG != null) { directionDLG.ShowDirection(DirectionDLG.eDIRECTIONTYPE.eDIRECTION_BABEL, 1); } this.Close(); } else { NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.BABELTOWER_MODESELECT_DLG); } } else { NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.BABELTOWERMAIN_DLG); } }
public void SetTreasureChar(byte nStartPosindex, NkBattleChar pkChar) { if (nStartPosindex < 0 || nStartPosindex >= 3) { return; } this.m_pkTreasureChar[(int)nStartPosindex] = pkChar; this.m_fMaxHP[(int)nStartPosindex] = (float)this.m_pkTreasureChar[(int)nStartPosindex].CastedTarget.GetMaxHP(false); this.m_nCurHP[(int)nStartPosindex] = this.m_pkTreasureChar[(int)nStartPosindex].CastedTarget.GetSoldierInfo().GetHP(); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo != null && this.m_nPlunderGold == 0L) { this.m_nPlunderGold = kMyCharInfo.PlunderMoney; string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1435"), "charname", kMyCharInfo.PlunderCharName }); this.m_lbCharName.SetText(empty); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1469"), "count", kMyCharInfo.PlunderCharLevel.ToString() }); this.m_lbCharLevel.SetText(empty); } }
public bool IsMythStart() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return(false); } int level = kMyCharInfo.GetLevel(); int value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_MYTHRAID_LIMITLEVEL); if (level < value) { string empty = string.Empty; string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("129"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromNotify, "level", value.ToString() }); Main_UI_SystemMessage.ADDMessage(empty, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return(false); } return(true); }
public void SetListFriendRank() { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; long charSubData = kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_MATCHPOINT); UI_RANKINFO item = new UI_RANKINFO(charPersonInfo.GetCharName(), (byte)charPersonInfo.GetLevel(0L), charSubData); this.ListRankInfo.Add(item); this.ListRankInfo.Sort(new Comparison <UI_RANKINFO>(PlunderRankInfoDlg.CompareMatchPoint)); int num = 1; foreach (UI_RANKINFO current in this.ListRankInfo) { current.i32Rank = num; num++; } foreach (UI_RANKINFO current2 in this.ListRankInfo) { if (current2.Charname == charPersonInfo.GetCharName()) { this.TargetInfo = current2; this.i32NewRank = this.TargetInfo.i32Rank; break; } } }
public void SetListInfo(eCOLOSSEUMRANK_SHOWTYPE rank_showtype) { this.show_type = rank_showtype; if (rank_showtype == eCOLOSSEUMRANK_SHOWTYPE.eCOLOSSEUMRANK_SHOWTYPE_MYLEAGUERANK) { base.ShowLayer(1, 2); base.SetShowLayer(4, false); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } int colosseumOldRank = kMyCharInfo.ColosseumOldRank; if (colosseumOldRank <= 0) { base.SetShowLayer(3, false); } else { base.SetShowLayer(3, true); } } else if (rank_showtype == eCOLOSSEUMRANK_SHOWTYPE.eCOLOSSEUMRANK_SHOWTYPE_ROTALLEAGUERANK || rank_showtype == eCOLOSSEUMRANK_SHOWTYPE.eCOLOSSEUMRANK_SHOWTYPE_TOPSCORERANK) { base.ShowLayer(4); base.SetShowLayer(1, false); base.SetShowLayer(2, false); } }
public override void SetComponent() { this.m_BackImage = (base.GetControl("DrawTexture_ADImg01") as DrawTexture); this.m_TicketList = (base.GetControl("Listbox_TicketList") as NewListBox); this.m_TicketList.Reserve = false; this.m_btPrimiumMall = (base.GetControl("Button_premium") as Button); this.m_btPrimiumMall.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickPrimiumMall)); this.m_HelpButton = (base.GetControl("Help_Button") as Button); this.m_HelpButton.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHelp)); base.SetScreenCenter(); NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); ITEMMALL_POPUPSHOP atbToIDX = NrTSingleton <ItemMallPoPupShopManager> .Instance.GetAtbToIDX(ItemMallPoPupShopManager.ePoPupShop_Type.RecruitOpen); if (atbToIDX != null) { GS_ITEMSHOP_ITEMPOPUP_INFO_REQ gS_ITEMSHOP_ITEMPOPUP_INFO_REQ = new GS_ITEMSHOP_ITEMPOPUP_INFO_REQ(); gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i64PersonID = myCharInfo.m_PersonID; gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i64Idx = (long)atbToIDX.m_Idx; gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i32ATB = 3; SendPacket.GetInstance().SendObject(2536, gS_ITEMSHOP_ITEMPOPUP_INFO_REQ); } NrTSingleton <FiveRocksEventManager> .Instance.Placement("user_card"); NrTSingleton <FiveRocksEventManager> .Instance.Placement("solrecruitdlg_open"); NrTSingleton <NkClientLogic> .Instance.SetCanOpenTicket(true); }
public void GetColosseumBatchKind() { int num = 0; NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { return; } for (int i = 0; i < 3; i++) { long charSubData = myCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_COLOSSEUMBATCH1 + i); if (charSubData != 0L) { SUBDATA_UNION sUBDATA_UNION = default(SUBDATA_UNION); sUBDATA_UNION.nSubData = charSubData; int n32SubData_ = sUBDATA_UNION.n32SubData_0; int n32SubData_2 = sUBDATA_UNION.n32SubData_1; byte b = 0; byte b2 = 0; SoldierBatch.GetCalcBattlePos((long)n32SubData_, ref b, ref b2); if (b2 >= 0 && b2 < 9) { if (n32SubData_2 > 0 && myCharInfo.IsEnableBatchColosseumSoldier(n32SubData_2)) { this.m_arColosseumBatchCharKind[num] = n32SubData_2; num++; } } } } }
public override string GetConditionText(long i64ParamVal) { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { return(string.Empty); } string empty = string.Empty; if (NrTSingleton <ContentsLimitManager> .Instance.IsWillSpend()) { string textFromQuest_Code = NrTSingleton <NrTextMgr> .Instance.GetTextFromQuest_Code(this.m_szTextKey); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromQuest_Code, "count2", base.GetParamVal().ToString(), "count1", myCharInfo.m_nActivityPoint.ToString(), "count2", base.GetParamVal().ToString() }); } return(empty); }
public void SetChannelText() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; string text = string.Empty; string empty = string.Empty; text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("327"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { text, "count", kMyCharInfo.ChatChannel }); this._lChatChannel.Text = empty; this._nChangeChannel = 1; long charSubData = kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_LIMIT_CHATTIME); if (charSubData > 0L) { this._btChangeChannel.Visible = false; } else { this._btChangeChannel.Visible = true; } }
public override void Show() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } string text = string.Empty; string empty = string.Empty; text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2416"); EXPEDITION_CONSTANT_MANAGER instance = EXPEDITION_CONSTANT_MANAGER.GetInstance(); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { text, "count1", kMyCharInfo.GetCharDetail(10), "count2", instance.GetValue(eEXPEDITION_CONSTANT.eEXPEDITION_DAY_COUNT) }); this.m_lCurrentCount.SetText(empty); this.SetList(); if (!base.ShowHide) { base.Show(); } }
public void Update(GameGuideType type) { foreach (GameGuideInfo current in this.m_GameGuide) { if (current.m_eType == type) { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { break; } if (this.m_kCurrentGameGuideInfo == null || this.m_kCurrentGameGuideInfo.m_eType != current.m_eType) { if (current.GetMinLevel() <= myCharInfo.GetLevel() && current.GetMaxLevel() >= myCharInfo.GetLevel() && current.CheckGameGuide()) { bool flag = false; foreach (GameGuideInfo current2 in this.m_kReserveGuide) { if (current2.m_eType == current.m_eType) { flag = true; break; } } if (!flag) { this.m_kReserveGuide.Enqueue(current); } } } } } }
private void Set_AdventureButtons() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } bool flag = false; int level = kMyCharInfo.GetLevel(); int value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BABELTOWER_LIMITLEVEL); bool flag2 = Launcher.Instance.IsPatchLevelMax(); if (flag || level < value || !flag2) { this.Set_LockButtons(AdventureCollect_DLG.eADVENTURE_LAYER_TYPE.BABELTOWER_LOCK, flag, value, flag2); } value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_HUNT_LIMITLEVEL); flag = NrTSingleton <ContentsLimitManager> .Instance.IsBountyHunt(); if (flag || level < value || !flag2) { this.Set_LockButtons(AdventureCollect_DLG.eADVENTURE_LAYER_TYPE.HUNT_LOCK, flag, value, flag2); } value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_DAILYDUNGEON_LIMITLEVEL); flag = NrTSingleton <ContentsLimitManager> .Instance.IsDailyDungeonLimit(); if (flag || level < value || !flag2) { this.Set_LockButtons(AdventureCollect_DLG.eADVENTURE_LAYER_TYPE.DAILYDUNGEON_LOCK, flag, value, flag2); } }
private void SetPoint() { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { return; } string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1041"), "count", ANNUALIZED.Convert(myCharInfo.GetHeroPoint()) }); this.m_kHeroPoint.Text = empty; empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1041"), "count", ANNUALIZED.Convert(myCharInfo.GetEquipPoint()) }); this.m_kEquipPoint.Text = empty; }
public void MsgBoxOKEvent(object EventObject) { if (!NrTSingleton <ContentsLimitManager> .Instance.IsShopProduct(this.m_ItemMall.m_Idx) || !BaseNet_Game.GetInstance().IsSocketConnected() || !NrTSingleton <ItemMallItemManager> .Instance.BuyItem(this.m_ItemMall.m_Idx)) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("658")); return; } NrTSingleton <ItemMallItemManager> .Instance.SetTradeItem(this.m_ItemMall, ItemMallItemManager.eItemMall_SellType.FIVEROCKSEVENT); GS_ITEMMALL_CHECK_CAN_TRADE_REQ gS_ITEMMALL_CHECK_CAN_TRADE_REQ = new GS_ITEMMALL_CHECK_CAN_TRADE_REQ(); gS_ITEMMALL_CHECK_CAN_TRADE_REQ.MallIndex = this.m_ItemMall.m_Idx; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_ITEMMALL_CHECK_CAN_TRADE_REQ, gS_ITEMMALL_CHECK_CAN_TRADE_REQ); if (this.m_cbCheckBox.IsChecked()) { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); ITEMMALL_POPUPSHOP poPupShop_AfterItemBuyLimit = NrTSingleton <ItemMallPoPupShopManager> .Instance.GetPoPupShop_AfterItemBuyLimit(this.m_ItemMall.m_Idx); if (poPupShop_AfterItemBuyLimit != null) { GS_ITEMSHOP_ITEMPOPUP_DAYCOOLTIME_SET_REQ gS_ITEMSHOP_ITEMPOPUP_DAYCOOLTIME_SET_REQ = new GS_ITEMSHOP_ITEMPOPUP_DAYCOOLTIME_SET_REQ(); gS_ITEMSHOP_ITEMPOPUP_DAYCOOLTIME_SET_REQ.i64PersonID = myCharInfo.m_PersonID; gS_ITEMSHOP_ITEMPOPUP_DAYCOOLTIME_SET_REQ.i32Idx = poPupShop_AfterItemBuyLimit.m_Idx; gS_ITEMSHOP_ITEMPOPUP_DAYCOOLTIME_SET_REQ.bCheckBox = true; SendPacket.GetInstance().SendObject(2538, gS_ITEMSHOP_ITEMPOPUP_DAYCOOLTIME_SET_REQ); } } this.m_ItemMall = null; this.bcheck = true; this.Close(); }
public override bool CheckGameGuideOnce() { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { return(false); } if (this.m_nMinLevel > myCharInfo.GetLevel()) { return(false); } UserChallengeInfo userChallengeInfo = myCharInfo.GetUserChallengeInfo(); if (userChallengeInfo == null) { return(false); } Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(3050); if (userChallengeInfo2 == null) { return(false); } if (0L < userChallengeInfo2.m_nValue) { return(false); } NkReadySolList readySolList = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetReadySolList(); return(readySolList != null && 5 <= readySolList.GetCount() && 10000L <= myCharInfo.m_Money); }
private void BtnReset(IUIObject obj) { if (this.m_CurQuestGroup != null) { QUEST_CONST.E_QUEST_GROUP_STATE e_QUEST_GROUP_STATE = NrTSingleton <NkQuestManager> .Instance.QuestGroupClearCheck(this.m_CurQuestGroup.GetGroupUnique()); if (e_QUEST_GROUP_STATE != QUEST_CONST.E_QUEST_GROUP_STATE.E_QUEST_GROUP_STATE_NONE) { string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("103"); Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.CAUTION_MESSAGE); return; } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo != null) { } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("658"); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("63"); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromMessageBox, "Targetname1", this.m_CurQuestGroup.GetGroupTitle() }); msgBoxUI.SetMsg(new YesDelegate(this.On_Ok), this.m_CurQuestGroup, textFromInterface, empty, eMsgType.MB_OK_CANCEL, 2); } }
public override void Update() { if (!NrTSingleton <ContentsLimitManager> .Instance.IsWillSpend()) { return; } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } if (this.m_nCurrentActivity != kMyCharInfo.m_nActivityPoint || this.m_nMaxActivity != kMyCharInfo.m_nMaxActivityPoint) { this.m_nCurrentActivity = kMyCharInfo.m_nActivityPoint; this.m_nMaxActivity = kMyCharInfo.m_nMaxActivityPoint; this.SetActivityPointUI(); } if (this.m_fActivityUpdateTime < Time.realtimeSinceStartup) { MyCharInfoDlg myCharInfoDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MYCHARINFO_DLG) as MyCharInfoDlg; if (myCharInfoDlg == null) { return; } this.m_lbActivityTime.SetText(myCharInfoDlg.StrActivityTime); this.m_fActivityUpdateTime = Time.realtimeSinceStartup + 1f; this.SetActivityPointUI(); } }
public void Set_GuildButtons() { base.SetShowLayer(4, false); base.SetShowLayer(5, false); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } int level = kMyCharInfo.GetLevel(); int value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_MYTHRAID_LIMITLEVEL); bool flag = 0L >= NrTSingleton <NewGuildManager> .Instance.GetGuildID(); bool flag2 = NrTSingleton <ContentsLimitManager> .Instance.IsMineLimit(); bool bLock = flag || level < value || flag2; this.Set_LockButtons(GuildCollect_DLG.eGUILD_LAYER_TYPE.MINE_LOCK, bLock, flag2, flag, value); flag2 = !NrTSingleton <ContentsLimitManager> .Instance.IsGuildBoss(); bool bLock2 = flag || flag2; this.Set_LockButtons(GuildCollect_DLG.eGUILD_LAYER_TYPE.GUILDBOSS_LOCK, bLock2, flag2, flag, level); }
public void OnClickStart(IUIObject obj) { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } COMMON_CONSTANT_Manager instance = COMMON_CONSTANT_Manager.GetInstance(); if (instance == null) { return; } if (instance.GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_EXPLORATION_LV) > kMyCharInfo.GetLevel()) { return; } if (0L >= kMyCharInfo.m_nActivityPoint && NrTSingleton <ContentsLimitManager> .Instance.IsWillSpend()) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("385")); return; } this.SaveSolInfo(); NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.EXPLORATION_PLAY_DLG); this.Close(); }
public void ShowDownButton(bool flag) { if (Launcher.Instance.LocalPatchLevel == Launcher.Instance.PatchLevelMax) { this.btPatchDownload.Visible = false; this.lbPatchDownload.Visible = false; this.btShopMenu.Visible = true; this.lbShopMenu.Visible = true; } else { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo.GetLevel() < 7) { this.btPatchDownload.Visible = false; this.lbPatchDownload.Visible = false; this.btShopMenu.Visible = true; this.lbShopMenu.Visible = true; } else { this.btPatchDownload.Visible = true; this.lbPatchDownload.Visible = true; this.btShopMenu.Visible = false; this.lbShopMenu.Visible = false; this.ShopNotice.Visible = false; } } }
private void ShowClickQuestOpenDlg(string OpenUi, short unique) { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo != null) { ChallengeTable sequenceChallengeTable = NrTSingleton <ChallengeManager> .Instance.GetSequenceChallengeTable(); if (sequenceChallengeTable != null) { UserChallengeInfo userChallengeInfo = kMyCharInfo.GetUserChallengeInfo(); if (userChallengeInfo != null) { Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(sequenceChallengeTable.m_nUnique); if (userChallengeInfo2 != null && userChallengeInfo2.m_nValue >= (long)sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount) { NrTSingleton <ChallengeManager> .Instance.GetChallengeOpenReward(); return; } } } } NrTSingleton <ChallengeManager> .Instance.GetChallengeOpenUi(OpenUi, unique); }
private void ReCommendDlgGuiSet() { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2163"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromInterface, new object[] { textFromInterface, "count1", myCharInfo.Recommend_RecvCurrnetCount.ToString(), "count2", myCharInfo.Recommend_RecvMaxCount.ToString() }); this.m_Label_NoteRecommend1.SetText(textFromInterface); textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2164"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromInterface, new object[] { textFromInterface, "count1", myCharInfo.Recommend_SendCurrentCount.ToString(), "count2", myCharInfo.Recommend_SendMaxCount.ToString() }); this.m_Label_NoteRecommend2.SetText(textFromInterface); }
protected override void OnClickReincarnate(IUIObject obj) { if (obj == null) { return; } NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo != null) { long charSubData = myCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_LEGENDMAKETIME); long curTime = PublicMethod.GetCurTime(); if (curTime < charSubData) { Myth_Evolution_Time_DLG myth_Evolution_Time_DLG = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MYTH_EVOLUTION_TIME_DLG) as Myth_Evolution_Time_DLG; if (myth_Evolution_Time_DLG != null) { myth_Evolution_Time_DLG.InitSet(MYTH_TYPE.MYTHTYPE_LEGEND, this.m_CharKind_Legendinfo.i32Element_LegendCharkind, 0L); } return; } } string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1706"); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("164"); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; msgBoxUI.SetMsg(new YesDelegate(this.OnReincarnateOK), null, textFromInterface, textFromMessageBox, eMsgType.MB_OK_CANCEL, 2); NrTSingleton <EventConditionHandler> .Instance.MythEvolutionInfoMsgBox.OnTrigger(); this.HideTouch(false); }
public void Init_Item() { string empty = string.Empty; int num = 0; short num2 = 0; NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { return; } for (short num3 = 0; num3 < 28; num3 += 1) { NrTSingleton <NrAttendance_Manager> .Instance.Get_Attend_Item((eATTENDANCE_USERTYPE)this.m_nUserType, this.m_nGroup, num3 + 1, myCharInfo.ConsecutivelyattendanceRewardType, ref num, ref num2); ITEM iTEM = new ITEM(); iTEM.m_nItemUnique = num; iTEM.m_nItemNum = (int)num2; this.m_ItItemIcon[(int)num3].SetItemTexture(iTEM); this.m_ItItemIcon[(int)num3].DownText_Visible = false; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1078"), "count", num2 }); this.m_ItemToolTipUnique[(int)num3] = num; this.m_ItemToolTipCount[(int)num3] = (int)num2; this.m_ItItemIcon[(int)num3].Data = (int)num3; this.m_lbReward[(int)num3].SetText(empty); this.m_dtRewardClear[(int)num3].Visible = false; this.m_dtRewardItemBG[(int)num3].Visible = false; } }
public override string GetGameGuideText() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return(string.Empty); } short level = (short)kMyCharInfo.GetLevel(); int num = 0; FRIENDCOUNTLIMIT_DATA firneCountLimitInfo = BASE_FRIENDCOUNTLIMIT_DATA.GetFirneCountLimitInfo(level); if (firneCountLimitInfo != null) { num = firneCountLimitInfo.FriendLimitCount; } string textFromToolTip = NrTSingleton <NrTextMgr> .Instance.GetTextFromToolTip("2052"); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromToolTip, "count", num }); return(empty); }