Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using Turbo.Plugins.Default;
- namespace Turbo.Plugins.User
- {
- // This is my opinion how to make very minimal THUD gameplay with barebones essiential stuff avaialble in default plugins.
- public class MyMinimalPlugin : BasePlugin, ICustomizer
- {
- public MyMinimalPlugin() { Enabled = true; }
- /*
- * Disable Experience run stats display (in top center screen):
- * config\ui_default\ui_default_labels_run_stats.xml
- * line 30: <activator enabled="0" ...
- * line 39: <default enabled="0" ...
- *
- * Disable 3 damage numbers in player portrait:
- * config\ui_default\ui_default_main.xml
- line 64: <real_dps enabled="0" ...
- line 67: <run_dps enabled="0" ...
- line 70: <total_dmg enabled="0" ...
- */
- public void Customize()
- {
- // Setup original InventoryAndStashPlugin & Co.!
- Hud.RunOnPlugin<InventoryAndStashPlugin>(plugin =>
- {
- plugin.LooksGoodDisplayEnabled = false;
- plugin.NotGoodDisplayEnabled = false;
- plugin.DefinitelyBadDisplayEnabled = false;
- plugin.CanCubedEnabled = false;
- });
- Hud.TogglePlugin<HoveredItemInfoPlugin>(false);
- Hud.RunOnPlugin<MonsterRiftProgressionColoringPlugin>(plugin =>
- {
- // These are trash mobs and do not deserve separate color.
- plugin.Decorator2 = plugin.Decorator1;
- plugin.Decorator3 = plugin.Decorator1;
- });
- // Disable labels under monsters
- //--Hud.TogglePlugin<StandardMonsterPlugin>(false);
- Hud.TogglePlugin<EliteMonsterAffixPlugin>(false);
- Hud.TogglePlugin<DangerousMonsterPlugin>(false);
- Hud.TogglePlugin<ExplosiveMonsterPlugin>(false);
- // disable numbers over skillbar
- Hud.TogglePlugin<AttributeLabelListPlugin>(false);
- // disable latency numbers
- Hud.TogglePlugin<NetworkLatencyPlugin>(false);
- // disable elemental numbers under hp ball
- Hud.TogglePlugin<DamageBonusPlugin>(false);
- // turn off Experience Statistics on the right
- Hud.TogglePlugin<TopExperienceStatistics>(false);
- // Don't know if this draws anything but disable it anyway!
- Hud.TogglePlugin<UiHiddenPlayerSkillBarPlugin>(false);
- // Disable *multiplayer* "DPS dealt to monsters" graphic label under player portraits.
- Hud.TogglePlugin<PortraitBottomStatsPlugin>(false);
- // Turn off the Automated Paragon Screen captured saved to disc
- Hud.TogglePlugin<ParagonCapturePlugin>(false);
- // Turn off the Paragon and experience boxes at the center top of the screen
- Hud.TogglePlugin<PlayerTopBuffListPlugin>(false);
- Hud.TogglePlugin<TopExperienceStatistics>(false);
- // Turn off the "Strength in Numbers" buff in multiplayer games
- Hud.TogglePlugin<MultiplayerExperienceRangePlugin>(false);
- // Disable some default UI plugins.
- Hud.TogglePlugin<GameInfoPlugin>(false);
- Hud.TogglePlugin<NotifyAtRiftPercentagePlugin>(false);
- Hud.TogglePlugin<PickupRangePlugin>(false);
- // Turn off the weapon rack minimap location dots - we seldom open them.
- Hud.TogglePlugin<RackPlugin>(false);
- // Checsts with Harrington Waistguard on minimap - for fun!
- Hud.TogglePlugin<ClickableChestGizmoPlugin>(false);
- // Dead bodies white rectangle on minimap.
- Hud.TogglePlugin<DeadBodyPlugin>(false);
- // Hide most extras - draws buf icons to left side of mini map.
- Hud.RunOnPlugin<MiniMapLeftBuffListPlugin>(plugin =>
- {
- plugin.RuleCalculator.Rules.Clear();
- // During Greater Rift only.
- var p = Hud.Sno.SnoPowers;
- uint Invulnerable = p.Generic_PagesBuffInvulnerable.Sno; // 266254 Shield - invincible
- uint Damage = p.Generic_PagesBuffDamage.Sno; // 262935 Power - 5x damage
- plugin.RuleCalculator.Rules.Add(new BuffRule(Invulnerable) { MinimumIconCount = 1 });
- plugin.RuleCalculator.Rules.Add(new BuffRule(Damage) { MinimumIconCount = 1 });
- });
- // Disable - draws buf icons to right side of mini map.
- Hud.TogglePlugin<CheatDeathBuffFeederPlugin>(false);
- // Just (sub optimization?) for performance.
- Hud.TogglePlugin<SkillRangeHelperPlugin>(false);
- Hud.TogglePlugin<ConventionOfElementsBuffListPlugin>(false); // Not needed.
- // Fix Sentry minimap icon
- Hud.RunOnPlugin<PlayerSkillPlugin>(plugin =>
- {
- List<IWorldDecorator> decorators = new List<IWorldDecorator>();
- decorators.AddRange(plugin.SentryDecorator.Decorators);
- decorators.AddRange(plugin.SentryWithCustomEngineeringDecorator.Decorators);
- foreach (var decorator in decorators)
- {
- if (decorator is MapShapeDecorator)
- {
- ((MapShapeDecorator)decorator).Brush = Hud.Render.CreateBrush(255, 255, 255, 255, 2); // White.
- ((MapShapeDecorator)decorator).ShapePainter = new PlusShapePainter(Hud);
- }
- }
- });
- Hud.RunOnPlugin<ItemsPlugin>(plugin =>
- {
- plugin.EnableSpeakPrimal = true;
- plugin.EnableSpeakPrimalSet = true;
- // Disable unnecessary item decorators.
- plugin.LegendaryDecorator.Enabled = false;
- plugin.SetDecorator.Enabled = false;
- plugin.InArmorySetDecorator.Enabled = false;
- // Show ancient and primal items on mini map.
- plugin.AncientDecorator.Decorators.Add(new MapLabelDecorator(Hud)
- {
- LabelFont = Hud.Render.CreateFont("tahoma", 6, 255, 235, 120, 0, true, false, false),
- RadiusOffset = 14,
- Up = true,
- });
- plugin.AncientSetDecorator.Decorators.Add(new MapLabelDecorator(Hud)
- {
- LabelFont = Hud.Render.CreateFont("tahoma", 6, 255, 0, 170, 0, true, false, false),
- RadiusOffset = 14,
- Up = true,
- });
- plugin.PrimalDecorator.Decorators.Add(new MapLabelDecorator(Hud)
- {
- LabelFont = Hud.Render.CreateFont("tahoma", 7, 255, 240, 20, 0, true, false, false),
- RadiusOffset = 14,
- Up = true,
- });
- plugin.PrimalSetDecorator.Decorators.Add(new MapLabelDecorator(Hud)
- {
- LabelFont = Hud.Render.CreateFont("tahoma", 7, 255, 240, 20, 0, true, false, false),
- RadiusOffset = 14,
- Up = true,
- });
- // Add ground circle for Death Breaths.
- plugin.DeathsBreathDecorator.Add(new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(192, 102, 202, 177, -2),
- Radius = 1.25f,
- });
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement