1 using System.Collections.Generic;
3 using SiliconStudio.Assets.Compiler;
4 using SiliconStudio.Core.IO;
5 using SiliconStudio.Paradox.UI.Data;
7 namespace SiliconStudio.
Paradox.Assets.UIImage
12 internal class UIImageGroupCompiler : ImageGroupCompiler<UIImageGroupAsset, UIImageInfo>
16 base.Compile(context, urlInStorage, assetAbsolutePath, asset, result);
19 result.BuildSteps.Add(
new UIImageGroupCommand(urlInStorage,
new ImageGroupParameters<UIImageGroupAsset>(asset, context.Platform), SpriteToTextureIndex, SeparateAlphaTexture));
22 internal class UIImageGroupCommand : ImageGroupCommand<UIImageGroupAsset, UIImageInfo, UIImageGroupData, UIImageData>
24 public UIImageGroupCommand(
string url, ImageGroupParameters<UIImageGroupAsset> asset, Dictionary<UIImageInfo, int> imageToTextureIndex,
bool separateAlpha)
25 : base(url, asset, imageToTextureIndex, separateAlpha)
29 protected override void SetImageSpecificFields(UIImageInfo imageInfo,
UIImageData newImage)
31 base.SetImageSpecificFields(imageInfo, newImage);
33 newImage.Borders = imageInfo.Borders;
Data type for SiliconStudio.Paradox.UI.UIImage.
Result of a compilation of assets when using IAssetCompiler.Compile
The context used when compiling an asset in a Package.
bool HasErrors
Gets or sets a value indicating whether this instance has errors.
Defines a normalized file path. See UPath for details. This class cannot be inherited.