Esempio n. 1
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            XWidth      = 0.84f;
            YHeight     = 0.63f;
            textBuilder = new StringBuilder();

            FillBrush    = Hud.Render.CreateBrush(255, 255, 255, 64, 2);
            OutlineBrush = Hud.Render.CreateBrush(255, 255, 255, 64, 2);
            Fader        = new StandardFader(hud, this);
        }
Esempio n. 2
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            TextFont     = Hud.Render.CreateFont("tahoma", 12, 150, 252, 126, 0, true, false, 150, 0, 0, 0, false); // 100
            OutlineBrush = Hud.Render.CreateBrush(30, 252, 126, 0, 3);
            Fader        = new StandardFader(hud, this);
            midX         = Hud.Window.Size.Width / 2;
            midY         = Hud.Window.Size.Height / 2;

            ZeiMiniMapDecorator = new WorldDecoratorCollection(
                new MapShapeDecorator(Hud)
            {
                Brush        = Hud.Render.CreateBrush(70, 252, 126, 0, 1),
                ShapePainter = new CircleShapePainter(Hud),
                Radius       = 50,
            }
                );


            MiniMapVisorDecorator = new WorldDecoratorCollection(
                new MapShapeDecorator(Hud)
            {
                Brush        = Hud.Render.CreateBrush(255, 255, 255, 255, 1),
                ShapePainter = new PlusShapePainter(Hud),
                Radius       = 10,
            },

                new MapShapeDecorator(Hud)
            {
                Brush        = Hud.Render.CreateBrush(255, 255, 255, 255, 1),
                ShapePainter = new CircleShapePainter(Hud),
                Radius       = 5,
            }
                );
        }