initialize() public method

public initialize ( Table table, Skin skin ) : void
table Nez.UI.Table
skin Skin
return void
Example #1
0
        void cacheTransformInspector()
        {
            // add Transform separately
            var transformInspector = new InspectorList(_entity.transform);

            transformInspector.initialize();
            _inspectors.Add(transformInspector);
        }
Example #2
0
        void cacheTransformInspector()
        {
            // add Transform separately
            var transformInspector = new InspectorList(_entity.transform);

            transformInspector.initialize(_table, _skin, kLeftCellWidth);
            _inspectors.Add(transformInspector);
        }
Example #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);
        }
Example #4
0
 void cacheTransformInspector()
 {
     // add Transform separately
     var transformInspector = new InspectorList( _entity.transform );
     transformInspector.initialize( _table, _skin );
     _inspectors.Add( transformInspector );
 }
Example #5
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;
        }