修改bug
This commit is contained in:
@@ -586,7 +586,30 @@ namespace BingoBrain
|
||||
return $"{currency102:N}";
|
||||
}
|
||||
}
|
||||
public static string Get102Str_new(decimal currency102 = -1)
|
||||
{
|
||||
if (currency102 == -1)
|
||||
{
|
||||
currency102 = PreferencesMgr.Instance.Currency102;
|
||||
}
|
||||
|
||||
if (IsGiftSwitch())
|
||||
{
|
||||
if (isRDExchangeMode())
|
||||
{
|
||||
return $"{currency102:N}";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $"${currency102:N}";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
currency102 = (int)currency102;
|
||||
return $"{currency102:N0}";
|
||||
}
|
||||
}
|
||||
public static T GetConfig<T>()
|
||||
{
|
||||
return ConfigSystem.GetConfig<T>();
|
||||
@@ -1635,7 +1658,7 @@ namespace BingoBrain
|
||||
}
|
||||
public static bool isRDExchangeMode()
|
||||
{
|
||||
|
||||
return false;//zhushi
|
||||
return SaveData.GetSaveobject().ExchangeModeToggle == 1;
|
||||
}
|
||||
public static string getDesByKey(string key)
|
||||
@@ -1647,8 +1670,8 @@ namespace BingoBrain
|
||||
string str = ConfigSystem.GetConfig<ExchangeDesModel>().dataList.FirstOrDefault(data => data.des_key == key)?.Mode_1 ?? "";
|
||||
if (str != "")
|
||||
{
|
||||
str = str.Replace("<img1>", "<img src='ui://jq2t9glpqbo98'/>")
|
||||
.Replace("<img2>", "<img src='ui://jq2t9glpt9w7c3'/>");
|
||||
str = str.Replace("<img1>", "<img src='ui://pmf3wbji112epi7'/>")
|
||||
.Replace("<img2>", "<img src='ui://o9974uc5t9w7c3'/>");
|
||||
}
|
||||
return str;
|
||||
}
|
||||
@@ -1661,7 +1684,7 @@ namespace BingoBrain
|
||||
{
|
||||
if (GameHelper.isRDExchangeMode())
|
||||
{
|
||||
string str = "<img src='ui://jq2t9glpqbo98'/>";
|
||||
string str = "<img src='ui://pmf3wbji112epi7'/>";
|
||||
return str + $" {ch:N0}";
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user