修改提交shop修改
This commit is contained in:
@@ -10,6 +10,45 @@ namespace NBF
|
||||
protected override void OnShow()
|
||||
{
|
||||
// Model.SetData(ItemInfo);
|
||||
InputManager.Instance.On(this);
|
||||
}
|
||||
|
||||
#region UI输入事件
|
||||
|
||||
[InputInvoke(InputDef.UI.Up, UIInputButtonShowMode.BottomLeft)]
|
||||
private void OnUp()
|
||||
{
|
||||
// ItemList.List.Selector.Up();
|
||||
// ChangeListSelected();
|
||||
}
|
||||
|
||||
[InputInvoke(InputDef.UI.Down, UIInputButtonShowMode.BottomLeft)]
|
||||
private void OnDown()
|
||||
{
|
||||
// ItemList.List.Selector.Down();
|
||||
}
|
||||
[InputInvoke(InputDef.UI.Enter, UIInputButtonShowMode.BottomLeft, "购买")]
|
||||
private void OnApplySettings()
|
||||
{
|
||||
// var selectedItem = ItemList.List.Selector.SelectedItem;
|
||||
// if (selectedItem != null)
|
||||
// {
|
||||
// ItemList.List.InvokeClickItem(selectedItem);
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
[InputInvoke(InputDef.UI.Back, UIInputButtonShowMode.BottomRight)]
|
||||
private void OnBack()
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected override void OnHide()
|
||||
{
|
||||
InputManager.Instance.Off(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user