【军团】军团相关界面更新Home功能

main
chenyuqi 2025-04-10 18:07:58 +08:00
parent 7afeca5882
commit bb1685d2de
8 changed files with 33 additions and 13 deletions

View File

@ -240,8 +240,9 @@ public class UI_LegionCreatePanelController : UIWindow
private async void Home()
{
await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
GameStateManager.Instance.ChangeState(new GameStateMainScene());
// await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
// GameStateManager.Instance.ChangeState(new GameStateMainScene());
CommonUtils.HomeToCamp();
}
private void _OnAutoToggle(bool isOn)

View File

@ -387,8 +387,9 @@ public class UI_LegionInfoPanelController : UIWindow
private async void Home()
{
await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
GameStateManager.Instance.ChangeState(new GameStateMainScene());
// await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
// GameStateManager.Instance.ChangeState(new GameStateMainScene());
CommonUtils.HomeToCamp();
}
private void _OnDismissSuccess()

View File

@ -403,8 +403,13 @@ public class UI_LegionSquarePanelController : UIWindow
private async void Home()
{
await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
GameStateManager.Instance.ChangeState(new GameStateMainScene());
// await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
// GameStateManager.Instance.ChangeState(new GameStateMainScene());
// CommonUtils.ChangeUIScene(Framework.Constants.MAIN_SCENE_PATH);
// UIManager.Instance.CloseAllNormalExcept(UINameConst.UI_MainPanel);
// if (!UIManager.Instance.CheckWindowCreated(UINameConst.UI_MainPanel))
// await UI_MainPanelController.Open();
CommonUtils.HomeToCamp();
}
private void _OnSearchContentChange(string str)

View File

@ -254,8 +254,9 @@ public class UI_LegionBattleApplyController : UIWindow
private async void _OnHome()
{
//UIManager.Instance.CloseAllNormalExcept(UINameConst.UI_MainPanel);
await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
GameStateManager.Instance.ChangeState(new GameStateMainScene());
// await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
// GameStateManager.Instance.ChangeState(new GameStateMainScene());
CommonUtils.HomeToCamp();
}
private void _OnClickHelp()

View File

@ -143,7 +143,8 @@ public class UI_LegionBattleMercenaryApplyController : UIWindow
private void _OnClickHome()
{
LegionManager.Instance.Back2Camp();
//LegionManager.Instance.Back2Camp();
CommonUtils.HomeToCamp();
}
private void _OnTabApply(bool isOn)

View File

@ -375,8 +375,9 @@ public class UI_LegionBattleMercenarySquareController : UIWindow
private async void _OnHome()
{
//UIManager.Instance.CloseAllNormalExcept(UINameConst.UI_MainPanel);
await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
GameStateManager.Instance.ChangeState(new GameStateMainScene());
// await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
// GameStateManager.Instance.ChangeState(new GameStateMainScene());
CommonUtils.HomeToCamp();
}
private void _OnTabMercenary(bool isOn)
{

View File

@ -227,8 +227,9 @@ public class UI_LegionBattleTeamOrganizationController : UIWindow
private async void _OnHome()
{
//UIManager.Instance.CloseAllNormalExcept(UINameConst.UI_MainPanel);
await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
GameStateManager.Instance.ChangeState(new GameStateMainScene());
// await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
// GameStateManager.Instance.ChangeState(new GameStateMainScene());
CommonUtils.HomeToCamp();
}
private void _OnLegionBattleTeams()

View File

@ -187,6 +187,7 @@ public class UI_LegionBattleTeamOrganizeController : UIWindow
//BindButton(Button_JoinTeam, _OnClickJoin);
BindButton(Button_LockTeam, _OnClickLockTeam);
BindButton(Button_back, _OnClickClose);
BindButton(Button_Home, _OnHome);
BindButton(Button_ChangeTeam, _OnClickEdit);
BindButton(Button_WatchBattleField, _OnClickEnterBattle);
@ -256,6 +257,14 @@ public class UI_LegionBattleTeamOrganizeController : UIWindow
{
CloseWindow();
}
private async void _OnHome()
{
//UIManager.Instance.CloseAllNormalExcept(UINameConst.UI_MainPanel);
// await CommonUtils.CloseUIWithScene(UINameConst.UI_Camp);
// GameStateManager.Instance.ChangeState(new GameStateMainScene());
CommonUtils.HomeToCamp();
}
private async void _OnClickLockTeam()
{