// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // *.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 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() { Hud.GetPlugin().Enabled = false; Hud.TogglePlugin(false); Hud.RunOnPlugin(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 = null, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = 1.0f, }); }); } } }