public UserInterface(GraphicsDevice graphics) { Device = graphics; spriteBatch = new SpriteBatch(Device); buffer = new List <Control>(); actors = new InputActorCollection(); globalGestures = new Dictionary <Type, List <IGesturePair> >(); enableInput = true; visible = true; drawOrder = 100; enabled = true; updateOrder = 0; Root = new Control(this); Root.SetPoint(Points.TopLeft, 0, 0); Root.SetPoint(Points.BottomRight, 0, 0); }
public UserInterface(GraphicsDevice graphics) { Device = graphics; _spriteBatch = new SpriteBatch(Device); _buffer = new List<Control>(); _actors = new InputActorCollection(); _globalGestures = new Dictionary<Type, List<IGesturePair>>(); EnableInput = true; _visible = true; _drawOrder = 100; _enabled = true; _updateOrder = 0; Root = new Control(this); Root.SetPoint(Points.TopLeft, 0, 0); Root.SetPoint(Points.BottomRight, 0, 0); }