2024-03-20 19:58:18 +08:00
|
|
|
using Framework;
|
2024-07-03 14:07:54 +08:00
|
|
|
using Gameplay.Guide;
|
2024-10-30 18:52:22 +08:00
|
|
|
using Gameplay.Level;
|
|
|
|
|
|
2024-03-20 19:58:18 +08:00
|
|
|
public partial class TeamManager
|
|
|
|
|
{
|
2024-05-21 14:46:37 +08:00
|
|
|
private UIWindow _curFightPosterUI;
|
2024-10-10 17:34:13 +08:00
|
|
|
public async void OpenFightPosterUI(uint uid = 0)
|
2024-03-20 19:58:18 +08:00
|
|
|
{
|
2024-10-10 17:34:13 +08:00
|
|
|
// if (GetSingleCharacByUid(uid).Type != SingleTeamCharacterInfo.CharacType.Hero)
|
|
|
|
|
// {
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
2024-05-21 14:46:37 +08:00
|
|
|
|
|
|
|
|
if (_curFightPosterUI == null)
|
|
|
|
|
{
|
2024-10-30 18:52:22 +08:00
|
|
|
// if(uid != 0)
|
|
|
|
|
// _curFightPosterUI = await UIPosterAndSkillInfoController.Open(uid);
|
|
|
|
|
// else
|
|
|
|
|
// _curFightPosterUI = await UIPosterAndSkillInfoController.Open();
|
|
|
|
|
// return;
|
2024-10-10 17:34:13 +08:00
|
|
|
if(uid != 0)
|
2024-10-30 18:52:22 +08:00
|
|
|
LevelManager.Instance.SkillInfoOpen(uid);
|
2024-10-10 17:34:13 +08:00
|
|
|
else
|
2024-10-30 18:52:22 +08:00
|
|
|
LevelManager.Instance.SkillInfoOpen(0);
|
2024-05-21 14:46:37 +08:00
|
|
|
}
|
2024-10-30 18:52:22 +08:00
|
|
|
|
2024-03-20 19:58:18 +08:00
|
|
|
}
|
|
|
|
|
|
2024-10-30 18:52:22 +08:00
|
|
|
public void CloseFightPosterUI(bool isRelease = false)
|
2024-03-20 19:58:18 +08:00
|
|
|
{
|
2024-10-30 18:52:22 +08:00
|
|
|
// if (isRelease)
|
|
|
|
|
// {
|
|
|
|
|
// UIManager.Instance.CloseWindow(UINameConst.UIFightPoster);
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
// if (_curFightPosterUI != null)
|
|
|
|
|
// {
|
|
|
|
|
// _curFightPosterUI.HideWindow();
|
|
|
|
|
// }
|
|
|
|
|
LevelManager.Instance.SkillInfoClose(isRelease);
|
|
|
|
|
|
|
|
|
|
//_curFightPosterUI = null;
|
2024-03-20 19:58:18 +08:00
|
|
|
}
|
|
|
|
|
}
|