// TextureManager public TextureManager() { Bundles = new TextureBundle[_UI.Settings.Texture_BundleCount]; // default bundle Bundles[0] = new TextureBundle(); Bundles[0].Add("Textures\\UI_Null", "null"); }
// 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); }
// 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; }
// TextureManager public TextureManager() { Bundles = new TextureBundle[ _UI.Settings.Texture_BundleCount ]; // default bundle Bundles[ 0 ] = new TextureBundle(); Bundles[ 0 ].Add( "Textures\\UI_Null", "null" ); }