public ImageAsset(SystemImageAsset name) { this.filename = AssetManager.GetSystemFileName(name); AssetManager.LoadTextureFromAssembly(this.filename, true); ImageSize imageSize = AssetManager.GetImageSize(name); this.width = imageSize.Width; this.height = imageSize.Height; }
internal static ImageSize GetImageSize(SystemImageAsset name) { return(AssetManager.imageAssetSize[name]); }
internal static string GetSystemFileName(SystemImageAsset name) { return(AssetManager.imageAssetFilename[name]); }
internal static NinePatchMargin GetNinePatchMargin(SystemImageAsset name) { return(AssetManager.imageAssetNinePatchMargin[name]); }
internal static Texture2D GetTexture(SystemImageAsset name) { return(AssetManager.GetTexture(AssetManager.imageAssetFilename[name])); }