コード例 #1
0
 internal PreloadMetaData(AssetMetaPath assetMetaPath, ICustomListItem customListItem, AssetTypeDefinition assetTypeDefinition)
 {
     AssetMetaPath       = assetMetaPath;
     AssetTypeDefinition = assetTypeDefinition;
     ListName            = customListItem.ListName;
     ListAuthor          = customListItem.ListAuthor;
     _coverSprite        = customListItem.ListCover;
 }
コード例 #2
0
        private async void SaberSelected(ICustomListItem item)
        {
            if (item is PreloadMetaData metaData)
            {
                _selectedTrailModel = await GetTrail(metaData);

                _onSelectionChanged?.Invoke(_selectedTrailModel);
            }
        }
コード例 #3
0
 private void SelectItem(ICustomListItem item)
 {
     if (CurrentSelectedItem == item)
     {
         return;
     }
     CurrentSelectedItem = item;
     OnItemSelected?.Invoke(item);
 }
コード例 #4
0
ファイル: CustomList.cs プロジェクト: WhyCade/SaberFactoryV2
        public void Select(ICustomListItem item, bool scroll = true)
        {
            if (item == null || _listObjects == null)
            {
                return;
            }
            var idx = _listObjects.IndexOf(item);

            Select(idx, scroll);
        }
コード例 #5
0
 private void SaberSelected(ICustomListItem item)
 {
     _selectedComposition = (ModelComposition)item;
 }
コード例 #6
0
 private void SortSelected(ICustomListItem item)
 {
     _onSelectionChanged?.Invoke(((SortModeItem)item).SortMode);
     Exit();
 }