修改bug

This commit is contained in:
2026-05-13 14:06:49 +08:00
parent 1260b9077a
commit f2395d0b06
20 changed files with 205 additions and 113 deletions
@@ -203,6 +203,7 @@ namespace BingoBrain
string val = $"{SaveData.GetSaveobject().saveingpot_ch:N}";
ui.text_lose.SetVar("num", val).FlushVars();
if (GameHelper.isRDExchangeMode()) ui.isRDExchangeMode.selectedIndex = 1;
// ui.text_lose.text = string.Format(ui.text_lose.text, SaveingPotHelper.getChString(SaveData.GetSaveobject().saveingpot_ch));
if (makeupTaskData.needShowAni)
{
@@ -247,14 +248,14 @@ namespace BingoBrain
if (SaveData.GetSaveobject().saveingpot_ch > SaveData.GetSaveobject().last_saveingpot_ch)
{
DOVirtual.Float(SaveData.GetSaveobject().last_saveingpot_ch, SaveData.GetSaveobject().saveingpot_ch, 1,
value => { ui.text_nowch.text = GameHelper.Get102Str((decimal)value); });
value => { ui.text_nowch.text = GameHelper.Get102Str_new((decimal)value); });
ske_pot.state.SetAnimation(0, "getcash", false);
ske_pot.state.Complete += (a) =>
{
ske_pot.state.SetAnimation(0, "edie", true);
};
}
else ui.text_nowch.text = GameHelper.Get102Str((decimal)SaveData.GetSaveobject().saveingpot_ch);
else ui.text_nowch.text = GameHelper.Get102Str_new((decimal)SaveData.GetSaveobject().saveingpot_ch);
SaveData.GetSaveobject().last_saveingpot_ch = SaveData.GetSaveobject().saveingpot_ch;
SaveData.saveDataFunc();
}
@@ -733,7 +734,16 @@ namespace BingoBrain
ui.com_task.text_orderid.text = makeupTaskData.orderID;
ui.com_task.text_task_title.SetVar("ad", vo.ad_need.ToString()).FlushVars();
ui.com_task.text_ads.text = $"{makeupTaskData.videoCount}/{vo.ad_need}";
ui.com_task.text_payer.SetVar("amt", makeupTaskData.GetAmountStr()).FlushVars();
if (GameHelper.isRDExchangeMode())
{
ui.com_task.text_payer.SetVar("amt", "<img src='ui://pmf3wbji112epi7'/>" + makeupTaskData.amount).FlushVars();
}
else
{
ui.com_task.text_payer.SetVar("amt", makeupTaskData.GetAmountStr()).FlushVars();
}
if (makeupTaskData.videoCount >= vo.ad_need)
{
@@ -912,7 +922,7 @@ namespace BingoBrain
for (int i = 0; i < btn_list.Count; i++)
{
btn_list[i].text_ch.text = "$" + (int)makeup_list[i].item_need;
btn_list[i].text_ch.text = (GameHelper.isRDExchangeMode() ? "<img src='ui://pmf3wbji112epi7'/>" : "") + GameHelper.Get102Str_new(makeup_list[i].item_need);
Debug.Log(makeup_list[i].item_need);
btn_list[i].index.selectedIndex = i;
if (i >= saveingpot_history.Count)
@@ -987,11 +997,11 @@ namespace BingoBrain
{
if (GameHelper.isRDExchangeMode())
{
text_list[i].text = "congratulations,[color=#ad4800][size=36] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]<img src='ui://o9974uc5t9w7c3'/>" + broad_list[i][1] + "[/color]";
text_list[i].text = "congratulations,[color=#ad4800][size=29] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]<img src='ui://o9974uc5t9w7c3'/>" + broad_list[i][1] + "[/color]";
}
else
{
text_list[i].text = "congratulations,[color=#ad4800][size=36] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]$" + broad_list[i][1] + "[/color]";
text_list[i].text = "congratulations,[color=#ad4800][size=29] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]$" + broad_list[i][1] + "[/color]";
}
}
});
@@ -1015,11 +1025,11 @@ namespace BingoBrain
broad_list.Add(new string[2] { config_name_list[name_index], config_money_list[money_index] });
if (GameHelper.isRDExchangeMode())
{
text_list[i].text = "congratulations,[color=#ad4800][size=36] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]<img src='ui://o9974uc5t9w7c3'/>" + broad_list[i][1] + "[/color]";
text_list[i].text = "congratulations,[color=#ad4800][size=29] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]<img src='ui://o9974uc5t9w7c3'/>" + broad_list[i][1] + "[/color]";
}
else
{
text_list[i].text = "congratulations,[color=#ad4800][size=36] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]$" + broad_list[i][1] + "[/color]";
text_list[i].text = "congratulations,[color=#ad4800][size=29] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]$" + broad_list[i][1] + "[/color]";
}
}
}