Beispiel #1
0
        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;
        }
Beispiel #2
0
 internal static ImageSize GetImageSize(SystemImageAsset name)
 {
     return(AssetManager.imageAssetSize[name]);
 }
Beispiel #3
0
 internal static string GetSystemFileName(SystemImageAsset name)
 {
     return(AssetManager.imageAssetFilename[name]);
 }
Beispiel #4
0
 internal static NinePatchMargin GetNinePatchMargin(SystemImageAsset name)
 {
     return(AssetManager.imageAssetNinePatchMargin[name]);
 }
Beispiel #5
0
 internal static Texture2D GetTexture(SystemImageAsset name)
 {
     return(AssetManager.GetTexture(AssetManager.imageAssetFilename[name]));
 }