コード例 #1
0
ファイル: Container.cs プロジェクト: fordream/Sunfish
 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
ファイル: Container.cs プロジェクト: fordream/Sunfish
 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> ();
 }