public void UpdateDamageInfo(long addDamageData) { if (addDamageData > 0L) { string empty = string.Empty; this.m_TotalMythRaidDamage = addDamageData; string text = ANNUALIZED.Convert(this.m_TotalMythRaidDamage); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3133"), "damage", text }); this.TextUpdateAndPlayAni(this.m_lbDamageNum, empty); if (addDamageData >= this.upperBestDamage) { NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char != null) { this.m_lbUpperPlayer.SetText(@char.GetCharName()); } this.TextUpdateAndPlayAni(this.m_lbUpperDamage, addDamageData.ToString()); } } }
public void SetTenderInfo(AUCTION_REGISTER_INFO RegisterInfo) { this.m_lAuctionID = RegisterInfo.i64AuctionID; this.m_lPersonID = RegisterInfo.i64PersonID; this.m_lCurCostMoney = RegisterInfo.i64CostMoney; this.m_lCurDirectCostMoney = RegisterInfo.i64DirectCostMoney; this.m_iCurCostHearts = RegisterInfo.i32CostHearts; this.m_iCurDirectCostHearts = RegisterInfo.i32DirectCostHearts; if (0L < RegisterInfo.i64CostMoney) { this.m_lCostMoney = RegisterInfo.i64CostMoney; this.m_lCost = RegisterInfo.i64CostMoney; this.m_lbCost.SetText(ANNUALIZED.Convert(RegisterInfo.i64CostMoney)); this.m_lTenderCost = this.GetTenderCostMin(RegisterInfo.i64CostMoney); this.m_lbMyCost.SetText(ANNUALIZED.Convert(this.m_lTenderCost)); this.m_dtCostIcon1.SetTexture("Com_I_MoneyIconM"); this.m_dtCostIcon2.SetTexture("Com_I_MoneyIconM"); this.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD; } else if (0 < RegisterInfo.i32CostHearts) { this.m_iCostHearts = RegisterInfo.i32CostHearts; this.m_lCost = (long)RegisterInfo.i32CostHearts; this.m_lbCost.SetText(ANNUALIZED.Convert(RegisterInfo.i32CostHearts)); this.m_lTenderCost = this.GetTenderCostMin((long)RegisterInfo.i32CostHearts); this.m_lbMyCost.SetText(ANNUALIZED.Convert(this.m_lTenderCost)); this.m_dtCostIcon1.SetTexture("Win_I_Hearts"); this.m_dtCostIcon2.SetTexture("Win_I_Hearts"); this.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS; } }
public void SetLegend() { this.e_MythType = MYTH_TYPE.MYTHTYPE_LEGEND; base.SetShowLayer(0, true); base.SetShowLayer(1, true); base.SetShowLayer(2, false); base.SetShowLayer(3, false); this.m_ToolBar.SetSelectTabIndex(0); this.m_Label_Gold.SetText(ANNUALIZED.Convert(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money)); COMMON_CONSTANT_Manager instance = COMMON_CONSTANT_Manager.GetInstance(); if (instance != null) { int value = instance.GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_ESSENCE_ITEMUNIQUE); ITEM item = NkUserInventory.GetInstance().GetItem(value); if (item != null) { this.m_Label_Essence.SetText(ANNUALIZED.Convert(item.m_nItemNum)); } else { this.m_Label_Essence.SetText("0"); } } this.InitMythDataSet(); this.SetDropDownList_Season(); this.SetLegendDataSort(0); this.SetLegendSolShow(0); }
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 SetEvolution() { this.e_MythType = MYTH_TYPE.MYTHTYPE_EVOLUTION; base.SetShowLayer(0, true); base.SetShowLayer(1, false); base.SetShowLayer(2, true); base.SetShowLayer(3, false); this.m_ToolBar.SetSelectTabIndex(1); this.m_DropDownList_Season.SetVisible(false); this.m_DT_BaseSolimg.SetTexture(string.Empty); this.m_DT_ResultSolimg.SetTexture(string.Empty); this.m_DT_BaseSolRank.Visible = false; this.m_DT_ResultSolRank.Visible = false; this.m_DT_MythSkillIcon1_2.SetTexture(string.Empty); this.m_DT_MythSkillIcon2_2.SetTexture(string.Empty); this.m_Label_MythEvolution_DragonHeart_Num2.SetText(string.Empty); this.m_Label_MythEvolution_Essence_Num2.SetText(string.Empty); this.m_Label_MythEvolution_Essence_Num.SetText(ANNUALIZED.Convert(NkUserInventory.GetInstance().Get_First_ItemCnt(50313))); this.m_Label_MythEvolution_DragonHeart_Num.SetText(ANNUALIZED.Convert(NkUserInventory.GetInstance().Get_First_ItemCnt(50316))); this.m_Label_MythEvolution_Descent_Num.SetText(ANNUALIZED.Convert(NkUserInventory.GetInstance().Get_First_ItemCnt(50317))); this.m_Label_BaseSeason.SetText(string.Empty); this.m_Label_ResultSeason.SetText(string.Empty); this.m_LB_BaseSolName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2031")); this.m_LB_MythSkillname1.SetText(string.Empty); this.m_LB_MythSkillLevel1.SetText(string.Empty); this.m_LB_MythSkillname2.SetText(string.Empty); this.m_LB_MythSkillLevel2.SetText(string.Empty); this.m_i64BaseSolID = 0L; this.SetEvolutionSkillImage(false); }
public string GetAllElixirNeedMoney() { string empty = string.Empty; long willChargeGold = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetWillChargeGold(); return(ANNUALIZED.Convert(willChargeGold)); }
private void AdjustInputNum() { if (this.m_iInputNum > this.m_iMaxValue) { this.m_iInputNum = this.m_iMaxValue; } this.m_boxNumeric.Text = ANNUALIZED.Convert(this.m_iInputNum); }
public void OnInputDirectCostHearts(InputNumberDlg a_cForm, object a_oObject) { int num = (int)a_cForm.GetNum(); this.m_SearchOption.m_iCostDirectHearts = num; this.m_lbDirectCost.SetText(ANNUALIZED.Convert(num)); NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.DLG_INPUTNUMBER); }
public void OnInputCostMoney(InputNumberDlg a_cForm, object a_oObject) { long num = a_cForm.GetNum(); this.m_SearchOption.m_lCostMoney = num; this.m_lbCost.SetText(ANNUALIZED.Convert(num)); NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.DLG_INPUTNUMBER); }
public override void SetComponent() { this.m_LbTitle = (base.GetControl("Label_title") as Label); this.m_LbNote = (base.GetControl("Label_Note") as Label); this.m_btnOK = (base.GetControl("Button_ok") as Button); this.m_btnCancel = (base.GetControl("Button_cancel") as Button); this.m_LbCheckBox1 = (base.GetControl("Label_1") as Label); this.m_LbCheckBox2 = (base.GetControl("Label_2") as Label); this.m_btnSpeedUp2 = (base.GetControl("BT_SPEEDUP2") as Button); this.m_btnSpeedUp1 = (base.GetControl("BT_SPEEDUP") as Button); this.m_LbHeartNum = (base.GetControl("LB_HEARTNUM") as Label); this.m_LbSpeedUpNum = (base.GetControl("LB_SPEEDUPNUM") as Label); this.m_CheckBox1 = (base.GetControl("CheckBox_1") as CheckBox); this.m_CheckBox2 = (base.GetControl("CheckBox_2") as CheckBox); Button expr_10E = this.m_btnOK; expr_10E.Click = (EZValueChangedDelegate)Delegate.Combine(expr_10E.Click, new EZValueChangedDelegate(this.BtnMsg_OK)); this.m_btnOK.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("8")); Button expr_14F = this.m_btnCancel; expr_14F.Click = (EZValueChangedDelegate)Delegate.Combine(expr_14F.Click, new EZValueChangedDelegate(this.BtnMsg_Cancel)); this.m_btnCancel.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("9")); Button expr_190 = this.m_btnSpeedUp1; expr_190.Click = (EZValueChangedDelegate)Delegate.Combine(expr_190.Click, new EZValueChangedDelegate(this.OnClickBuySpeedUp)); this.m_btnSpeedUp1.DeleteSpriteText(); Button expr_1C2 = this.m_btnSpeedUp2; expr_1C2.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1C2.Click, new EZValueChangedDelegate(this.OnClickBuySpeedUp)); this.m_btnSpeedUp2.DeleteSpriteText(); this.m_LbHeartNum.SetText(string.Empty); this.m_iUserMoney = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money; this.m_LbHeartNum.SetText(ANNUALIZED.Convert(this.m_iUserMoney)); this.m_LbSpeedUpNum.SetText(string.Empty); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo != null) { long charSubData = kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_BATTLESPEED_COUNT); if (0L >= charSubData) { this.m_LbSpeedUpNum.SetText(charSubData.ToString()); } } this.m_CheckBox1.SetToggleState(1); this.m_CheckBox2.SetToggleState(1); this.m_CheckBox1.SetValueChangedDelegate(new EZValueChangedDelegate(this.CheckBox1_Click)); this.m_CheckBox2.SetValueChangedDelegate(new EZValueChangedDelegate(this.CheckBox2_Click)); this.Initialize(); if (TsPlatform.IsMobile) { base.ShowBlackBG(0.5f); base.BLACK_BG.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); } base.DonotDepthChange(90f); base.SetScreenCenter(); this.Hide(); }
public void MessageBoxMyCost(object a_oObject) { long num = (long)a_oObject; if (num > 0L) { this.m_lTenderCost = (long)a_oObject; this.m_lbMyCost.SetText(ANNUALIZED.Convert(this.m_lTenderCost)); this.ClickOK(null); } NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.DLG_INPUTNUMBER); }
public void SetInfiBattleFightPower() { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo == null) { return; } string empty = string.Empty; string empty2 = string.Empty; string text = string.Empty; string enemyUserName = SoldierBatch.SOLDIERBATCH.GetEnemyUserName(); this.SumFightPower_Ally1 = 0L; for (int i = 0; i < 15; i++) { PLUNDER_TARGET_INFO infiDefenseSolInfo = SoldierBatch.SOLDIERBATCH.GetInfiDefenseSolInfo(i); if (infiDefenseSolInfo != null) { this.SumFightPower_Ally1 += (long)infiDefenseSolInfo.nFightPower; } } text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3382"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { text, "charname", charPersonInfo.GetCharName(), "count", ANNUALIZED.Convert(this.SumFightPower_Ally0) }); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3382"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { text, "charname", enemyUserName, "count", ANNUALIZED.Convert(this.SumFightPower_Ally1) }); this.m_lbInfiFightPower_user.SetText(empty); this.m_lbInfiFightPower_enemy.SetText(empty2); this.m_lbInfiFightPower_user.Visible = true; this.m_lbInfiFightPower_enemy.Visible = true; this.m_lbInfiVS.Visible = true; }
public void SetTargetInfo(string strCharName, int nLevel, long nGold) { this.m_lCharName.Text = strCharName; this.m_lCharLevel.Text = "Lv. " + nLevel.ToString(); this.m_lGold.SetText(ANNUALIZED.Convert(nGold)); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo != null) { kMyCharInfo.PlunderMoney = nGold; kMyCharInfo.PlunderCharName = strCharName; kMyCharInfo.PlunderCharLevel = nLevel; } }
public override void SetComponent() { this.m_eCharTribeList = new E_CHAR_TRIBE[4]; this.m_dtMainBG = (base.GetControl("DrawTexture_DrawTexture26") as DrawTexture); this.m_dtCharBG = (base.GetControl("BT_DrawTexture25") as DrawTexture); this.m_dtShadowBG = (base.GetControl("BT_DrawTexture_CharShadow1") as DrawTexture); string text = string.Format("UI/charselect/ChShadow" + NrTSingleton <UIDataManager> .Instance.AddFilePath, new object[0]); Texture2D texture2D = ResourceCache.GetResource(text) as Texture2D; if (null == texture2D) { CharChangeMainDlg.RequestDownload(text, new PostProcPerItem(CharChangeMainDlg._OnImageProcess), this.m_dtShadowBG); } else { CharChangeMainDlg.SetTexture(this.m_dtShadowBG, texture2D); } this.m_btPrev = (base.GetControl("BT_Back") as Button); this.m_btPrev.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickPrev)); this.m_btNext = (base.GetControl("BT_Next") as Button); this.m_btNext.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickNext)); this.m_lbClass = (base.GetControl("LB_Title") as Label); this.m_dtWeapon1 = (base.GetControl("DT_Weapon01") as DrawTexture); this.m_dtWeapon2 = (base.GetControl("DT_Weapon02") as DrawTexture); this.m_lbInfo = (base.GetControl("LB_Info") as Label); this.m_btMovie = (base.GetControl("BT_Movie") as Button); this.m_btMovie.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickMovie)); this.m_dtSkillIcon1 = (base.GetControl("DT_SkillIcon01") as DrawTexture); this.m_lbSkillName1 = (base.GetControl("LB_SkillName01") as Label); this.m_dtSkillIcon2 = (base.GetControl("DT_SkillIcon02") as DrawTexture); this.m_lbSkillName2 = (base.GetControl("LB_SkillName02") as Label); this.m_lbMoney = (base.GetControl("LB_Gold") as Label); charSpend charSpend = NrTSingleton <NrBaseTableManager> .Instance.GetCharSpend(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetLevel().ToString()); if (charSpend != null) { this.m_lNeedMoney = charSpend.lCharChangeGold; } this.m_lbMoney.SetText(ANNUALIZED.Convert(this.m_lNeedMoney)); this.m_btBack = (base.GetControl("Button_Button15") as Button); this.m_btBack.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickBack)); this.m_btChange = (base.GetControl("BT_Change") as Button); this.m_btChange.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickChange)); this.m_eCharTribeList[0] = E_CHAR_TRIBE.FURRY; this.m_eCharTribeList[1] = E_CHAR_TRIBE.ELF; this.m_eCharTribeList[2] = E_CHAR_TRIBE.HUMAN; this.m_eCharTribeList[3] = E_CHAR_TRIBE.HUMANF; base.SetScreenCenter(); }
public override void Update() { this.ShowTextAni(); if (0f < this.m_fCoolTime && this.m_fCoolTime <= Time.time) { this.m_fCoolTime = 0f; this.SetControlEnable(true); this.ShowTextChangeEffect(); } if (this.m_iAwakeningItemNum != NkUserInventory.GetInstance().Get_First_ItemCnt(this.m_iAwakeningItemUnique)) { this.m_iAwakeningItemNum = NkUserInventory.GetInstance().Get_First_ItemCnt(this.m_iAwakeningItemUnique); this.m_lbMyAwakeningItemNum.SetText(ANNUALIZED.Convert(this.m_iAwakeningItemNum)); } }
public override string GetGameGuideText() { long num = (long)COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_PLUNDER_AGREE_GOLD); string empty = string.Empty; string textFromToolTip = NrTSingleton <NrTextMgr> .Instance.GetTextFromToolTip(this.m_strTalkKey); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromToolTip, "gold", ANNUALIZED.Convert(num) }); return(empty); }
public override void Update() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } if (this.nHaveMoney != kMyCharInfo.m_Money) { this.nHaveMoney = kMyCharInfo.m_Money; this.MyMoney.Text = ANNUALIZED.Convert(kMyCharInfo.m_Money); this.CountMaxNeedMoneyAndSkillLevel(); } }
public void MakeGuildRankItem(GUILDWAR_RANK_DATA GuildData) { NewListItem newListItem = new NewListItem(this.m_nlbGuildRank.ColumnNum, true, string.Empty); newListItem.SetListItemData(0, TKString.NEWString(GuildData.strGuildName), null, null, null); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2509"), "rank", GuildData.i16GuildRank }); newListItem.SetListItemData(1, this.m_strText, null, null, null); newListItem.SetListItemData(4, ANNUALIZED.Convert(GuildData.i32GuildWarPoint), null, null, null); this.m_nlbGuildRank.Add(newListItem); }
private void OnClickShowTicket(IUIObject a_oObject) { if (this.m_eReforgeType == ReforgeMainDlg.eREFOGE_TYPE.MONEY) { this.m_eReforgeType = ReforgeMainDlg.eREFOGE_TYPE.ITEM; base.SetShowLayer(3, this.m_eReforgeType == ReforgeMainDlg.eREFOGE_TYPE.ITEM); base.SetShowLayer(2, this.m_eReforgeType == ReforgeMainDlg.eREFOGE_TYPE.MONEY); this.m_ivReforgeItemTiket.Clear(); ImageSlot imageSlot = new ImageSlot(); imageSlot.c_bEnable = true; imageSlot.Index = 0; imageSlot.itemunique = this.m_ReforgeInfo.nReforgeItemUnique; imageSlot._solID = 0L; imageSlot.WindowID = base.WindowID; imageSlot.SlotInfo._visibleRank = true; this.m_ivReforgeItemTiket.SetImageSlot(0, imageSlot, null, null, null, null); this.m_ivReforgeItemTiket.RepositionItems(); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("571"), "Count", ANNUALIZED.Convert(this.m_ReforgeInfo.nReforgeItemNum) }); this.m_lbRequestTicketCount.SetText(empty); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("571"), "Count", ANNUALIZED.Convert(NkUserInventory.GetInstance().GetItemCnt(this.m_ReforgeInfo.nReforgeItemUnique)) }); this.m_lbHaveTicketCount.SetText(empty); this.m_lbTicketName.Text = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(this.m_ReforgeInfo.nReforgeItemUnique); this.m_btnReforgeTicket.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1975"); } else { this.m_eReforgeType = ReforgeMainDlg.eREFOGE_TYPE.MONEY; this.TicketSlotClear(); base.SetShowLayer(3, this.m_eReforgeType == ReforgeMainDlg.eREFOGE_TYPE.ITEM); base.SetShowLayer(2, this.m_eReforgeType == ReforgeMainDlg.eREFOGE_TYPE.MONEY); this.m_btnReforgeTicket.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1946"); } }
public void ClickPayType() { if (null == this.m_cbHearts || null == this.m_cbMoney) { return; } if (this.m_cbHearts.IsChecked()) { this.m_SearchOption.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS; this.m_SearchOption.m_lCostMoney = 0L; this.m_SearchOption.m_lDirectCostMoney = 0L; this.m_lbCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_iCostHearts)); this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_iCostDirectHearts)); AuctionMainDlg.SetChangePayTexture(this.m_dtCostIcon1, this.m_dtCostIcon2, AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS); } else if (this.m_cbMoney.IsChecked()) { this.m_SearchOption.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD; this.m_SearchOption.m_iCostHearts = 0; this.m_SearchOption.m_iCostDirectHearts = 0; this.m_lbCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_lCostMoney)); this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_lDirectCostMoney)); AuctionMainDlg.SetChangePayTexture(this.m_dtCostIcon1, this.m_dtCostIcon2, AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD); } bool flag = false; if (this.m_cbHearts.IsChecked() && this.m_cbMoney.IsChecked()) { flag = true; } if (!this.m_cbHearts.IsChecked() && !this.m_cbMoney.IsChecked()) { flag = true; } if (flag) { this.m_SearchOption.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_ALL; this.m_SearchOption.m_lCostMoney = 0L; this.m_SearchOption.m_lDirectCostMoney = 0L; this.m_SearchOption.m_iCostHearts = 0; this.m_SearchOption.m_iCostDirectHearts = 0; this.m_lbCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_lCostMoney)); this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_lDirectCostMoney)); } }
public void GoldAni() { if (this.m_fAniStartTime != 0f) { if (Time.realtimeSinceStartup - this.m_fAniStartTime < 1.5f) { float num = (Time.realtimeSinceStartup - this.m_fAniStartTime) / 1.5f; long num2 = this.m_nStartGold + (long)((float)(this.m_nEndGold - this.m_nStartGold) * num); this.m_lbGold.SetText(ANNUALIZED.Convert(num2)); } else { this.m_lbGold.SetText(ANNUALIZED.Convert(this.m_nEndGold)); this.m_nStartGold = 0L; this.m_fAniStartTime = 0f; } } }
public override string GetGameGuideText() { string empty = string.Empty; string textFromToolTip = NrTSingleton <NrTextMgr> .Instance.GetTextFromToolTip(this.m_strTalkKey); if (this.m_nReceiveGold < 0L) { this.m_nReceiveGold = 0L; } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromToolTip, "gold", ANNUALIZED.Convert(this.m_nReceiveGold) }); return(empty); }
public override string GetGameGuideText() { string empty = string.Empty; string textFromToolTip = NrTSingleton <NrTextMgr> .Instance.GetTextFromToolTip(this.m_strTalkKey); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromToolTip, "count", this.m_nPlunderCount.ToString(), "gold1", ANNUALIZED.Convert(this.m_nPlunderMoney), "gold2", ANNUALIZED.Convert(this.m_nPlunderSellMoney) }); return(empty); }
public void SetTenderInfo(AUCTION_REGISTER_INFO RegisterInfo) { this.m_lAuctionID = RegisterInfo.i64AuctionID; if (0L < RegisterInfo.i64DirectCostMoney) { this.m_lDirectCostMoney = RegisterInfo.i64DirectCostMoney; this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_lDirectCostMoney)); this.m_dtCostIcon.SetTexture("Com_I_MoneyIconM"); this.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD; } else if (0 < RegisterInfo.i32DirectCostHearts) { this.m_iDirectCostHearts = RegisterInfo.i32DirectCostHearts; this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_iDirectCostHearts)); this.m_dtCostIcon.SetTexture("Win_I_Hearts"); this.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS; } }
public void UpdateDamageInfo(long addDamageData) { if (addDamageData > 0L) { string empty = string.Empty; this.m_TotalMythRaidDamage += addDamageData; string text = ANNUALIZED.Convert(this.m_TotalMythRaidDamage); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3133"), "damage", text }); this.TextUpdateAndPlayAni(this.m_lbDamageNum, empty); } this.CheckTotalDamageRecordInWeek(); }
public override void Update() { if (NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo == null) { return; } if (this.m_nHeartsCount != NkUserInventory.GetInstance().Get_First_ItemCnt(70000)) { this.m_nHeartsCount = NkUserInventory.GetInstance().Get_First_ItemCnt(70000); this.m_lbNowHearts.SetText(ANNUALIZED.Convert(this.m_nHeartsCount)); } if (this.m_nSoulGemsCount != NkUserInventory.GetInstance().Get_First_ItemCnt(70002)) { this.m_nSoulGemsCount = NkUserInventory.GetInstance().Get_First_ItemCnt(70002); this.m_lbSoulGem.SetText(ANNUALIZED.Convert(this.m_nSoulGemsCount)); } this.Update_RemainTime(); }
public override void SetComponent() { this.m_btStartBattle = (base.GetControl("Button_ok") as Button); Button expr_1C = this.m_btStartBattle; expr_1C.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1C.Click, new EZValueChangedDelegate(this.OnClickStartBattle)); this.m_btCancel = (base.GetControl("Button_cancel") as Button); Button expr_59 = this.m_btCancel; expr_59.Click = (EZValueChangedDelegate)Delegate.Combine(expr_59.Click, new EZValueChangedDelegate(this.OnClickCancel)); this.m_lbNote = (base.GetControl("Label_Note") as Label); this.m_lbMoney = (base.GetControl("LB_HEARTNUM") as Label); this.m_lbSpeed = (base.GetControl("LB_SPEEDUPNUM") as Label); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo != null) { this.m_lbMoney.SetText(ANNUALIZED.Convert(kMyCharInfo.m_Money)); long num = kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_BATTLESPEED_COUNT); if (num < 0L) { num = 0L; } this.m_lbSpeed.SetText(num.ToString()); } this.m_cbBox1 = (base.GetControl("CheckBox_1") as CheckBox); this.m_cbBox2 = (base.GetControl("CheckBox_2") as CheckBox); sbyte floor = NrTSingleton <NewExplorationManager> .Instance.GetFloor(); sbyte subFloor = NrTSingleton <NewExplorationManager> .Instance.GetSubFloor(); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("365"), "count1", (int)floor, "count2", (int)subFloor }); this.m_lbNote.SetText(empty); }
public override void SetComponent() { this.m_lbDragonHeart = (base.GetControl("LB_DragonHeart") as Label); this.m_btEnd = (base.GetControl("Button_End") as Button); Button expr_32 = this.m_btEnd; expr_32.Click = (EZValueChangedDelegate)Delegate.Combine(expr_32.Click, new EZValueChangedDelegate(this.OnClickEnd)); this.m_btCancel = (base.GetControl("Button_Cancel") as Button); Button expr_6F = this.m_btCancel; expr_6F.Click = (EZValueChangedDelegate)Delegate.Combine(expr_6F.Click, new EZValueChangedDelegate(this.OnClickCancel)); int num = 0; NEWEXPLORATION_DATA endRewardData = NrTSingleton <NewExplorationManager> .Instance.GetEndRewardData(); if (endRewardData != null) { num = endRewardData.i32RewardCount; } this.m_lbDragonHeart.SetText(ANNUALIZED.Convert(num)); }
public void ShowPayInfo() { this.m_lbCost.SetText(ANNUALIZED.Convert(this.m_lSellCost)); if (0L >= this.m_lSellDirectCost) { this.m_lbDirectCost.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("48")); } else { this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_lSellDirectCost)); } long lSellCost = this.m_lSellCost; if (0L < this.m_lSellDirectCost) { lSellCost = this.m_lSellDirectCost; } if (this.m_SelectItem != null) { this.m_lSellRegisterCost = AuctionSellCheckDlg.GetRegisterCost(this.m_SelectItem, lSellCost, this.m_ePayType); } else { this.m_lSellRegisterCost = AuctionSellCheckDlg.GetRegisterCost(this.m_SelectSoldierInfo, lSellCost, this.m_ePayType); } this.m_lbSellRegisterCost.SetText(ANNUALIZED.Convert(this.m_lSellRegisterCost)); AuctionDefine.ePAYTYPE ePayType = this.m_ePayType; if (ePayType != AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS) { if (ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD) { this.m_dtCost.SetTextureKey("Com_I_MoneyIconM"); this.m_dtDirectCost.SetTextureKey("Com_I_MoneyIconM"); } } else { this.m_dtCost.SetTextureKey("Win_I_Hearts"); this.m_dtDirectCost.SetTextureKey("Win_I_Hearts"); } }
public void DateSetting() { BABEL_GUILDBOSS babelGuildBossinfo = NrTSingleton <BabelTowerManager> .Instance.GetBabelGuildBossinfo(SoldierBatch.GUILDBOSS_INFO.m_i16Floor); string text = string.Empty; string empty = string.Empty; text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1808"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { text, "count1", ANNUALIZED.Convert(SoldierBatch.GUILDBOSS_INFO.m_i32BossHP), "count2", ANNUALIZED.Convert(babelGuildBossinfo.m_nBossMaxHP) }); this.m_lBossHp.Text = empty; float num = (float)SoldierBatch.GUILDBOSS_INFO.m_i32BossHP / (float)babelGuildBossinfo.m_nBossMaxHP; this.m_dtHpBar.SetSize(400f * num, this.m_dtHpBar.GetSize().y); string name = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(babelGuildBossinfo.m_nBossKind); this.m_lBossName.Text = name; string empty2 = string.Empty; string text2 = string.Empty; text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(babelGuildBossinfo.m_strTextExplain); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { text2, "targetname", name }); this.m_lBossTip.Text = empty2; this.m_dtBoss.SetTexture(eCharImageType.LARGE, babelGuildBossinfo.m_nBossKind, 0, string.Empty); this.BattleUserCheck(); }