Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.RunOnPlugin<Prrovoss.Popups.ItemDroppedPopup>(plugin =>
- {
- var AncientDecorator = new TopLabelWithTitleDecorator(Hud)
- {
- BorderBrush = Hud.Render.CreateBrush(255, 183, 132, 21, 5),
- BackgroundBrush = Hud.Render.CreateBrush(200, 91, 55, 19, 0),
- TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, true, false, false),
- TitleFont = Hud.Render.CreateFont("tahoma", 6, 255, 180, 147, 109, true, false, false),
- };
- var PrimalDecorator = new TopLabelWithTitleDecorator(Hud)
- {
- BorderBrush = Hud.Render.CreateBrush(255, 183, 22, 32, 5),
- BackgroundBrush = Hud.Render.CreateBrush(200, 91, 55, 19, 0),
- TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, true, false, false),
- TitleFont = Hud.Render.CreateFont("tahoma", 6, 255, 180, 147, 109, true, false, false),
- };
- //sno (put null if not needed), itemQuality (put null if not needed), ancientRank (put null if not needed), hint, title, duration (in ms), custom decorator (ignore if not needed)
- plugin.Add(null, ItemQuality.Legendary, 1, "", "Ancient dropped", 9000, AncientDecorator);
- plugin.Add(null, ItemQuality.Legendary, 2, "", "Primal dropped", 15000, PrimalDecorator);
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement