Exemplo n.º 1
0
        // TextureManager
        public TextureManager()
        {
            Bundles = new TextureBundle[_UI.Settings.Texture_BundleCount];

            // default bundle
            Bundles[0] = new TextureBundle();
            Bundles[0].Add("Textures\\UI_Null", "null");
        }
Exemplo n.º 2
0
        // CreateBundle
        public int CreateBundle()
        {
            for (int i = 0; i < Bundles.Length; ++i)
            {
                if (Bundles[i] != null)
                {
                    continue;
                }

                Bundles[i] = new TextureBundle();

                return(i);
            }

            return(-1);
        }
Exemplo n.º 3
0
        // CreateBundle
        public int CreateBundle()
        {
            for ( int i = 0; i < Bundles.Length; ++i )
            {
            if ( Bundles[ i ] != null )
                continue;

            Bundles[ i ] = new TextureBundle();

            return i;
            }

            return -1;
        }
Exemplo n.º 4
0
        // TextureManager
        public TextureManager()
        {
            Bundles = new TextureBundle[ _UI.Settings.Texture_BundleCount ];

            // default bundle
            Bundles[ 0 ] = new TextureBundle();
            Bundles[ 0 ].Add( "Textures\\UI_Null", "null" );
        }