-
Member
-
Post Thanks / Like - 5 Thanks
-
Savvy ? 🐒
Not a bad idea, but it's doable without forking the whole inventory plugin.
-
Active Member
+1 for a steal by KJ for default plugin.
-
Active Member
Originally Posted by
JackCeparou
Not a bad idea, but it's doable without forking the whole inventory plugin.
And +1 for this idea!
-
Member
Originally Posted by
JackCeparou
Not a bad idea, but it's doable without forking the whole inventory plugin.
I know, but i secretly hope KJ will put it into Default Plugin *Hint*
-
Savvy ? 🐒
Originally Posted by
Grischu
I know, but i secretly hope KJ will put it into Default Plugin *Hint*
Ok
One remark so far :
PHP Code:
private void DrawItemArmorySet(IItem item, System.Drawing.RectangleF rect)
{
if (!ArmorySetEnabled) return;
var setstring = "";
foreach (IPlayerArmorySet set in Hud.Game.Me.ArmorySets)
{
if (set.ContainsItem(item))
{
setstring = "S";
}
}
if (!String.IsNullOrEmpty(setstring))
{
var textLayout = ArmorySetFont.GetTextLayout(setstring);
ArmorySetFont.DrawText(textLayout, rect.X + 2, rect.Bottom - rv / 35.0f - textLayout.Metrics.Height);
}
}
=>
PHP Code:
private void DrawItemArmorySet(IItem item, System.Drawing.RectangleF rect)
{
if (!ArmorySetEnabled) return;
if (!Hud.Game.Me.ArmorySets.Any(set => set.ContainsItem(item))) return;
var textLayout = ArmorySetFont.GetTextLayout("S");
ArmorySetFont.DrawText(textLayout, rect.X + 2, rect.Bottom - rv / 35.0f - textLayout.Metrics.Height);
}
-
Post Thanks / Like - 1 Thanks
madbmax (1 members gave Thanks to JackCeparou for this useful post)
-
Contributor
yep, it should be marked somehow which items are used in an armory build. good idea.
-
Member
-
Savvy ? 🐒
Originally Posted by
Grischu
I have done it in HoveredItemInfoPlugin.cs too, but there i have a problem. I only get 4 sets, not 5
Just tested, you are right, the set.ContainsItem(item) return always false on the 5th.
Also, the set detection seems to not work on amulet.
-
Savvy ? 🐒
A little placement issue with your current implementation (no clue how to resolve)
It overlap AncientRank on enchanted rings.
-
Member
I also don't know. Upper right corner is the cube decorator. This is a bad position too
-
Contributor
hm maybe a thin frame around the item?
edit
might look ugly for equipped items...
-
Contributor
instead maybe you can just draw a thin teal border around the item or a thin corner at lower left?
-
Member
-
Post Thanks / Like - 1 Thanks
bobbydigital12 (1 members gave Thanks to Grischu for this useful post)
-
Member
Nice! (I.e. your plugin, and the new position/design.)