From 89343a7a0909e5244a3b69c4db1294de4536243b Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期一, 15 十二月 2025 18:15:22 +0800
Subject: [PATCH] 262 幻境阁系统-客户端 新增仅适用武将解锁的头像和形象的红点移除规则
---
Main/System/Message/RichTableEvent.cs | 63 +++++++++++++++++++++++++++----
1 files changed, 54 insertions(+), 9 deletions(-)
diff --git a/Main/System/Message/RichTableEvent.cs b/Main/System/Message/RichTableEvent.cs
index b43baf6..e024d2d 100644
--- a/Main/System/Message/RichTableEvent.cs
+++ b/Main/System/Message/RichTableEvent.cs
@@ -28,7 +28,7 @@
return false;
}
-
+
public override string GetDisplay(RichTextEventEnum type, Dictionary<string, string> _dict)
{
switch (type)
@@ -69,7 +69,7 @@
var itemName = cfg.ItemName;
if (_dict.ContainsKey("chatsend"))
{
- itemName = StringUtility.Contact("[", itemName, "]");
+ itemName = StringUtility.Concat("[", itemName, "]");
}
if (_dict.ContainsKey("count"))
{
@@ -77,7 +77,7 @@
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;
@@ -91,10 +91,10 @@
}
// 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
{
@@ -137,7 +137,7 @@
// }
// }
return "map";
- }
+ }
break;
case "skill":
{
@@ -252,7 +252,7 @@
return "treasureprivilege";
}
break;
-
+
// case "skytowerfloor":
// {
// var _id = 0;
@@ -274,7 +274,7 @@
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));
}
}
}
@@ -300,7 +300,52 @@
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;
--
Gitblit v1.8.0