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
+28 -28
View File
@@ -49,20 +49,20 @@ namespace LoveLegend
{
DOVirtual.DelayedCall(0.7f, () => { GameDispatcher.Instance.Dispatch(GameMsg.reset_game, args); });
InitView();
DOVirtual.DelayedCall(0.2f, () =>
{
if (GameHelper.GetLevel() - 1 < ConfigSystem.GetConfig<LevelUnlock>().Count&&GameHelper.IsGiftSwitch())
{
LevelUnlock levelUnlock_ = ConfigSystem.GetConfig<LevelUnlock>()[GameHelper.GetLevel() - 1];
if (levelUnlock_.LeveType != 0)
{
if (!DataMgr.LevelUnlockList.Value.Contains(GameHelper.GetLevel() - 1))
{
uiCtrlDispatcher.Dispatch(UICtrlMsg.UnlockLevelUI_Open, GameHelper.GetLevel() - 1);
}
}
}
});
// DOVirtual.DelayedCall(0.2f, () =>
// {
// if (GameHelper.GetLevel() - 1 < ConfigSystem.GetConfig<LevelUnlock>().Count&&GameHelper.IsGiftSwitch())
// {
// LevelUnlock levelUnlock_ = ConfigSystem.GetConfig<LevelUnlock>()[GameHelper.GetLevel() - 1];
// if (levelUnlock_.LeveType != 0)
// {
// if (!DataMgr.LevelUnlockList.Value.Contains(GameHelper.GetLevel() - 1))
// {
// uiCtrlDispatcher.Dispatch(UICtrlMsg.UnlockLevelUI_Open, GameHelper.GetLevel() - 1);
// }
// }
// }
// });
@@ -105,21 +105,21 @@ namespace LoveLegend
ui.text_level.text = stage;
DOVirtual.DelayedCall(0.2f, () =>
DOVirtual.DelayedCall(0.7f, () =>
{
ui.tips_node1.visible = true;
var open_bg = FXManager.Instance.SetFx<SkeletonAnimation>(ui.tips_node1, Fx_Type.fx_open_bg, ref closeCallback);
open_bg.state.SetAnimation(0, "animation", true);
ui.tips_node1.SetScale(1.25f, 1.25f);
ui.tips_node.visible = true;
var open_game = FXManager.Instance.SetFx<SkeletonAnimation>(ui.tips_node, Fx_Type.fx_open, ref closeCallback);
open_game.state.SetAnimation(0, "animation", false);
open_game.state.Complete += (a) =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.OpenGameUI_Close);
};
// ui.tips_node1.visible = true;
// var open_bg = FXManager.Instance.SetFx<SkeletonAnimation>(ui.tips_node1, Fx_Type.fx_open_bg, ref closeCallback);
// open_bg.state.SetAnimation(0, "animation", true);
// ui.tips_node1.SetScale(1.25f, 1.25f);
//
// ui.tips_node.visible = true;
// var open_game = FXManager.Instance.SetFx<SkeletonAnimation>(ui.tips_node, Fx_Type.fx_open, ref closeCallback);
// open_game.state.SetAnimation(0, "animation", false);
// open_game.state.Complete += (a) =>
// {
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.OpenGameUI_Close);
// };
});
}
}