Пример #1
0
 public UIElement(View v)
 {
     view       = v;
     margin     = new Vector2(5, 5);
     background = SpriteDrawer.LoadTexture("PNG\\UI\\metalPanel_blue.png", true, false);
     Width      = 200;
     Height     = 200;
     position   = new Vector2(0, 0);
     children   = new List <UIElement>();
 }
Пример #2
0
 public void setTexture(String path, bool flipY, bool flipX)
 {
     background = SpriteDrawer.LoadTexture(path, flipY, flipX);
 }