Hello.
I'm struggling to make the CoE buff show under or on top of my character.
This is how my full pluginenabler file looks like:
HTML Code:
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// *.txt files are not loaded automatically by TurboHUD
// you have to change this file's extension to .cs to enable it
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
using Turbo.Plugins.Default;
namespace Turbo.Plugins.User
{
public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
{
public PluginEnablerOrDisablerPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
}
// "Customize" methods are automatically executed after every plugin is loaded.
// So these methods can use Hud.GetPlugin<class> to access the plugin instances' public properties (like decorators, Enabled flag, parameters, etc)
// Make sure you test the return value against null!
public void Customize()
{
// basic examples
Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
{
/*
Convention of Elements Ring cycle per class (4s each), corresponding IconIndex:
1 Arcane, 2 Cold, 3 Fire, 4 Holy, 5 Lightning, 6 Physical, 7 Poison
BARB (4): Cold, Fire, Lightning, Physical
CRUS (4): Fire, Holy, Lightning, Physical
MONK (5): Cold, Fire, Holy, Lightning, Physical
DH (4): Cold, Fire, Lightning, Physical
WD (4): Cold, Fire, Physical, Poison
WIZ (4): Arcane, Cold, Fire, Lightning
NEC (3): Cold, Physical, Poison
*/
// COE: Lightning only
plugin.RuleCalculator.Rules.Add(new BuffRule(430674) {
IconIndex = 5, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = 1.0f, });
});
// turn on MultiplayerExperienceRangePlugin
Hud.TogglePlugin<MultiplayerExperienceRangePlugin>(true);
// turn off sell darkening
Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
// override an elite affix's text
Hud.GetPlugin<EliteMonsterAffixPlugin>().CustomAffixNames.Add(MonsterAffix.Desecrator, "DES");
// turn off plagued
Hud.GetPlugin<EliteMonsterSkillPlugin>().PlaguedDecorator.Enabled = true;
}
I keep on getting exceptions. I really don't know what's wrong. I'm even using notepad++ to edit files.