Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- // *.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()
- {
- Hud.TogglePlugin <ParagonCapturePlugin> (false);
- Hud.GetPlugin<InventoryAndStashPlugin>().LooksGoodDisplayEnabled = false;
- Hud.GetPlugin<InventoryAndStashPlugin>().DefinitelyBadDisplayEnabled = false;
- Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement