i cant get the old plugin from "bm" runnin, dunno whats wrong. any1 can help me pls thx in andvance!!
PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using Turbo.Plugins.Default;
namespace Turbo.Plugins.bm
{
public class TrashGroundLabelPlugin : BasePlugin
{
public WorldDecoratorCollection TrashDecorator { get; set; }
public TrashGroundLabelPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
var shadowBrush = Hud.Render.CreateBrush(96, 0, 0, 0, 1);
TrashDecorator = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 255, 255, 0, 2),
Radius = 0.2f,
},
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 1),
Radius = 0.1f,
}
);
}
public override void PaintWorld(WorldLayer layer)
{
var monsters = Hud.Game.AliveMonsters;
foreach (var monster in monsters)
{
// trash
TrashDecorator.Paint(layer, monster, monster.FloorCoordinate, monster.SnoMonster.NameLocalized);
}
}
}
}