Example #1
0
 public RichText(FontBase _font)
 {
     this._Text = new Text(_font)
     {
         TextColor = Color.Black, Content = "sup"
     };
 }
Example #2
0
        public Text(FontBase _font)
        {
            this.Font = _font;

            this.LockToGrid    = true;
            this.SmoothTexture = !(_font is PixelFont);

            this.Texture = new ImageSource(1, 1);
        }
Example #3
0
        public CollapseGroup(FontBase _font, string _name, params Entity[] _children)
        {
            this.Interfacial = true;
            this.Contents    = _children;

            this.Graphics.Add(this.Text = new Text(_font)
            {
                Content = _name, Z = 1
            });
        }
Example #4
0
        public override void OnInitialization()
        {
            base.OnInitialization();

            this.Parent.Background = Color.Black;

            this.Scale = Meth.Min(this.Parent.Resolution.X / 960.0, this.Parent.Resolution.Y / 480.0);

            this.Children.Add(this._Sides = new Rack[] { new Rack(this.Parent.FixedResolution)
                                                         {
                                                             Position = new Vector(-75, -75)
                                                         }, new Rack(this.Parent.FixedResolution)
                                                         {
                                                             Position = new Vector(75, -75), Scale = new Vector(-1, 1)
                                                         } });
            this.Children.Add(this._Middle = new Gear(this.Parent.FixedResolution)
            {
                X = -1
            });

            this.Graphics.Add(this._Cutoffs = new Rectangle[] { new Rectangle(-80, 70, 160, 200)
                                                                {
                                                                    Color = Color.Black, Z = 1
                                                                }, new Rectangle(-80, -70, 160, -200)
                                                                {
                                                                    Color = Color.Black, Z = 1
                                                                } });

            FontBase f = FontBase.Consolas;

            f.CharSize = 150;
            for (int i = 0; i < 6; i++)
            {
                this.Graphics.Add(this._Letters[i] = new Text(f)
                {
                    Content = "ekanik"[i].ToString(), TextColor = Color.Black, Position = new Vector(50, -5) + new Vector(70, 0) * i
                });
            }

            this.Position = this.Parent.Resolution / 2;
        }