forked from LeagueSharp/LeagueSharp.Common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHacks.cs
59 lines (53 loc) · 2.3 KB
/
Hacks.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
namespace LeagueSharp.Common
{
/// <summary>
/// Adds hacks to the menu.
/// </summary>
internal class Hacks
{
/// <summary>
/// Initializes this instance.
/// </summary>
internal static void Initialize()
{
CustomEvents.Game.OnGameLoad += eventArgs =>
{
var menu = new Menu("Hacks", "Hacks");
var draw = menu.AddItem(new MenuItem("DrawingHack", "Disable Drawing").SetValue(false));
draw.SetValue(LeagueSharp.Hacks.DisableDrawings);
draw.ValueChanged +=
delegate(object sender, OnValueChangeEventArgs args)
{
LeagueSharp.Hacks.DisableDrawings = args.GetNewValue<bool>();
};
var say = menu.AddItem(new MenuItem("SayHack", "Disable L# Send Chat").SetValue(false)
.SetTooltip("Block Game.Say from Assemblies"));
say.SetValue(LeagueSharp.Hacks.DisableSay);
say.ValueChanged +=
delegate(object sender, OnValueChangeEventArgs args)
{
LeagueSharp.Hacks.DisableSay = args.GetNewValue<bool>();
};
/* var zoom = menu.AddItem(new MenuItem("ZoomHack", "Extended Zoom").SetValue(false));
zoom.SetValue(LeagueSharp.Hacks.ZoomHack);
zoom.ValueChanged +=
delegate (object sender, OnValueChangeEventArgs args)
{
LeagueSharp.Hacks.ZoomHack = args.GetNewValue<bool>();
};
menu.AddItem(
new MenuItem("ZoomHackInfo", "Note: ZoomHack may be unsafe!", false, FontStyle.Regular, Color.Red));
*/
var tower = menu.AddItem(new MenuItem("TowerHack", "Show Tower Ranges").SetValue(false));
tower.SetValue(LeagueSharp.Hacks.TowerRanges);
tower.ValueChanged +=
delegate(object sender, OnValueChangeEventArgs args)
{
LeagueSharp.Hacks.TowerRanges = args.GetNewValue<bool>();
};
CommonMenu.Instance.AddSubMenu(menu);
};
}
}
}