|
|
@@ -3,65 +3,68 @@ using Fort23.Core;
|
|
|
|
|
|
namespace Fort23.Mono
|
|
|
{
|
|
|
- [UIBinding(prefab = "CaveMainPanel" )]
|
|
|
- public partial class CaveMainPanel : UIPanel
|
|
|
- {
|
|
|
- private void Init()
|
|
|
- {
|
|
|
- isAddStack = true;
|
|
|
- IsShowAppBar = true;
|
|
|
- }
|
|
|
- protected override void AddEvent()
|
|
|
- {
|
|
|
+ [UIBinding(prefab = "CaveMainPanel")]
|
|
|
+ public partial class CaveMainPanel : UIPanel
|
|
|
+ {
|
|
|
+ private void Init()
|
|
|
+ {
|
|
|
+ isAddStack = true;
|
|
|
+ IsShowAppBar = true;
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
- protected override void DelEvent()
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
+ protected override void AddEvent()
|
|
|
+ {
|
|
|
+ }
|
|
|
|
|
|
- public override void Hide()
|
|
|
- {
|
|
|
- base.Hide();
|
|
|
- AudioManager.Instance.PlayBGM("xunlongduobao.wav");
|
|
|
- }
|
|
|
+ protected override void DelEvent()
|
|
|
+ {
|
|
|
+ }
|
|
|
|
|
|
- public override void AddButtonEvent()
|
|
|
- {
|
|
|
- Btn_DaoLv.onClick.AddListener(() => { ImmortalBondPanel.OpenPanel(); });
|
|
|
-
|
|
|
- Btn_XiuLian.onClick.AddListener(() =>
|
|
|
- {
|
|
|
- HeroInformationPanel.OpenPanel();
|
|
|
- });
|
|
|
+ public override void Hide()
|
|
|
+ {
|
|
|
+ base.Hide();
|
|
|
+ AudioManager.Instance.PlayBGM("xunlongduobao.wav");
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
-
|
|
|
- public override CTask GetFocus()
|
|
|
- {
|
|
|
- AppBarPanel.OpenPanel(this);
|
|
|
- TitlePanel.OpenPanel();
|
|
|
-
|
|
|
- if (PlayerGuideManager.Instance.GuideIsCanDo(6, 1))
|
|
|
- {
|
|
|
- PlayerGuideManager.Instance.NextGuide();
|
|
|
- }
|
|
|
-
|
|
|
- return base.GetFocus();
|
|
|
- }
|
|
|
+ public override void AddButtonEvent()
|
|
|
+ {
|
|
|
+ Btn_DaoLv.onClick.AddListener(() => { ImmortalBondPanel.OpenPanel(); });
|
|
|
|
|
|
- public override CTask LoseFocus()
|
|
|
- {
|
|
|
- // TitlePanel.ClosePanel();
|
|
|
- return base.LoseFocus();
|
|
|
- }
|
|
|
+ Btn_XiuLian.onClick.AddListener(() => { HeroInformationPanel.OpenPanel(); });
|
|
|
+ }
|
|
|
|
|
|
- public async static CTask<CaveMainPanel> OpenPanel()
|
|
|
- {
|
|
|
- CaveMainPanel heroInformationPanel = await UIManager.Instance.LoadAndOpenPanel<CaveMainPanel>(null);
|
|
|
- AudioManager.Instance.PlayBGM("dongfu.mp3");
|
|
|
- return heroInformationPanel;
|
|
|
- }
|
|
|
+ public override CTask GetFocus()
|
|
|
+ {
|
|
|
+ AppBarPanel.OpenPanel(this);
|
|
|
+ TitlePanel.OpenPanel();
|
|
|
|
|
|
- }
|
|
|
-}
|
|
|
+ if (PlayerGuideManager.Instance.GuideIsCanDo(6, 1))
|
|
|
+ {
|
|
|
+ PlayerGuideManager.Instance.NextGuide();
|
|
|
+ }
|
|
|
+
|
|
|
+ return base.GetFocus();
|
|
|
+ }
|
|
|
+
|
|
|
+ public override CTask LoseFocus()
|
|
|
+ {
|
|
|
+ // TitlePanel.ClosePanel();
|
|
|
+ return base.LoseFocus();
|
|
|
+ }
|
|
|
+
|
|
|
+ public async static CTask<CaveMainPanel> OpenPanel()
|
|
|
+ {
|
|
|
+ CaveMainPanel heroInformationPanel = await UIManager.Instance.LoadAndOpenPanel<CaveMainPanel>(null);
|
|
|
+ AudioManager.Instance.PlayBGM("dongfu.mp3");
|
|
|
+ return heroInformationPanel;
|
|
|
+ }
|
|
|
+
|
|
|
+ public async override CTask Close()
|
|
|
+ {
|
|
|
+ await UIManager.Instance.HideUIUIPanel<HeroInformationPanel>(isBreadcrumbBarPanel: false);
|
|
|
+ await UIManager.Instance.HideUIUIPanel<HeroBreakthroughPanel>(isBreadcrumbBarPanel: false);
|
|
|
+ await UIManager.Instance.HideUIUIPanel<SelectBreakthroughItemPanel>(isBreadcrumbBarPanel: false);
|
|
|
+ await base.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|