Пример #1
0
        public Textbox(string pName) : base(pName)
        {
            Font           = Font.Create(UIManager.DefaultFontFamily, UIManager.DefaultFontSize, UIManager.DefaultFontColor, Game.Graphics);
            Font.Alignment = Alignments.Leading;

            Background = SolidColorBrush.Create(Color.Gray);
            Cursor     = Pen.Create(UIManager.DefaultFontColor, 1);
        }
Пример #2
0
        public ToggleButton(string pName, UIElement pContent) : base(pName)
        {
            AddChild(pContent);

            NonToggledColor = Color.Gray;
            ToggledColor    = Color.DarkGray;

            _background = SolidColorBrush.Create(NonToggledColor);
            Border      = Pen.Create(Color.Yellow, 2);
            _padding    = new Thickness(3);
        }
Пример #3
0
 public Checkbox(string pName) : base(pName)
 {
     Background = SolidColorBrush.Create(Color.Gray);
     Foreground = Pen.Create(Color.Black, 2);
 }
Пример #4
0
 public DebugRenderSystem(IGraphicsAdapter pAdapter) : base(typeof(ColliderComponent))
 {
     _adapter   = pAdapter;
     DebugBoxes = Pen.Create(Color.Aqua, 1);
 }