private string ItemRankText(ITEM item) { eITEM_RANK_TYPE rank = item.GetRank(); string result = string.Empty; switch (rank) { case eITEM_RANK_TYPE.ITEM_RANK_D: result = "D"; break; case eITEM_RANK_TYPE.ITEM_RANK_C: result = "C"; break; case eITEM_RANK_TYPE.ITEM_RANK_B: result = "B"; break; case eITEM_RANK_TYPE.ITEM_RANK_A: result = "A"; break; case eITEM_RANK_TYPE.ITEM_RANK_S: result = "S"; break; case eITEM_RANK_TYPE.ITEM_RANK_SS: result = "SS"; break; } return(result); }
public string GetRankImage() { string result = string.Empty; eITEM_RANK_TYPE rank = this.GetRank(); if (rank == eITEM_RANK_TYPE.ITEM_RANK_SS) { result = "Win_I_FrameSS"; } else if (rank == eITEM_RANK_TYPE.ITEM_RANK_S) { result = "Win_I_FrameS"; } else if (rank == eITEM_RANK_TYPE.ITEM_RANK_A) { result = "Win_I_FrameA"; } else if (rank == eITEM_RANK_TYPE.ITEM_RANK_B) { result = "Win_I_FrameB"; } else if (rank == eITEM_RANK_TYPE.ITEM_RANK_C) { result = "Win_I_FrameC"; } else if (rank == eITEM_RANK_TYPE.ITEM_RANK_D) { result = "Win_I_FrameD"; } return(result); }
public void SetData(ITEM item, long money, int nMatItemUni, int nMatItemNum) { string name = NrTSingleton <ItemManager> .Instance.GetName(item); eITEM_RANK_TYPE rank = item.GetRank(); string rankName = NrTSingleton <ItemManager> .Instance.GetRankName(item); string text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1992"); string empty = string.Empty; if (money != 0L) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1992"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { text, "money", money.ToString(), "itemname2", ItemManager.RankTextColor(rank) + name, "grade", rankName }); } else { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("178"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { text, "targetname", NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(nMatItemUni), "count", nMatItemNum.ToString(), "targetname1", ItemManager.RankTextColor(rank) + name }); } this.m_lbContext.Text = empty; }