Change color of Elite Monster Affix menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Jembo's Avatar Active Member
    Reputation
    33
    Join Date
    Nov 2018
    Posts
    112
    Thanks G/R
    28/30
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Change color of Elite Monster Affix

    Hello, I am trying to find a way to change the color of several Elite Monster Affixes in a PluginEnablerOrDisablerPlugin.cs file rather than changing the \Default\Monsters\EliteMonsterAffixPlugin File
    When i run D3 it has the following (5) exections (see attached file).

    Hud.RunOnPlugin<EliteMonsterAffixPlugin>(plugin => {
    plugin.AffixDecorators = new Dictionary<MonsterAffix, WorldDecoratorCollection>();
    AffixDecorators.Add(MonsterAffix.FireChains, new WorldDecoratorCollection(
    new GroundLabelDecorator(Hud)
    {
    BorderBrush = importantBorderBrush,
    TextFont = importantLabelFont,
    BackgroundBrush = Hud.Render.CreateBrush(255, 170, 50, 0, 0),
    }
    ));
    });


    Is this a possible way? If not what could be a better option ?
    Attached Files Attached Files

    Change color of Elite Monster Affix
  2. #2
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins Purchaser Authenticator enabled
    Reputation
    3693
    Join Date
    Jul 2012
    Posts
    2,532
    Thanks G/R
    46/3335
    Trade Feedback
    0 (0%)
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    with this line you create a new list of affix decorators which means all pre-defined will be gone.
    plugin.AffixDecorators = new Dictionary<MonsterAffix, WorldDecoratorCollection>();

    To use the Dictionary<> class, you have to have this line just where the namespace starts:
    using System.Collections.Generic;

    Even if you fix that, this is wrong: AffixDecorators.Add(........) because it is not a variable there... the proper format is:
    plugin.AffixDecorators.Add(........)

    But in case you just want to replace one, you could use something like this instead of re-creating the whole dictionary:
    plugin.AffixDecorators[MonsterAffix.FireChains] = new WorldDecoratorCollection(
    new GroundLabelDecorator(Hud)
    {
    BorderBrush = .................................//create a new brush,
    TextFont = ............................. // create a new font,
    BackgroundBrush = Hud.Render.CreateBrush(255, 170, 50, 0, 0),
    });
    Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...

Similar Threads

  1. [Question] How to remove this? + how can i change color of ancients?
    By laurens362 in forum TurboHUD Support
    Replies: 1
    Last Post: 11-20-2017, 04:51 AM
  2. [Question]Is it possible to change color of Shadowbolt spell color?
    By Razorgore in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 08-01-2009, 04:33 AM
  3. Change the color of a Weapon? :)
    By Ryuzakisan in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 06-24-2007, 09:39 PM
  4. Is it possible to change the color of a bobber?
    By =sinister= in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 01-05-2007, 03:13 PM
  5. Can you change colors of stuff?
    By dirtywowgurrl in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 12-22-2006, 04:08 AM
All times are GMT -5. The time now is 10:57 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