internal PreloadMetaData(AssetMetaPath assetMetaPath, ICustomListItem customListItem, AssetTypeDefinition assetTypeDefinition) { AssetMetaPath = assetMetaPath; AssetTypeDefinition = assetTypeDefinition; ListName = customListItem.ListName; ListAuthor = customListItem.ListAuthor; _coverSprite = customListItem.ListCover; }
private async void SaberSelected(ICustomListItem item) { if (item is PreloadMetaData metaData) { _selectedTrailModel = await GetTrail(metaData); _onSelectionChanged?.Invoke(_selectedTrailModel); } }
private void SelectItem(ICustomListItem item) { if (CurrentSelectedItem == item) { return; } CurrentSelectedItem = item; OnItemSelected?.Invoke(item); }
public void Select(ICustomListItem item, bool scroll = true) { if (item == null || _listObjects == null) { return; } var idx = _listObjects.IndexOf(item); Select(idx, scroll); }
private void SaberSelected(ICustomListItem item) { _selectedComposition = (ModelComposition)item; }
private void SortSelected(ICustomListItem item) { _onSelectionChanged?.Invoke(((SortModeItem)item).SortMode); Exit(); }