container for a Component/PostProcessor/Transform and all of its inspectable properties
Esempio n. 1
0
        void cacheTransformInspector()
        {
            // add Transform separately
            var transformInspector = new InspectorList(_entity.transform);

            transformInspector.initialize();
            _inspectors.Add(transformInspector);
        }
Esempio n. 2
0
        void CacheTransformInspector()
        {
            // add Transform separately
            var transformInspector = new InspectorList(_entity.Transform);

            transformInspector.Initialize(_table, _skin, kLeftCellWidth);
            _inspectors.Add(transformInspector);
        }
Esempio n. 3
0
        /// <summary>
        /// attempts to find a cached version of the InspectorList and if it cant find one it will create a new one
        /// </summary>
        /// <returns>The or create inspector list.</returns>
        /// <param name="comp">Comp.</param>
        InspectorList getOrCreateInspectorList(object comp)
        {
            var inspector = _inspectors.Where(i => i.target == comp).FirstOrDefault();

            if (inspector == null)
            {
                inspector = new InspectorList(comp);
                inspector.initialize();
                _inspectors.Add(inspector);
            }

            return(inspector);
        }
Esempio n. 4
0
        /// <summary>
        /// attempts to find a cached version of the InspectorList and if it cant find one it will create a new one
        /// </summary>
        /// <returns>The or create inspector list.</returns>
        /// <param name="comp">Comp.</param>
        InspectorList GetOrCreateInspectorList(object comp)
        {
            var inspector = _inspectors.Where(i => i.Target == comp).FirstOrDefault();

            if (inspector == null)
            {
                inspector = new InspectorList(comp);
                inspector.Initialize(_table, _skin, kLeftCellWidth);
                _inspectors.Add(inspector);
            }

            return(inspector);
        }
Esempio n. 5
0
 void cacheTransformInspector()
 {
     // add Transform separately
     var transformInspector = new InspectorList( _entity.transform );
     transformInspector.initialize( _table, _skin );
     _inspectors.Add( transformInspector );
 }
Esempio n. 6
0
        /// <summary>
        /// attempts to find a cached version of the InspectorList and if it cant find one it will create a new one
        /// </summary>
        /// <returns>The or create inspector list.</returns>
        /// <param name="comp">Comp.</param>
        InspectorList getOrCreateInspectorList( object comp )
        {
            var inspector = _inspectors.Where( i => i.target == comp ).FirstOrDefault();
            if( inspector == null )
            {
                inspector = new InspectorList( comp );
                inspector.initialize( _table, _skin );
                _inspectors.Add( inspector );
            }

            return inspector;
        }