Change color of Elite Monster Affix menu

These ads disappear when you log in.

Results 1 to 2 of 2
  1. #1
    Jembo's Avatar Member
    Reputation
    1
    Join Date
    Nov 2018
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)

    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

    These ads disappear when you log in.

  2. #2
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins User Authenticator enabled
    Reputation
    2769
    Join Date
    Jul 2012
    Posts
    2,449
    Thanks G/R
    6/2440
    Trade Feedback
    0 (0%)
    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),
    });

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 09:09 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search