예제 #1
0
 public Button(RadioGroup group, LayoutSpec spec = null) : base(spec)
 {
     group.Add(this);
     _group        = group;
     Color         = Vector4.One;
     this.IsToggle = true;
 }
예제 #2
0
파일: View.cs 프로젝트: jpernst/GameStack
		public View (LayoutSpec spec) {
			_spec = spec ?? LayoutSpec.Empty;
			_children = new List<View>();
			this.Transform = Matrix4.Identity;
			this.Children = _children.AsReadOnly();
			this.ZDepth = 0.1f;
		}
예제 #3
0
 public View(LayoutSpec spec)
 {
     _spec          = spec ?? LayoutSpec.Empty;
     _children      = new List <View>();
     this.Transform = Matrix4.Identity;
     this.Children  = _children.AsReadOnly();
     this.ZDepth    = 0.1f;
 }
예제 #4
0
파일: Label.cs 프로젝트: Milstein/GameStack
 public Label(string text, BitmapFont font, LayoutSpec spec = null) : base(spec)
 {
     _text = new TextBlock(font, 0f, text);
     this.VerticalAlignment = VerticalAlignment.Middle;
 }
예제 #5
0
 public Button(LayoutSpec spec = null) : base(spec)
 {
     Color = Vector4.One;
 }
예제 #6
0
 public CanvasView(LayoutSpec spec) : base(spec)
 {
 }
예제 #7
0
파일: Button.cs 프로젝트: jpernst/GameStack
		public Button (RadioGroup group, LayoutSpec spec = null) : base(spec) {
			group.Add (this);
			_group = group;
			Color = Vector4.One;
		}
예제 #8
0
파일: Button.cs 프로젝트: jpernst/GameStack
		public Button (LayoutSpec spec = null) : base(spec) {
			Color = Vector4.One;
		}
예제 #9
0
		public ImageView (Sprite sprite, LayoutSpec spec = null) : base(spec) {
			this.Sprite = sprite;
			this.Color = Vector4.One;
		}
예제 #10
0
 public ImageView(Sprite sprite, LayoutSpec spec = null, bool fill = true) : base(spec)
 {
     this.Sprite = sprite;
     this.Color  = Vector4.One;
     this.Fill   = fill;
 }
예제 #11
0
파일: Label.cs 프로젝트: jpernst/GameStack
		public Label (string text, BitmapFont font, LayoutSpec spec = null) : base(spec) {
			_text = new TextBlock (font, 0f, text);
			this.VerticalAlignment = VerticalAlignment.Middle;
		}