Esempio n. 1
0
        private void DrawIenum(SceneEntityDrawer drawer, IEnumerator <ISceneEntity> ienum)
        {
            while (ienum.MoveNext())
            {
                var entity = ienum.Current;
                // Apply Search
                if (!PassFilter(entity))
                {
                    continue;
                }

                EditorGUILayout.BeginHorizontal();
                {
                    drawer.DrawEntity(entity);
                    _database.UpdateEntity(entity);
                }
                EditorGUILayout.EndHorizontal();

                if (!drawer.AreDetailsOpen(entity))
                {
                    continue;
                }
                EditorGUILayout.BeginHorizontal();
                {
                    GUILayout.Space(22);
                    EditorGUILayout.BeginVertical();
                    {
                        _screenshotDrawer.DrawSnapshot(entity);
                        EditorGUILayout.Space();
                    }
                    EditorGUILayout.EndVertical();
                }
                EditorGUILayout.EndHorizontal();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Checks the components.
 /// </summary>
 protected override void CheckComponents()
 {
     if (_drawer == null)
     {
         _drawer = new SceneEntityDrawer(PANEL_TITLE);
     }
     if (_favDrawer == null)
     {
         _favDrawer = new SceneEntityDrawer(PANEL_TITLE);
     }
     if (_screenshotDrawer == null)
     {
         _screenshotDrawer = new ScreenshotDrawer();
     }
     if (_scrolls == null)
     {
         _scrolls = new ScrollableContainer(PANEL_TITLE, true);
     }
     if (_folders == null)
     {
         _folders = new FolderContainer(PANEL_TITLE, true);
     }
     if (_database == null)
     {
         _database = SceneDatabaseProvider.GetDatabase(this);
     }
 }
 /// <summary>
 /// Checks the components.
 /// </summary>
 protected override void CheckComponents()
 {
     if (_drawer == null)
         _drawer = new SceneEntityDrawer (PANEL_TITLE);
     if (_screenshotDrawer == null)
         _screenshotDrawer = new ScreenshotDrawer ();
     if (_database == null)
         _database = SceneDatabaseProvider.GetDatabase(this);
     if (_scrolls == null)
         _scrolls = new ScrollableContainer (PANEL_TITLE, true);
 }
        /// <summary>
        /// Checks the components.
        /// </summary>
        protected override void CheckComponents()
        {
            if (_sceneDrawer == null)
                _sceneDrawer = new SceneEntityDrawer (PANEL_TITLE);
            if (_favSceneDrawer == null)
                _favSceneDrawer = new SceneEntityDrawer (PANEL_TITLE);
            if (_gameplayDrawer == null)
                _gameplayDrawer = new GameplayControlsDrawer ();
            if (_screenshotDrawer == null)
                _screenshotDrawer = new ScreenshotDrawer ();
            if (_historyDrawer == null)
                _historyDrawer = new SceneHistoryDrawer ();

            if (_database == null)
                _database = SceneDatabaseProvider.GetDatabase (this);
            if (_scrolls == null)
                _scrolls = new ScrollableContainer (PANEL_TITLE, true);
            if (_folders == null)
                _folders = new FolderContainer (PANEL_TITLE, true);
        }
        private void DrawIenum(SceneEntityDrawer drawer, IEnumerator<ISceneEntity> ienum)
        {
            while (ienum.MoveNext ()) {
                var entity = ienum.Current;
                // Apply Search
                if (!PassFilter (entity))
                    continue;

                EditorGUILayout.BeginHorizontal ();
                {
                    drawer.DrawEntity (entity);
                    _database.UpdateEntity (entity);
                }
                EditorGUILayout.EndHorizontal ();

                if (!drawer.AreDetailsOpen (entity))
                    continue;
                EditorGUILayout.BeginHorizontal ();
                {
                    GUILayout.Space (22);
                    EditorGUILayout.BeginVertical ();
                    {
                        _screenshotDrawer.DrawSnapshot (entity);
                        EditorGUILayout.Space ();
                    }
                    EditorGUILayout.EndVertical ();
                }
                EditorGUILayout.EndHorizontal ();
            }
        }