Пример #1
0
        public AssetImageSet OpenImageSet(string name, string idiom, string role, int width, int height)
        {
            var newItem = new AssetImageSet(m_Path, name, authorId);

            AddItem(newItem, idiom, role, width, height);
            return(newItem);
        }
Пример #2
0
        // Checks if an imageset with given name exists and returns it if it does.
        // Otherwise, creates a new image set.
        public AssetImageSet OpenImageSet(string name)
        {
            var item = GetExistingItemWithType <AssetImageSet>(name);

            if (item != null)
            {
                return(item);
            }

            var imageset = new AssetImageSet(m_Path, name, authorId);

            m_Items.Add(imageset);
            return(imageset);
        }
Пример #3
0
 public void SetReference(string name)
 {
     m_Imageset       = null;
     m_ReferencedName = name;
 }
Пример #4
0
 internal AssetImageStackLayer(string assetCatalogPath, string name, string authorId) : base(name, authorId)
 {
     m_Path     = Path.Combine(assetCatalogPath, name + ".imagestacklayer");
     m_Imageset = new AssetImageSet(m_Path, "Content", authorId);
 }