示例#1
0
 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();
     }
 }
示例#2
0
 public PreviewSpriteView(SpriteEditorProWindow model) : base(model)
 {
     _subWindow = new SpritePreviewWindow(model);
 }