Akrosinos

SR_BulKathosWeddingBandPlugin

Aug 23rd, 2017
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.18 KB | None | 0 0
  1. // by StormReaver
  2.  
  3. namespace Turbo.Plugins._SR.Items
  4. {
  5.     using SharpDX.Direct2D1;
  6.     using System.Collections.Generic;
  7.     using System.Linq;
  8.     using Turbo.Plugins.Default;
  9.  
  10.     public class SR_BulKathosWeddingBandPlugin : BasePlugin, IInGameWorldPainter
  11.     {
  12.  
  13.         public WorldDecoratorCollection BKWeddingBandDecorator { get; set; }
  14.  
  15.        
  16.         public SR_BulKathosWeddingBandPlugin()
  17.         {
  18.             Enabled = true;
  19.         }
  20.        
  21.        
  22.         public override void Load(IController hud)
  23.         {
  24.             base.Load(hud);
  25.  
  26.             // Bul-Kathos Wedding Band Range Circle
  27.            
  28.             BKWeddingBandDecorator = new WorldDecoratorCollection(
  29.                 new GroundCircleDecorator(Hud)
  30.                 {
  31.                     Brush = Hud.Render.CreateBrush(220, 220, 50, 50, 1.5f, DashStyle.Dash),
  32.                     Radius = 12, // tested in game
  33.                 });
  34.                
  35.         }
  36.  
  37.  
  38.         // draws only for me
  39.         public void PaintWorld(WorldLayer layer)
  40.         {
  41.             var playerMe = Hud.Game.Me;
  42.             if (playerMe.Powers.BuffIsActive(364340, 0))
  43.             {
  44.                 BKWeddingBandDecorator.Paint(layer, playerMe, playerMe.FloorCoordinate, null);
  45.             }
  46.         }
  47.        
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment