public Album(Vector3 position, Vector2 size, T[] items, AlbumOptions opts) : base(position, size, opts.Sprite, opts) { _clip = new Rect( position.x + opts.Border.x, position.y + opts.Border.y, size.x - opts.Border.x - opts.Border.z, size.y - opts.Border.y - opts.Border.w ); _opts = opts; this.CreateItems(items, opts.SelectedIndex); }
public Album(Rect bounds, float depth, T[] items, AlbumOptions opts) : this(new Vector3(bounds.x, bounds.y, depth), new Vector2(bounds.width, bounds.height), items, opts) { }