Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Credits
- * Thanks to Jacks' BossSkillsPlugin, i manage to create this using the very same template he created for adding my own Sno into this file.
- * Hope you don't mind me using your code, Jack.
- */
- using Turbo.Plugins.Default;
- using System.Collections.Generic;
- using System.Linq;
- using SharpDX.Direct2D1;
- namespace Turbo.Plugins.Everknown
- {
- public class BlazingGuardianDecoratorPlugin : BasePlugin, IInGameWorldPainter
- {
- public Dictionary<uint,WorldDecoratorCollection> SnoMapping { get; set; }
- public BlazingGuardianDecoratorPlugin()
- {
- Enabled = true;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- SnoMapping = new Dictionary<uint, WorldDecoratorCollection>();
- //Blazingpool snoID = 432 from Blazing Guardians
- SnoMapping.Add(432, new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud){
- //CreateBrush(R,G,B,?Opacity?,Stroke,Style)
- Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 2, DashStyle.Dash),
- Radius = 5f
- }
- /*
- new GroundLabelDecorator(Hud)
- {
- CountDownFrom = 15,
- TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true)
- },
- new GroundTimerDecorator(Hud)
- {
- CountDownFrom = 15,
- BackgroundBrushEmpty = hud.Render.CreateBrush(255,0,0,0,0),
- BackgroundBrushFill = hud.Render.CreateBrush(255,20,20,0,0),
- Radius = 5f
- }
- */
- ));
- }
- public void PaintWorld(WorldLayer layer)
- {
- var circleDecorator = Hud.Game.Actors.Where(a => SnoMapping.ContainsKey(a.SnoActor.Sno));
- foreach(var sno in circleDecorator)
- {
- SnoMapping[sno.SnoActor.Sno].Paint(layer, sno, sno.FloorCoordinate, string.Empty);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement