Ejemplo n.º 1
0
        private void DrawItemLooksGood(IItem item, System.Drawing.RectangleF rect)
        {
            if (!LooksGoodDisplayEnabled)
            {
                return;
            }
            if ((item.Location != ItemLocation.Inventory) && (item.Location != ItemLocation.Stash))
            {
                return;
            }

            if (!item.Unidentified && (item.KeepDecision == ItemKeepDecision.LooksGood) && !item.IsInventoryLocked)
            {
                if (item.Location == ItemLocation.Stash)
                {
                    if (item.SnoItem.Kind == ItemKind.gem)
                    {
                        return;
                    }
                    if (item.SnoItem.Kind == ItemKind.craft)
                    {
                        return;
                    }
                    if (item.SnoItem.Kind == ItemKind.uberstuff)
                    {
                        return;
                    }
                    if (item.SnoItem.MainGroupCode == "riftkeystone")
                    {
                        return;
                    }
                    if (item.SnoItem.MainGroupCode == "gems_unique")
                    {
                        return;
                    }
                    if (item.SnoItem.MainGroupCode == "consumable")
                    {
                        return;
                    }
                    if (item.SnoItem.MainGroupCode == "horadriccache")
                    {
                        return;
                    }
                }

                Hud.Render.TurnOnAliasing();
                try
                {
                    ShadowBrush.DrawLine((float)Math.Round(rect.X + (rv / 10.0f)) - 2, (float)Math.Round(rect.Y + (rv / 10.0f)) + 2, (float)Math.Round(rect.X + (rv / 3.0f)) + 1, (float)Math.Round(rect.Y + (rv / 10.0f)) + 2, 2);
                    ShadowBrush.DrawLine((float)Math.Round(rect.X + (rv / 10.0f)), (float)Math.Round(rect.Y + (rv / 10.0f)) + 2 - 2, (float)Math.Round(rect.X + (rv / 10.0f)), (float)Math.Round(rect.Y + (rv / 3.0f)) + 2 + 1, 2);
                    KeepBrush.DrawLine((float)Math.Round(rect.X + (rv / 10.0f)) - 1, (float)Math.Round(rect.Y + (rv / 10.0f)) + 2, (float)Math.Round(rect.X + (rv / 3.0f)), (float)Math.Round(rect.Y + (rv / 10.0f)) + 2);
                    KeepBrush.DrawLine((float)Math.Round(rect.X + (rv / 10.0f)), (float)Math.Round(rect.Y + (rv / 10.0f)) + 2 - 1, (float)Math.Round(rect.X + (rv / 10.0f)), (float)Math.Round(rect.Y + (rv / 3.0f)) + 2);
                }
                finally
                {
                    Hud.Render.TurnOffAliasing();
                }
            }
        }
Ejemplo n.º 2
0
        private void DrawItemNotGood(IItem item, System.Drawing.RectangleF rect)
        {
            if (!NotGoodDisplayEnabled && !DefinitelyBadDisplayEnabled)
            {
                return;
            }
            if ((item.Location != ItemLocation.Inventory) && (item.Location != ItemLocation.Stash))
            {
                return;
            }

            var locked = item.IsInventoryLocked;

            if (!locked && !item.Unidentified && (item.KeepDecision != ItemKeepDecision.LooksGood))
            {
                if (NotGoodDisplayEnabled)
                {
                    DarkenBrush.DrawRectangle(rect.X, rect.Y, rect.Width, rect.Height);
                }

                if (DefinitelyBadDisplayEnabled && item.KeepDecision == ItemKeepDecision.DefinitelyBad)
                {
                    Hud.Render.TurnOnAliasing();
                    try
                    {
                        ShadowBrush.DrawLine((float)Math.Round(rect.X + (rv / 10.0f)) - 2, (float)Math.Round(rect.Y + (rv / 10.0f)) + 2, (float)Math.Round(rect.X + (rv / 3.0f)) + 1, (float)Math.Round(rect.Y + (rv / 10.0f)) + 2, 2);
                        ShadowBrush.DrawLine((float)Math.Round(rect.X + (rv / 10.0f)), (float)Math.Round(rect.Y + (rv / 10.0f)) + 2 - 2, (float)Math.Round(rect.X + (rv / 10.0f)), (float)Math.Round(rect.Y + (rv / 3.0f)) + 2 + 1, 2);
                        ForceSellBrush.DrawLine((float)Math.Round(rect.X + (rv / 10.0f)) - 1, (float)Math.Round(rect.Y + (rv / 10.0f)) + 2, (float)Math.Round(rect.X + (rv / 3.0f)), (float)Math.Round(rect.Y + (rv / 10.0f)) + 2);
                        ForceSellBrush.DrawLine((float)Math.Round(rect.X + (rv / 10.0f)), (float)Math.Round(rect.Y + (rv / 10.0f)) + 2 - 1, (float)Math.Round(rect.X + (rv / 10.0f)), (float)Math.Round(rect.Y + (rv / 3.0f)) + 2);
                    }
                    finally
                    {
                        Hud.Render.TurnOffAliasing();
                    }
                }
            }
        }