切换标签页
This commit is contained in:
@@ -35,6 +35,8 @@ namespace NBF
|
||||
}
|
||||
|
||||
Menu.OnTabChange += ChangeTab;
|
||||
|
||||
List.OnClickItem += OnClickItem;
|
||||
}
|
||||
|
||||
protected override void OnShow()
|
||||
@@ -51,6 +53,13 @@ namespace NBF
|
||||
List.SetListData(listData.ListData);
|
||||
}
|
||||
|
||||
|
||||
private void OnClickItem(object item)
|
||||
{
|
||||
if(item is not ShopGearItem shopGearItem) return;
|
||||
Log.Info($"click item ={shopGearItem.GearData.title}");
|
||||
}
|
||||
|
||||
private void OnClick(GComponent btn)
|
||||
{
|
||||
// if (btn == BtnClose)
|
||||
|
||||
Reference in New Issue
Block a user