Disable ground decorator's from character class decorators menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Saah's Avatar Member
    Reputation
    4
    Join Date
    Sep 2013
    Posts
    62
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Disable ground decorator's from character class decorators

    Can i disable only the ground decorators from HeroClasses in the "Default/Players/OtherPlayersPlugin.cs" using the plugin customization?

    It has sections for each HeroClass like this:
    Code:
                DecoratorByClass.Add(HeroClass.Barbarian, new WorldDecoratorCollection(
                    new MapLabelDecorator(Hud)
                    {
                        LabelFont = Hud.Render.CreateFont("tahoma", 6f, 200, 255, 60, 60, false, false, 128, 0, 0, 0, true),
                        Up = true,
                    },
                    new GroundLabelDecorator(Hud)
                    {
                        BackgroundBrush = groundLabelBackgroundBrush,
                        BorderBrush = Hud.Render.CreateBrush(200, 250, 10, 10, 1),
                        TextFont = Hud.Render.CreateFont("tahoma", 6f, 200, 255, 60, 60, false, false, 128, 0, 0, 0, true),
                    }
                    ));
    tried both:
    Hud.GetPlugin<OtherPlayersPlugin>().HeroClass.Barbarian.ToggleDecorators<GroundLabelDecorator>(false);
    and
    Hud.GetPlugin<OtherPlayersPlugin>().Barbarian.ToggleDecorators<GroundLabelDecorator>(false);

    both cause exceptions, like:
    Code:
    ...PluginCustomizationPlugin.cs(34,40) : error CS1061: 'OtherPlayersPlugin' does not contain a definition for 'HeroClass' and no accessible extension method 'HeroClass' accepting a first argument of type 'OtherPlayersPlugin' could be found (are you missing a using directive or an assembly reference?)
    even after adding all namespaces, that the OtherPlayersPlugin.cs file was using.

    usually i just disable whole plugins and use my edited copies, but it is recommended to customize something like that using the "PluginCustomizationPlugin.cs", rather than using potencially outdated copy of a default plugin.
    Last edited by Saah; 07-20-2020 at 12:12 PM.

    Disable ground decorator's from character class decorators

Similar Threads

  1. Replies: 4
    Last Post: 01-31-2019, 12:17 PM
  2. [Selling] Several WoW EU MoP accounts to choose from(many classes) - REPPED SELLER/CHEAP
    By Dartexx in forum WoW-EU Account Buy Sell Trade
    Replies: 13
    Last Post: 11-13-2013, 12:21 PM
  3. [Reskin] Character Class Icons to Class Crests
    By lunasaiden in forum WoW Advanced Model Edits
    Replies: 1
    Last Post: 01-04-2012, 11:08 AM
  4. Disable thread rating option from its maker
    By Xel in forum Suggestions
    Replies: 4
    Last Post: 03-20-2009, 01:57 PM
  5. Possible to Prevent a Race or Class from Character Selection Screen?
    By kevinno in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 07-22-2008, 12:48 AM
All times are GMT -5. The time now is 09:47 PM. 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