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>(); }
public void setTexture(String path, bool flipY, bool flipX) { background = SpriteDrawer.LoadTexture(path, flipY, flipX); }