Esempio n. 1
0
 public UIElement(String name, Sprite image, Vector2 position)
 {
     _name = name;
     _image = image;
     _position = position;
     _rightClick = UIManager.RightClickEvent;
     _leftClick = UIManager.LeftClickEvent;
     _image.Position = _position;
     _size = _image.Size;
 }
Esempio n. 2
0
 static UIManager()
 {
     RightClickEvent = new RightClick();
     LeftClickEvent = new LeftClick();
 }