Originally Posted by
PoeHudContrib
For Doragon and any other programmers: One feature I'd like to add is to only have the item alerter show items owned by you when it's on permanent allocation for the loot. That would make it easier to know whether I actually need to look around for loot before moving on. I looked at the entity components loaded for items while in group, and I don't see anything to indicate not lootable or otherwise. And I looked at the properties of the ground label element since it greys out when you can't loot it, but I don't see anything there. Maybe something in memory we're not loading that we could use?
ItemsOnGroundLabelElement.cs added new properties
Code:
public class ItemsOnGroundLabelElement : Element
{
private readonly Lazy<int> labelInfo;
public ItemsOnGroundLabelElement()
{
labelInfo = new Lazy<int>(GetLabelInfo);
}
....
private int GetLabelInfo()
{
if (Label.Address != 0)
{
return M.ReadInt(Label.Address + 0xC78);
}
return 0;
}
public bool CanPickUp
{
get { return labelInfo.Value == 0; }
}
public TimeSpan TimeLeft
{
get
{
if (!CanPickUp)
{
int futureTime = M.ReadInt(labelInfo.Value + 0x20);
return TimeSpan.FromMilliseconds(futureTime - Environment.TickCount);
}
return new TimeSpan();
}
}
public TimeSpan MaxTimeForPickUp
{
get
{
return !CanPickUp ? TimeSpan.FromMilliseconds(M.ReadInt(labelInfo.Value + 0x1C)) : new TimeSpan();
}
}