Example #1
0
        public AssetImageStack OpenImageStack(string name, string idiom, string role, int width, int height)
        {
            var newItem = new AssetImageStack(m_Path, name, authorId);

            AddItem(newItem, idiom, role, width, height);
            return(newItem);
        }
Example #2
0
        // Checks if a image stack with given name exists and returns it if it does.
        // Otherwise, creates a new image stack.
        public AssetImageStack OpenImageStack(string name)
        {
            var item = GetExistingItemWithType <AssetImageStack>(name);

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

            var imageStack = new AssetImageStack(m_Path, name, authorId);

            m_Items.Add(imageStack);
            return(imageStack);
        }