Ejemplo n.º 1
0
        public override void Draw(float deltaTime)
        {
            Font temp = FeDraw.Font;

            FeDraw.Font = Font;

            FeDraw.SetHAlign(HAlign);
            FeDraw.SetVAlign(VAlign);

            FeDraw.TextExt(Text, Position, Color);

            FeDraw.Font = temp;
        }
Ejemplo n.º 2
0
        public override void DrawGUI(float deltaTime)
        {
            Vector2 pos = Position - Entity.Scene.MainCamera.Position;

            Font temp = FeDraw.Font;

            FeDraw.Font = Font;

            FeDraw.SetHAlign(HAlign);
            FeDraw.SetVAlign(VAlign);

            FeDraw.TextExt(Text, pos, Color);

            FeDraw.Font = temp;
        }
Ejemplo n.º 3
0
        public override void DrawGUI(float deltaTime)
        {
            base.DrawGUI(deltaTime);

            FeDraw.Rect(0, 0, FeGame.Width, FeGame.Height, true);

            FeDraw.SetHAlign(FeDraw.HAlign.Left);
            FeDraw.SetVAlign(FeDraw.VAlign.Top);
            FeDraw.Text("This is GUI text", new Vector2(-FeGame.Width / 2f, -FeGame.Height / 2f));


            FeDraw.SetHAlign(FeDraw.HAlign.Centre);
            FeDraw.SetVAlign(FeDraw.VAlign.Centre);
            FeDraw.Text("Hi there :D", new Vector2(0, 24));
        }