Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
        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;
        }