fix:1、UI更换(全部更换完)

This commit is contained in:
2026-04-27 10:11:52 +08:00
parent 7c23d255e6
commit db90a6e485
141 changed files with 994 additions and 1344 deletions
+17 -17
View File
@@ -163,23 +163,23 @@ namespace LoveLegend
Debug.Log(delayTime);
Debug.Log("/////////////////6");
ui.step.selectedIndex = 1;
var anim_bg = FXManager.Instance.SetFx<SkeletonAnimation>(ui.GetChild("bg_parent") as GGraph, Fx_Type.fx_end_bg, ref closeCallback);
// var anim_bg = FXManager.Instance.SetFx<SkeletonAnimation>(ui.GetChild("bg_parent") as GGraph, Fx_Type.fx_end_bg, ref closeCallback);
if (successData_.IsWin)
{
anim_bg.state.SetAnimation(0, "win", false);
anim_bg.state.Complete += (trackEntry) =>
{
anim_bg.state.SetAnimation(0, "win_stop", true);
};
// anim_bg.state.SetAnimation(0, "win", false);
// anim_bg.state.Complete += (trackEntry) =>
// {
// anim_bg.state.SetAnimation(0, "win_stop", true);
// };
var fireworks = FXManager.Instance.SetFx<SkeletonAnimation>(ui.GetChild("congra_parent") as GGraph, Fx_Type.fx_win, ref closeCallback);
fireworks.state.SetAnimation(0, "out", true);
var coin = FXManager.Instance.SetFx<SkeletonAnimation>(ui.GetChild("coin_parent") as GGraph, Fx_Type.fx_wins, ref closeCallback);
coin.state.SetAnimation(0, "animation", true);
coin.state.Complete += (trackEntry) =>
{
coin.state.SetAnimation(0, "animation2", true);
};
// var coin = FXManager.Instance.SetFx<SkeletonAnimation>(ui.GetChild("coin_parent") as GGraph, Fx_Type.fx_wins, ref closeCallback);
// coin.state.SetAnimation(0, "animation", true);
// coin.state.Complete += (trackEntry) =>
// {
// coin.state.SetAnimation(0, "animation2", true);
// };
if (SaveData.GetSaveObject().LargeRewardNum < ConfigSystem.GetCommonConf().FreeClaims)
((btn_claim3)ui.btn_mult).state.selectedIndex = 1;
@@ -217,11 +217,11 @@ namespace LoveLegend
}
else
{
anim_bg.state.SetAnimation(0, "lose", false);
anim_bg.state.Complete += (trackEntry) =>
{
anim_bg.state.SetAnimation(0, "lose_stop", true);
};
// anim_bg.state.SetAnimation(0, "lose", false);
// anim_bg.state.Complete += (trackEntry) =>
// {
// anim_bg.state.SetAnimation(0, "lose_stop", true);
// };
ui.btn_restart.SetClick(() =>
{