Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // by StormReaver
- namespace Turbo.Plugins._SR.Items
- {
- using SharpDX.Direct2D1;
- using System.Collections.Generic;
- using System.Linq;
- using Turbo.Plugins.Default;
- public class SR_BulKathosWeddingBandPlugin : BasePlugin, IInGameWorldPainter
- {
- public WorldDecoratorCollection BKWeddingBandDecorator { get; set; }
- public SR_BulKathosWeddingBandPlugin()
- {
- Enabled = true;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- // Bul-Kathos Wedding Band Range Circle
- BKWeddingBandDecorator = new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(220, 220, 50, 50, 1.5f, DashStyle.Dash),
- Radius = 12, // tested in game
- });
- }
- // draws only for me
- public void PaintWorld(WorldLayer layer)
- {
- var playerMe = Hud.Game.Me;
- if (playerMe.Powers.BuffIsActive(364340, 0))
- {
- BKWeddingBandDecorator.Paint(layer, playerMe, playerMe.FloorCoordinate, null);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment