Advertisement
iThinkiWin

RevealMapPlugin

Dec 16th, 2019
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.06 KB | None | 0 0
  1. using System.Drawing;
  2. using Turbo.Plugins.Default;
  3.  
  4. namespace Turbo.Plugins.User
  5. {
  6.  
  7.     public class RevealMapPlugin : BasePlugin, ICustomizer
  8.     {
  9.  
  10.         public RevealMapPlugin()
  11.         {
  12.             Enabled = true;
  13.         }
  14.  
  15.         public override void Load(IController hud)
  16.         {
  17.             base.Load(hud);
  18.         }
  19.  
  20.         public void Customize()
  21.         {
  22.             Hud.SceneReveal.MapEnabled = true;
  23.             Hud.SceneReveal.MapOpacity = 30;
  24.             Hud.SceneReveal.MinimapEnabled = true;
  25.             Hud.SceneReveal.MinimapOpacity = 50;
  26.             Hud.SceneReveal.MinimapClip = false;
  27.             Hud.SceneReveal.DisplaySceneBorder = true;
  28.             Hud.SceneReveal.BrushKnown = new SolidBrush(Color.FromArgb(50, 20, 180, 20));
  29.             Hud.SceneReveal.SceneBorderPen = new Pen(Color.Red, 4.0f);
  30.             Hud.SceneReveal.SceneBorderPen.DashCap = System.Drawing.Drawing2D.DashCap.Round;
  31.             Hud.SceneReveal.SceneBorderPen.DashPattern = new float[]{4.0F, 2.0F, 1.0F, 3.0F, 1.0f, 5.0f, 1.0f};
  32.         }
  33.  
  34.     }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement