public Dragbar(Game game, Point pos, int length, bool vert, dragged d) : base(game, new Rectangle(pos.X, pos.Y, 13, length)) { OnLoad(null); vertical = vert; if (!vertical) { bounds = new Rectangle(Bounds.Location, new Size(length, 13)); texture = new Rect(new Rectangle(bounds.X, bounds.Y + 8, bounds.Width, bounds.Height), Skin.skindict["hbar"]); } else { texture = new Rect(new Rectangle(bounds.X, bounds.Y, bounds.Width, bounds.Height), Skin.skindict["bar"]); } del = d; this.Length = length; }
public Dragbar(Game game, Point pos, int length, bool vert, dragged d) : base(game, new Rectangle(pos.X, pos.Y, 13, length)) { OnLoad(null); vertical = vert; if (!vertical) { bounds = new Rectangle(Bounds.Location, new Size(length, 13)); texture = new Rect(new Rectangle(bounds.X, bounds.Y + 8, bounds.Width, bounds.Height), Skin.skindict["hbar"]); } else { texture = new Rect(new Rectangle(bounds.X, bounds.Y, bounds.Width, bounds.Height), Skin.skindict["bar"]); } del = d; this.Length = length; }