Code:
--- "plugins\\Default\\Inventory\\InventoryAndStashPlugin.cs"
+++ "plugins\\Default\\Inventory\\InventoryAndStashPlugin.cs"
@@ -7,6 +7,8 @@
{
public class InventoryAndStashPlugin : BasePlugin, IInGameTopPainter
{
+ public IFont ArmoryFont { get; set; }
+
public IBrush ShadowBrush { get; set; }
public IFont HoradricCacheFont { get; set; }
public IBrush KeepBrush { get; set; }
@@ -42,6 +44,8 @@
{
base.Load(hud);
+ ArmoryFont = Hud.Render.CreateFont("arial", 6, 192, 0, 0, 0, true, false, 160, 152, 240, 250, true);
+
ShadowBrush = Hud.Render.CreateBrush(175, 0, 0, 0, -1.6f);
HoradricCacheFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, false, false, false);
HoradricCacheFont.SetShadowBrush(128, 0, 0, 0, true);
@@ -100,6 +104,15 @@
DrawItemHoradricCache(item, rect);
DrawItemNotGood(item, rect);
DrawItemCanCubed(item, rect);
+ DrawIsInArmory(item, rect);
+ }
+ }
+
+ private void DrawIsInArmory(IItem item, System.Drawing.RectangleF rect) {
+ var inSet = Hud.Game.Me.ArmorySets.Any(set => set.ContainsItem(item));
+ if (inSet) {
+ var textLayout = ArmoryFont.GetTextLayout("x");
+ ArmoryFont.DrawText(textLayout, rect.Right - textLayout.Metrics.Width - 6, rect.Top + 1);
}
}