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 static long GetRegisterCost(NkSoldierInfo SoldierInfo, long lSellCost, AuctionDefine.ePAYTYPE ePayType) { long result = 0L; if (SoldierInfo == null) { return(result); } int num = (int)AuctionMainDlg.GetAuctionSellPrice(); long num2 = (long)((int)SoldierInfo.GetLevel() * num); float auctionSellPriceRate = AuctionMainDlg.GetAuctionSellPriceRate(); long num3 = (long)((float)lSellCost * auctionSellPriceRate); if (ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS) { int heartsValue = AuctionMainDlg.GetHeartsValue(); if (0 < heartsValue) { num3 *= (long)heartsValue; } } result = num2; if (num2 < num3) { result = num3; } return(result); }
public static long GetRegisterCost(ITEM Item, long lSellCost, AuctionDefine.ePAYTYPE ePayType) { long result = 0L; if (Item == null) { return(result); } ITEMINFO itemInfo = NrTSingleton <ItemManager> .Instance.GetItemInfo(Item.m_nItemUnique); if (itemInfo != null) { int num = (int)AuctionMainDlg.GetAuctionSellPrice(); long num2 = (long)(itemInfo.m_nUseMinLevel * num); float auctionSellPriceRate = AuctionMainDlg.GetAuctionSellPriceRate(); long num3 = (long)((float)lSellCost * auctionSellPriceRate); if (ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS) { int heartsValue = AuctionMainDlg.GetHeartsValue(); if (0 < heartsValue) { num3 *= (long)heartsValue; } } result = num2; if (num2 < num3) { result = num3; } } return(result); }
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 Set(AuctionSearchOption SearchOption) { this.m_eAuctionRegisterType = SearchOption.m_eAuctionRegisterType; this.m_eItemType = SearchOption.m_eItemType; this.m_iUseMinLevel = SearchOption.m_iUseMinLevel; this.m_iUseMaxLevel = SearchOption.m_iUseMaxLevel; this.m_iItemSkillUnique = SearchOption.m_iItemSkillUnique; this.m_iItemSkillLevel = SearchOption.m_iItemSkillLevel; this.m_iItemTradeCount = SearchOption.m_iItemTradeCount; this.m_bySolSeason = SearchOption.m_bySolSeason; this.m_iSolLevel = SearchOption.m_iSolLevel; this.m_strSolName = SearchOption.m_strSolName; this.m_iSolTradeCount = SearchOption.m_iSolTradeCount; this.m_lCostMoney = SearchOption.m_lCostMoney; this.m_lDirectCostMoney = SearchOption.m_lDirectCostMoney; this.m_iCostHearts = SearchOption.m_iCostHearts; this.m_iCostDirectHearts = SearchOption.m_iCostDirectHearts; this.m_ePayType = SearchOption.m_ePayType; }
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 SetSolInfo(NkSoldierInfo SelectSol, long lSellCost, long lSellDirectCoust, AuctionDefine.ePAYTYPE ePayType) { this.m_SelectSoldierInfo = SelectSol; this.m_lSellCost = lSellCost; this.m_lSellDirectCost = lSellDirectCoust; this.m_ePayType = ePayType; NkListSolInfo listSolInfo = this.m_SelectSoldierInfo.GetListSolInfo(true); listSolInfo.ShowLevel = true; this.m_itItem.SetSolImageTexure(eCharImageType.SMALL, listSolInfo, false); this.m_lbItemName.SetText(this.m_SelectSoldierInfo.GetName()); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1026"), "count", this.m_SelectSoldierInfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_TRADE_COUNT) }); this.m_lbTradeCount.SetText(this.m_strText); this.ShowPayInfo(); }
public void SetItemInfo(ITEM SelectItem, long lSellCost, long lSellDirectCoust, AuctionDefine.ePAYTYPE ePayType) { this.m_SelectItem = SelectItem; this.m_lSellCost = lSellCost; this.m_lSellDirectCost = lSellDirectCoust; this.m_ePayType = ePayType; this.m_itItem.SetItemTexture(this.m_SelectItem); int rank = this.m_SelectItem.m_nOption[2]; string str = ItemManager.RankTextColor(rank); string rankColorName = NrTSingleton <ItemManager> .Instance.GetRankColorName(this.m_SelectItem); this.m_lbItemName.SetText(str + rankColorName); this.m_dtItemBG.SetTexture("Win_I_Frame" + ItemManager.ChangeRankToString(rank)); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1026"), "count", this.m_SelectItem.m_nOption[7] }); this.m_lbTradeCount.SetText(this.m_strText); this.ShowPayInfo(); }