/// <summary> /// 通过周奖励Index获取对应的奖励名称列表 /// </summary> /// <param name="xmlID"></param> /// <returns></returns> static public List <string> GetWeekRewardNameList(int weekRankIndex) { List <int> weekRankIDList = SanctuaryRewardXMLData.GetWeekRankID(); List <string> tips = new List <string>(); if (weekRankIndex >= weekRankIDList.Count) { return(tips); } if (SanctuaryRewardXMLData.dataMap[weekRankIDList[weekRankIndex]].gold > 0) { tips.Add(String.Concat(LanguageData.MONEY, " ", SanctuaryRewardXMLData.dataMap[weekRankIDList[weekRankIndex]].gold)); } if (SanctuaryRewardXMLData.dataMap[weekRankIDList[weekRankIndex]].exp > 0) { tips.Add(String.Concat(LanguageData.EXP, " ", SanctuaryRewardXMLData.dataMap[weekRankIDList[weekRankIndex]].exp)); } foreach (var item in SanctuaryRewardXMLData.dataMap[weekRankIDList[weekRankIndex]].items) { tips.Add(String.Concat(ArenaRewardUIViewManager.GetNameByItemID(item.Key), " x ", item.Value)); } return(tips); }
// 获得物品信息 string GetRewardItemReportText(int itemId, int count, bool isObtain = false) { string reportText = ""; if (!string.IsNullOrEmpty((ArenaRewardUIViewManager.GetNameByItemID(itemId)))) { reportText += (ArenaRewardUIViewManager.GetNameByItemID(itemId)); } else { reportText += itemId.ToString(); } reportText += "x" + count; if (isObtain) { reportText += LanguageData.GetContent(46959);//" (已获得)"; } return(reportText); }