private void SetSeekLogicAndSeekPreview() { _seekLogic.IsSeekInProgress = false; string previewPath = _resourceLoader.ContentList[_selectedTile].SeekPreviewPath; StoryboardReader seekPreviewReader = previewPath != null ? new StoryboardReader(previewPath) : null; StoryboardManager.GetInstance().SetSeekPreviewReader(seekPreviewReader, _seekLogic); }
private void ShowMenu(bool show) { if (show == _isMenuShown) { return; } if (!show) { StoryboardManager.GetInstance().UnloadTilePreview(); } _isMenuShown = show; DllImports.ShowMenu(_isMenuShown ? 1 : 0); }
public override unsafe void Push() { fixed(byte *p = _image.Pixels, name = GetBytes(_name), desc = GetBytes(_description)) { DllImports.SetTileData(new DllImports.TileData { tileId = _id, pixels = p, width = _image.Width, height = _image.Height, name = name, nameLen = _name.Length, desc = desc, descLen = _description.Length, format = (int)_image.Format, getStoryboardData = StoryboardManager.GetInstance().AddTile(_id) }); } }
public static StoryboardManager GetInstance() { return(_instance ?? (_instance = new StoryboardManager())); }