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);
        }
        // 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);
        }
 public void SetReference(string name)
 {
     m_Imageset       = null;
     m_ReferencedName = name;
 }
 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);
 }