Пример #1
0
        private void DrawItemQuantity(IItem item, System.Drawing.RectangleF rect)
        {
            if ((item.Location != ItemLocation.Inventory) && (item.Location != ItemLocation.Stash))
            {
                return;
            }
            if (item.Quantity <= 1)
            {
                return;
            }

            var textLayout = QuantityFont.GetTextLayout(item.Quantity.ToString("D", CultureInfo.InvariantCulture));

            QuantityFont.DrawText(textLayout, rect.Right - rv / 20.0f - textLayout.Metrics.Width, rect.Bottom - rv / 70.0f - textLayout.Metrics.Height);
        }
Пример #2
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            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);
            KeepBrush      = Hud.Render.CreateBrush(255, 128, 255, 84, -1.6f);
            ForceSellBrush = Hud.Render.CreateBrush(255, 255, 0, 0, -1.6f);
            DarkenBrush    = Hud.Render.CreateBrush(178, 38, 38, 38, 0);

            AncientRankFont = Hud.Render.CreateFont("arial", 7, 255, 0, 0, 0, true, false, 220, 227, 153, 25, true);
            PrimalRankFont  = Hud.Render.CreateFont("arial", 7, 255, 0, 0, 0, true, false, 180, 255, 64, 64, true);

            SocketedLegendaryGemRankFont = Hud.Render.CreateFont("arial", 7, 255, 0, 0, 0, true, false, false);
            SocketedLegendaryGemRankFont.SetShadowBrush(128, 240, 240, 64, true);

            QuantityFont = Hud.Render.CreateFont("tahoma", 8, 255, 200, 200, 200, false, false, false);
            QuantityFont.SetShadowBrush(128, 0, 0, 0, true);

            InventoryLockBorderBrush = Hud.Render.CreateBrush(100, 0, 150, 200, -1.6f);
        }