Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - using Turbo.Plugins.Default;
 - namespace Turbo.Plugins.Psycho
 - {
 - public class PrimalAncientDecoratorPlugin : BasePlugin, IInGameWorldPainter
 - {
 - public WorldDecoratorCollection PrimalAncientDecorator { get; set; }
 - public PrimalAncientDecoratorPlugin()
 - {
 - Enabled = true;
 - }
 - public override void Load(IController hud)
 - {
 - base.Load(hud);
 - PrimalAncientDecorator = new WorldDecoratorCollection(
 - new GroundCircleDecorator(Hud)
 - {
 - Brush = Hud.Render.CreateBrush(192, 255, 140, 0, -3),
 - Radius = 2.2f,
 - RadiusTransformator = new StandardPingRadiusTransformator(Hud, 500),
 - },
 - new GroundLabelDecorator(Hud)
 - {
 - BackgroundBrush = Hud.Render.CreateBrush(160, 255, 140, 0, 0),
 - BorderBrush = Hud.Render.CreateBrush(160, 0, 0, 0, -1),
 - TextFont = Hud.Render.CreateFont("tahoma", 7, 255, 0, 0, 0, true, false, false)
 - },
 - new MapShapeDecorator(Hud)
 - {
 - ShapePainter = new RotatingTriangleShapePainter(Hud),
 - Brush = Hud.Render.CreateBrush(255, 255, 120, 0, 3),
 - ShadowBrush = Hud.Render.CreateBrush(96, 0, 0, 0, 1),
 - Radius = 11,
 - RadiusTransformator = new StandardPingRadiusTransformator(Hud, 333),
 - });
 - }
 - public void PaintWorld(WorldLayer layer)
 - {
 - var items = Hud.Game.Items;
 - foreach (var item in items)
 - {
 - var ancientRank = item.AncientRank;
 - if (ancientRank >= 1)
 - {
 - PrimalAncientDecorator.Paint(layer,item,item.FloorCoordinate,string.Empty);
 - }
 - }
 - }
 - }
 - }
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment