fix:1、同步部分arrow game的ui资源和代码

This commit is contained in:
2026-07-10 14:08:25 +08:00
parent f2586d11a6
commit dd56ccb469
213 changed files with 6371 additions and 1449 deletions
+41
View File
@@ -13,6 +13,8 @@ using SGModule.Net;
using SGModule.NetKit;
using System.Reflection;
using System.Globalization;
using IgnoreOPS;
using Newtonsoft.Json;
using SGModule.Common.Extensions;
namespace RedHotRoast
@@ -1751,6 +1753,45 @@ namespace RedHotRoast
}
#endregion
public static string getDesByKey(string key)
{
Debug.Log(key);
Debug.Log(JsonConvert.SerializeObject(ConfigSystem.GetConfig<ExchangeDes>()));
if (isRDExchangeMode())
{
string str = ConfigSystem.GetConfig<ExchangeDes>().FirstOrDefault(data => data.des_key == key)?.Mode_1 ?? "";
if (str != "")
{
str = str.Replace("<img1>", "<img src='ui://o9974uc5qbo98'/>")
.Replace("<img2>", "<img src='ui://o9974uc5t9w7c3'/>");
}
return str;
}
else
{
return ConfigSystem.GetConfig<ExchangeDes>().FirstOrDefault(data => data.des_key == key)?.Mode_0 ?? "";
}
}
public static bool isRDExchangeMode()
{
// return true; //zhushi
return DataMgr.ExchangeModeToggle.Value == 1;
}
public static string getChString(decimal ch)
{
if (isRDExchangeMode() && IsGiftSwitch())
{
string str = "<img src='ui://o9974uc5m39de3q'/>";
return str + $"$ {ch:N}";
}
else
{
return $"${ch:N}";
}
}
public static string getTrackEvenName()
{
string event_ = ADEventTrack.Event;