主页面相关内容和快捷键修改
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
|
||||
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using FairyGUI;
|
||||
using NBC;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public partial class HomeMainPage : HomePageBase
|
||||
{
|
||||
|
||||
private void OnInited()
|
||||
{
|
||||
}
|
||||
@@ -22,15 +18,12 @@ namespace NBF
|
||||
|
||||
protected override void OnHide()
|
||||
{
|
||||
BottomMenu.OnBack -= OnBack;
|
||||
BottomMenu.OnEnter -= OnApplySettings;
|
||||
BottomMenu.UnUse();
|
||||
InputManager.OnUICanceled -= OnUICanceled;
|
||||
}
|
||||
|
||||
|
||||
private void OnUICanceled(string action)
|
||||
{
|
||||
if (!Panel.IsTop) return;
|
||||
if (action == InputDef.UI.SubPrev)
|
||||
{
|
||||
}
|
||||
@@ -47,18 +40,7 @@ namespace NBF
|
||||
|
||||
private void UseBottomMenu()
|
||||
{
|
||||
BottomMenu.OnBack += OnBack;
|
||||
BottomMenu.OnEnter += OnApplySettings;
|
||||
BottomMenu.Use();
|
||||
}
|
||||
|
||||
private void OnApplySettings()
|
||||
{
|
||||
}
|
||||
|
||||
private void OnBack()
|
||||
{
|
||||
UI.Inst.HideUI<HomePanel>();
|
||||
BottomMenu.Use(Panel);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user