public override void Load(IController hud) { base.Load(hud); var gargantuanBrush = Hud.Render.CreateBrush(222, 0, 255, 0, 2); GargantuansDecorators = new WorldDecoratorCollection( new GroundShapeDecorator(hud) { ShapePainter = WorldStarShapePainter.NewCross(Hud), Radius = 1f, Brush = gargantuanBrush, }, new GroundCircleDecorator(hud) { Radius = 1f, Brush = gargantuanBrush, }, new MapShapeDecorator(hud) { ShapePainter = new TriangleShapePainter(hud), Radius = 6f, Brush = Hud.Render.CreateBrush(255, 0, 255, 0, 1), } //, //new MapShapeDecorator(hud) //{ // ShapePainter = new CrossShapeFilter(hud), // Radius = 6f, // BarBrush = Hud.Render.CreateBrush(255, 0, 255, 0, 1), //} ); var zombieDogBrush = Hud.Render.CreateBrush(178, 0, 255, 0, 2); ZombiesDogsDecorators = new WorldDecoratorCollection( new GroundShapeDecorator(hud) { ShapePainter = WorldStarShapePainter.NewCross(Hud), Radius = 0.35f, Brush = gargantuanBrush, }, new GroundCircleDecorator(hud) { Radius = 0.35f, Brush = zombieDogBrush, }, new MapShapeDecorator(hud) { ShapePainter = new CrossShapePainter(hud), Radius = 1f, Brush = zombieDogBrush, } ); foreach (var mapShapeDecorator in ZombiesDogsDecorators.GetDecorators <MapShapeDecorator>()) { mapShapeDecorator.Enabled = false; } }
public override void Load(IController hud) { base.Load(hud); var warriorBrush = Hud.Render.CreateBrush(222, 0, 255, 0, 2); SkeletonWarriorsDecorators = new WorldDecoratorCollection( new GroundShapeDecorator(hud) { ShapePainter = WorldStarShapePainter.NewCross(Hud), Radius = 1f, Brush = warriorBrush, }, new GroundCircleDecorator(hud) { Radius = 1f, Brush = warriorBrush, }, new MapShapeDecorator(hud) { ShapePainter = new TriangleShapePainter(hud), Radius = 6f, Brush = Hud.Render.CreateBrush(255, 0, 255, 0, 1), } //, //new MapShapeDecorator(hud) //{ // ShapePainter = new CrossShapeFilter(hud), // Radius = 6f, // BarBrush = Hud.Render.CreateBrush(255, 0, 255, 0, 1), //} ); var mageBrush = Hud.Render.CreateBrush(178, 0, 255, 0, 2); SkeletonMagesDecorators = new WorldDecoratorCollection( new GroundShapeDecorator(hud) { ShapePainter = WorldStarShapePainter.NewCross(Hud), Radius = 0.65f, Brush = mageBrush, }, new GroundCircleDecorator(hud) { Radius = 0.65f, Brush = mageBrush, }, new MapShapeDecorator(hud) { ShapePainter = new CrossShapePainter(hud), Radius = 1f, Brush = mageBrush, } ); foreach (var mapShapeDecorator in SkeletonMagesDecorators.GetDecorators <MapShapeDecorator>()) { mapShapeDecorator.Enabled = false; } var archerBrush = Hud.Render.CreateBrush(178, 0, 255, 0, 2); SkeletonArchersDecorators = new WorldDecoratorCollection( new GroundShapeDecorator(hud) { ShapePainter = WorldStarShapePainter.NewCross(Hud), Radius = 0.65f, Brush = archerBrush, }, new GroundCircleDecorator(hud) { Radius = 0.65f, Brush = archerBrush, }, new MapShapeDecorator(hud) { ShapePainter = new CrossShapePainter(hud), Radius = 1f, Brush = archerBrush, } ); foreach (var mapShapeDecorator in SkeletonArchersDecorators.GetDecorators <MapShapeDecorator>()) { mapShapeDecorator.Enabled = false; } }