Advertisement
Guest User

pluginenablerdisabler.cs

a guest
May 22nd, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 KB | None | 0 0
  1. // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2. // *.txt files are not loaded automatically by TurboHUD
  3. // you have to change this file's extension to .cs to enable it
  4. // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  5.  
  6. using Turbo.Plugins.Default;
  7.  
  8. namespace Turbo.Plugins.User
  9. {
  10.  
  11. public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
  12. {
  13.  
  14. public PluginEnablerOrDisablerPlugin()
  15. {
  16. Enabled = true;
  17. }
  18.  
  19. public override void Load(IController hud)
  20. {
  21. base.Load(hud);
  22. }
  23.  
  24. // "Customize" methods are automatically executed after every plugin is loaded.
  25. // So these methods can use Hud.GetPlugin<class> to access the plugin instances' public properties (like decorators, Enabled flag, parameters, etc)
  26. // Make sure you test the return value against null!
  27. public void Customize()
  28. {
  29. // DANGER
  30. // DangerPlugin Customization
  31. Hud.RunOnPlugin<Resu.DangerPlugin>(plugin =>
  32. {
  33. // set to false; the items you don't want to see
  34. plugin.BloodSprings = true;
  35. plugin.DemonicForge = true;
  36. plugin.ShockTower = true;
  37. plugin.Desecrator = true;
  38. plugin.Thunderstorm = true;
  39. plugin.Plagued = true;
  40. plugin.Molten = true;
  41. plugin.ArcaneEnchanted = true;
  42. plugin.PoisonEnchanted = true;
  43. plugin.GasCloud = true; // (Ghom)
  44. plugin.SandWaspProjectile = true;
  45. plugin.MorluSpellcasterMeteorPending = true;
  46. plugin.DemonMine = true;
  47. plugin.PoisonDeath = true;
  48. plugin.MoltenExplosion = true;
  49. plugin.Orbiter = true;
  50. plugin.GrotesqueExplosion = true;
  51. plugin.BetrayedPoisonCloud = true;
  52. });
  53. // End of DangerPlugin Customization
  54.  
  55.  
  56.  
  57. // ---------------------------------------------
  58. Hud.TogglePlugin<EliteMonsterAffixPlugin>(false);
  59. Hud.TogglePlugin<DangerousMonsterPlugin>(false);
  60.  
  61. // Skeletal Mage Singularity Essence Plugin (BM)
  62.  
  63. Hud.RunOnPlugin<User.Actors.SkeletalMageSingularityEssencePlugin>(plugin =>
  64. {
  65. //To disable the plugin in town: change to false
  66. plugin.ShowInTown = true;
  67.  
  68. //Value of your Reaper's Wraps: Health globes restore 25-30% of your primary resource
  69. plugin.ReapersWrapsResourceRestore = 30;
  70.  
  71. //Default position is under the feet of the player
  72. //plugin.XPos = Hud.Window.Size.Width * 0.5f; // 0.5f
  73. plugin.YPos = Hud.Window.Size.Height * 0.49f; // 0.5f, lower value = move to top of screen.
  74. });
  75.  
  76. // ---------------------------------------------
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. Hud.RunOnPlugin<ItemsPlugin>(plugin =>
  84. {
  85. plugin.LegendaryDecorator.Decorators.Add(new MapLabelDecorator(Hud)
  86. {
  87. LabelFont = Hud.Render.CreateFont("tahoma", 6, 255, 235, 120, 0, false, false, false),
  88. RadiusOffset = 14,
  89. Up = true,
  90. });
  91. plugin.SetDecorator.Decorators.Add(new MapLabelDecorator(Hud)
  92. {
  93. LabelFont = Hud.Render.CreateFont("tahoma", 6, 255, 0, 170, 0, false, false, false),
  94. RadiusOffset = 14,
  95. Up = true,
  96. });
  97. plugin.AncientDecorator.Decorators.Add(new MapLabelDecorator(Hud)
  98. {
  99. LabelFont = Hud.Render.CreateFont("tahoma", 6, 255, 235, 120, 0, true, false, false),
  100. RadiusOffset = 14,
  101. Up = true,
  102. });
  103. plugin.AncientSetDecorator.Decorators.Add(new MapLabelDecorator(Hud)
  104. {
  105. LabelFont = Hud.Render.CreateFont("tahoma", 6, 255, 0, 170, 0, true, false, false),
  106. RadiusOffset = 14,
  107. Up = true,
  108. });
  109. plugin.PrimalDecorator.Decorators.Add(new MapLabelDecorator(Hud)
  110. {
  111. LabelFont = Hud.Render.CreateFont("tahoma", 7, 255, 240, 20, 0, true, false, false),
  112. RadiusOffset = 14,
  113. Up = true,
  114. });
  115. plugin.PrimalSetDecorator.Decorators.Add(new MapLabelDecorator(Hud)
  116. {
  117. LabelFont = Hud.Render.CreateFont("tahoma", 7, 255, 240, 20, 0, true, false, false),
  118. RadiusOffset = 14,
  119. Up = true,
  120. });
  121.  
  122. });
  123.  
  124. Hud.TogglePlugin<TopExperienceStatistics>(false);
  125.  
  126. // turn on MultiplayerExperienceRangePlugin
  127. // Hud.TogglePlugin<MultiplayerExperienceRangePlugin>(false);
  128.  
  129. // turn off sell darkening
  130. Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
  131.  
  132. // disable arcane affix label
  133. //Hud.GetPlugin<EliteMonsterAffixPlugin>().AffixDecorators.Remove(MonsterAffix.Arcane);
  134.  
  135. // override an elite affix's text
  136. //Hud.GetPlugin<EliteMonsterAffixPlugin>().CustomAffixNames.Add(MonsterAffix.Desecrator, "DES");
  137.  
  138. // Plauged & Desecrator Removal
  139. Hud.GetPlugin<EliteMonsterSkillPlugin>().PlaguedDecorator.Enabled = false;
  140. Hud.GetPlugin<EliteMonsterSkillPlugin>().DesecratorDecorator.Enabled = false;
  141. Hud.GetPlugin<EliteMonsterSkillPlugin>().MoltenDecorator.Enabled = false;
  142.  
  143. //Hud.TogglePlugin<ExplosiveMonsterPlugin>(false);
  144. //Hud.GetPlugin<Inferno.Monsters.MonsterCirclePlugin>().RareMinionDecorator.Enabled= false;
  145. //Hud.GetPlugin<Inferno.Monsters.MonsterCirclePlugin>().RareMinionDecorator.Enabled= false;
  146.  
  147.  
  148.  
  149. //Hud.RunOnPlugin<GlobePlugin>(plugin =>
  150. // {
  151. // plugin.RiftOrbDecorator.Add(new GroundCircleDecorator(Hud)
  152. // {
  153. // Brush = Hud.Render.CreateBrush(255, 240, 120, 240, 3),
  154. // Radius = 1.5f
  155. // });
  156. // });
  157. Hud.RunOnPlugin<ItemsPlugin>(plugin =>
  158. {
  159. plugin.DeathsBreathDecorator.Add(new GroundCircleDecorator(Hud)
  160. {
  161. Brush = Hud.Render.CreateBrush(192, 102, 202, 177, -2),
  162. Radius = 1.25f,
  163. });
  164. });
  165. Hud.RunOnPlugin<OculusPlugin>(plugin =>
  166. {
  167. plugin.Decorator.Add(new GroundCircleDecorator(Hud)
  168.  
  169. {
  170. Brush = Hud.Render.CreateBrush(244, 220, 97, 0, -2),
  171. Radius = 10.0f,
  172. });
  173. });
  174.  
  175. // Oculus minimap
  176. Hud.RunOnPlugin<OculusPlugin>(plugin =>
  177. {
  178. plugin.Decorator.Decorators.Add(new MapShapeDecorator(Hud)
  179. {
  180. Brush = Hud.Render.CreateBrush(255, 128, 255, 0, 2),
  181. Radius = 10.0f,
  182. ShapePainter = new CircleShapePainter(Hud),
  183. });
  184. });
  185.  
  186.  
  187. }
  188.  
  189. }
  190.  
  191. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement