From b9a6e7e896b451e9c915e782a1789b2afe079cc9 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 03 十二月 2025 19:16:01 +0800
Subject: [PATCH] 76 聊天系统-客户端
---
Main/Config/Configs/ChatBubbleBoxConfig.cs | 65 ++++++++++++++++++++++++++++++++
1 files changed, 64 insertions(+), 1 deletions(-)
diff --git a/Main/Config/Configs/ChatBubbleBoxConfig.cs b/Main/Config/Configs/ChatBubbleBoxConfig.cs
index b8216b6..b851bc7 100644
--- a/Main/Config/Configs/ChatBubbleBoxConfig.cs
+++ b/Main/Config/Configs/ChatBubbleBoxConfig.cs
@@ -1,6 +1,6 @@
锘�//--------------------------------------------------------
// [Author]: YYL
-// [ Date ]: 2025骞�11鏈�16鏃�
+// [ Date ]: 2025骞�12鏈�1鏃�
//--------------------------------------------------------
using System.Collections.Generic;
@@ -30,6 +30,11 @@
public int[] InitAttrValueList;
public int[] AttrPerStarAddList;
public string GetWayString;
+ public int[] LeftOffset;
+ public int[] RightOffset;
+ public int Top;
+ public int[] MyColor;
+ public int[] OtherColor;
public override int LoadKey(string _key)
{
@@ -104,6 +109,64 @@
}
GetWayString = tables[13];
+
+ if (tables[14].Contains("["))
+ {
+ LeftOffset = JsonMapper.ToObject<int[]>(tables[14]);
+ }
+ else
+ {
+ string[] LeftOffsetStringArray = tables[14].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
+ LeftOffset = new int[LeftOffsetStringArray.Length];
+ for (int i=0;i<LeftOffsetStringArray.Length;i++)
+ {
+ int.TryParse(LeftOffsetStringArray[i],out LeftOffset[i]);
+ }
+ }
+
+ if (tables[15].Contains("["))
+ {
+ RightOffset = JsonMapper.ToObject<int[]>(tables[15]);
+ }
+ else
+ {
+ string[] RightOffsetStringArray = tables[15].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
+ RightOffset = new int[RightOffsetStringArray.Length];
+ for (int i=0;i<RightOffsetStringArray.Length;i++)
+ {
+ int.TryParse(RightOffsetStringArray[i],out RightOffset[i]);
+ }
+ }
+
+ int.TryParse(tables[16],out Top);
+
+ if (tables[17].Contains("["))
+ {
+ MyColor = JsonMapper.ToObject<int[]>(tables[17]);
+ }
+ else
+ {
+ string[] MyColorStringArray = tables[17].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
+ MyColor = new int[MyColorStringArray.Length];
+ for (int i=0;i<MyColorStringArray.Length;i++)
+ {
+ int.TryParse(MyColorStringArray[i],out MyColor[i]);
+ }
+ }
+
+ if (tables[18].Contains("["))
+ {
+ OtherColor = JsonMapper.ToObject<int[]>(tables[18]);
+ }
+ else
+ {
+ string[] OtherColorStringArray = tables[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
+ OtherColor = new int[OtherColorStringArray.Length];
+ for (int i=0;i<OtherColorStringArray.Length;i++)
+ {
+ int.TryParse(OtherColorStringArray[i],out OtherColor[i]);
+ }
+ }
}
catch (Exception exception)
{
--
Gitblit v1.8.0