IPlayerArmorySet interface question menu

User Tag List

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

    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);
               }
             }

    IPlayerArmorySet interface question

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 08:21 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search