Code:
Hud.RunOnPlugin<ItemsPlugin>(plugin =>
{
plugin.EnableSpeakPrimal = true;
plugin.EnableSpeakPrimalSet = true;
// Disable "normal" item decorators.
plugin.LegendaryDecorator.Enabled = false;
plugin.SetDecorator.Enabled = false;
// Show ancient and primal items on mini map.
plugin.AncientDecorator.Decorators.Add(new MapLabelDecorator(Hud)
{
LabelFont = Hud.Render.CreateFont("tahoma", 6, 255, 235, 120, 0, true, false, false),
RadiusOffset = 14,
Up = true,
});
plugin.AncientSetDecorator.Decorators.Add(new MapLabelDecorator(Hud)
{
LabelFont = Hud.Render.CreateFont("tahoma", 6, 255, 0, 170, 0, true, false, false),
RadiusOffset = 14,
Up = true,
});
plugin.PrimalDecorator.Decorators.Add(new MapLabelDecorator(Hud)
{
LabelFont = Hud.Render.CreateFont("tahoma", 7, 255, 240, 20, 0, true, false, false),
RadiusOffset = 14,
Up = true,
});
plugin.PrimalSetDecorator.Decorators.Add(new MapLabelDecorator(Hud)
{
LabelFont = Hud.Render.CreateFont("tahoma", 7, 255, 240, 20, 0, true, false, false),
RadiusOffset = 14,
Up = true,
});
// Add ground circle for Death Breaths.
plugin.DeathsBreathDecorator.Add(new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(192, 102, 202, 177, -2),
Radius = 1.25f,
});
});