| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | public override string GetDisplay(RichTextEventEnum type, Dictionary<string, string> _dict) |
| | | { |
| | | switch (type) |
| | |
| | | var itemName = cfg.ItemName; |
| | | if (_dict.ContainsKey("chatsend")) |
| | | { |
| | | itemName = StringUtility.Contact("[", itemName, "]"); |
| | | itemName = StringUtility.Concat("[", itemName, "]"); |
| | | } |
| | | if (_dict.ContainsKey("count")) |
| | | { |
| | |
| | | int.TryParse(_dict["count"], out count); |
| | | if (count > 0) |
| | | { |
| | | itemName = StringUtility.Contact(itemName, "x", count); |
| | | itemName = StringUtility.Concat(itemName, "x", count.ToString()); |
| | | } |
| | | } |
| | | var suitLabel = string.Empty; |
| | |
| | | } |
| | | // if (ItemLogicUtility.Instance.IsSuitEquip(id)) |
| | | // { |
| | | // suitLabel = StringUtility.Contact("<Suitname=", UIHelper.GetEquipSuitName(id, colorType == 1), "/>|"); |
| | | // suitLabel = StringUtility.Concat("<Suitname=", UIHelper.GetEquipSuitName(id, colorType == 1), "/>|"); |
| | | // } |
| | | } |
| | | return StringUtility.Contact(suitLabel, AppendColor(itemName, _itemColor, _dict)); |
| | | return StringUtility.Concat(suitLabel, AppendColor(itemName, _itemColor, _dict)); |
| | | } |
| | | else |
| | | { |
| | |
| | | // } |
| | | // } |
| | | return "map"; |
| | | } |
| | | } |
| | | break; |
| | | case "skill": |
| | | { |
| | |
| | | return "treasureprivilege"; |
| | | } |
| | | break; |
| | | |
| | | |
| | | // case "skytowerfloor": |
| | | // { |
| | | // var _id = 0; |
| | |
| | | var config = ItemConfig.Get(_id); |
| | | if (config != null) |
| | | { |
| | | return StringUtility.Contact(GetItemColorName(config.ItemColor), AppendColor(config.ItemName, config.ItemColor, _dict)); |
| | | return StringUtility.Concat(GetItemColorName(config.ItemColor), AppendColor(config.ItemName, config.ItemColor, _dict)); |
| | | } |
| | | } |
| | | } |
| | |
| | | var _id = 0; |
| | | if (_dict.ContainsKey("id") && int.TryParse(_dict["id"], out _id)) |
| | | { |
| | | return UIHelper.AppendColor(TextColType.Green, DienstgradConfig.Get(_id).Name, true); |
| | | return UIHelper.AppendColor(TextColType.Green, TitleConfig.Get(_id).Name, true); |
| | | } |
| | | } |
| | | break; |
| | | case "face": |
| | | { |
| | | var _id = 0; |
| | | if (_dict.ContainsKey("id") && int.TryParse(_dict["id"], out _id)) |
| | | { |
| | | return UIHelper.AppendColor(TextColType.Green, PlayerFaceConfig.Get(_id).Name, true); |
| | | } |
| | | } |
| | | break; |
| | | case "facepic": |
| | | { |
| | | var _id = 0; |
| | | if (_dict.ContainsKey("id") && int.TryParse(_dict["id"], out _id)) |
| | | { |
| | | return UIHelper.AppendColor(TextColType.Green, PlayerFacePicConfig.Get(_id).Name, true); |
| | | } |
| | | } |
| | | break; |
| | | case "chatbox": |
| | | { |
| | | var _id = 0; |
| | | if (_dict.ContainsKey("id") && int.TryParse(_dict["id"], out _id)) |
| | | { |
| | | return UIHelper.AppendColor(TextColType.Green, ChatBubbleBoxConfig.Get(_id).Name, true); |
| | | } |
| | | } |
| | | break; |
| | | case "model": |
| | | { |
| | | var _id = 0; |
| | | if (_dict.ContainsKey("id") && int.TryParse(_dict["id"], out _id)) |
| | | { |
| | | return UIHelper.AppendColor(TextColType.Green, ModelConfig.Get(_id).Name, true); |
| | | } |
| | | } |
| | | break; |
| | | case "horseskin": |
| | | { |
| | | var _id = 0; |
| | | if (_dict.ContainsKey("id") && int.TryParse(_dict["id"], out _id)) |
| | | { |
| | | return UIHelper.AppendColor(TextColType.Green, HorseSkinConfig.Get(_id).Name, true); |
| | | } |
| | | } |
| | | break; |