protected ResizeableBox NewBox(Vector2f pos, Vector2f size, Colour colour) { ResizeableBox box = new ResizeableBox(m_keyboard, size, null); box.Position = pos; box.backgroundColour = colour; items.Add(box); return box; }
private ResizeableBox makeBox(String title, BoundingBox box) { var rBox = new ResizeableBox(m_keyboard, new Vector2f(), null); rBox.backgroundColour = new Colour(1,0.2f,0.8f,1); rBox.Bounds = box.Clone; rBox.SetLabel(title); items.Add(rBox); return rBox; }
protected ResizeableBox NewBox(BoundingBox bb, Colour colour) { ResizeableBox box = new ResizeableBox(m_keyboard, bb.Size, null); box.Bounds = bb; box.backgroundColour = colour; items.Add(box); return box; }