-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathIndicateMyselfPlugin.cs
38 lines (32 loc) · 1.04 KB
/
IndicateMyselfPlugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using Turbo.Plugins.Default;
namespace Turbo.Plugins.CB
{
public class IndicateMyselfPlugin : BasePlugin, IInGameWorldPainter
{
public WorldDecoratorCollection IndicateMyselfDecorator { get; set; }
public IndicateMyselfPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
IndicateMyselfDecorator = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud) {
Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 6.0f),
Radius = 0.3f
},
new GroundCircleDecorator(Hud) {
Brush = Hud.Render.CreateBrush(255,255,255, 255, 4.0f),
Radius = 0.7f
}
);
}
public void PaintWorld(WorldLayer layer)
{
if (Hud.Game.IsInTown) return;
var me = Hud.Game.Me;
IndicateMyselfDecorator.Paint(layer, me, me.FloorCoordinate, null);
}
} //Сlass
}