Пример #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");
        }
Пример #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);
        }
Пример #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;
        }
Пример #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" );
        }