IPlayerArmorySet interface question menu

These ads disappear when you log in.

Results 1 to 1 of 1
  1. #1
    kroggy's Avatar Member
    Reputation
    1
    Join Date
    Apr 2017
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)

    IPlayerArmorySet interface question

    I want to highlight BOTH the items and legendary gems that are part of an armory set.
    I got the items part working (mostly copy-pasta from elsewhere), but the gem part got me stuck.

    IPlayerArmorySet interface doesn't seem to provide a way to iterate the items saved in armory, so I can't just go over them and inspect what was socketed in them. Is it possible to expose that data @KJ?

    Here is what I have so far (just to give you an idea)

    Code:
    --- "plugins\\Default\\Inventory\\InventoryAndStashPlugin.cs"	
    +++ "plugins\\Default\\Inventory\\InventoryAndStashPlugin.cs"	
    @@ -7,6 +7,8 @@
     {
         public class InventoryAndStashPlugin : BasePlugin, IInGameTopPainter
         {
    +        public IFont ArmoryFont { get; set; }
    +        
             public IBrush ShadowBrush { get; set; }
             public IFont HoradricCacheFont { get; set; }
             public IBrush KeepBrush { get; set; }
    @@ -42,6 +44,8 @@
             {
                 base.Load(hud);
     
    +            ArmoryFont = Hud.Render.CreateFont("arial", 6, 192, 0, 0, 0, true, false, 160, 152, 240, 250, true);
    +            
                 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);
    @@ -100,6 +104,15 @@
                     DrawItemHoradricCache(item, rect);
                     DrawItemNotGood(item, rect);
                     DrawItemCanCubed(item, rect);
    +                DrawIsInArmory(item, rect);	
    +            }
    +        }
    +
    +        private void DrawIsInArmory(IItem item, System.Drawing.RectangleF rect) {
    +          var inSet = Hud.Game.Me.ArmorySets.Any(set => set.ContainsItem(item));
    +          if (inSet) {
    +            var textLayout = ArmoryFont.GetTextLayout("x");
    +            ArmoryFont.DrawText(textLayout, rect.Right - textLayout.Metrics.Width - 6, rect.Top + 1);
               }
             }

    These ads disappear when you log in.

Similar Threads

  1. [Question] How do I change Bag Interface?
    By Sabelo in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 05-11-2010, 12:08 PM
  2. Question-Interface editing
    By raddry in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 03-26-2010, 06:51 AM
  3. [Question]How do i change the interface button colors?
    By Razorgore in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 08-01-2009, 01:58 AM
  4. Question about WoW interface
    By wasted_whale in forum Community Chat
    Replies: 1
    Last Post: 05-13-2007, 12:42 AM
All times are GMT -5. The time now is 07:23 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search