Item Source in Comparison Graph + Code

Topics: Retired
Feb 23, 2009 at 8:47 PM
Just a thought; When i use Rawr to look at possible upgrades i like to know where a perticular item drops without having to mouse-over it (that way i can see what i need to pvp for, or whether I should do Heroic X).

I appologise if this is not the right location for this (it didnt seem appropriate for a bug report)

I went in and played with the code a little bit and ended up with this:
ComparisonGraph.cs: Line 443:

//g.DrawString(item.Name, this.Font, brushItemNames, rectItemName, formatItemNames);
if (item.Item != null && item.Item.Id != 0)
  g.DrawString(item.Name + " (" +
    (item.Item.LocationInfo.Source == ItemSource.StaticDrop ?  // Make sure its a drop
      ((StaticDrop)item.Item.LocationInfo).Area :                         // List the name of the location if it is
      Enum.GetName(typeof(ItemSource), item.Item.LocationInfo.Source) // List the item source if its not
    ) + ")", this.Font, brushItemNames, rectItemName, formatItemNames);
else
  g.DrawString(item.Name, this.Font, brushItemNames, rectItemName, formatItemNames);  // in case its not an item
Coordinator
Feb 23, 2009 at 8:57 PM
Well, we'd have to do more to make short versions of source locations, and some item names are already quite long, but I do see the value in this. I'll see what we can do about it.