示例#1
0
 public Container(Texture2D backgroundTexture, Vector2 position, Constants.ViewLayer layer, Constants.ViewContainerLayout layout, bool visible)
     : base(position, backgroundTexture.Width, backgroundTexture.Height, layer, visible)
 {
     Layout = layout;
     ChildViews = new List<View> ();
     if (backgroundTexture != null) {
         BackgroundSprite = new Sprite (backgroundTexture, new Vector2 (0, 0), layer);
         AddBackgroundSpriteAsChild ();
     }
 }
示例#2
0
 public Container(int width, int height, Vector2 position, Constants.ViewLayer layer, Constants.ViewContainerLayout layout)
     : base(position, width, height, layer, true)
 {
     Layout = layout;
     ChildViews = new List<View> ();
 }