private void OnGUI() { if (Model.PreviewedArea != null) { if (SpritePreviewWindow.Extracted) { _opened = true; SpritePreviewWindow.DrawPreview(position, Model); Repaint(); } else if (_opened) { _opened = false; Close(); } } else if (_opened) { _opened = false; Close(); } }
public PreviewSpriteView(SpriteEditorProWindow model) : base(model) { _subWindow = new SpritePreviewWindow(model); }