public HeroBlockerSettings() { var subFactory = MenuFactory.Attach("bodyBlocker").Menu("Hero blocker"); Key = subFactory.Item("Hotkey", new KeyBind('-')); Key.Item.Tooltip = "Block enemy hero with your hero (Hold)"; BlockSensitivity = subFactory.Item("Block sensitivity", new Slider(150, 100, 200)); BlockSensitivity.Item.Tooltip = "Bigger value will result in smaller block, but with higher success rate"; CenterCamera = subFactory.Item("Center camera", true); }
public CreepsBlockerSettings() { var subFactory = MenuFactory.Attach("xdbodyBlocker").Menu("Creeps blocker"); Key = subFactory.Item("Hotkey", new KeyBind('-')); Key.Item.Tooltip = "Block lane creeps with your hero (Hold)"; BlockRangedCreep = subFactory.Item("Block ranged creep", true); BlockSensitivity = subFactory.Item("Block sensitivity", new Slider(550, 500, 700)); BlockSensitivity.Item.Tooltip = "Bigger value will result in smaller block, but with higher success rate"; CenterCamera = subFactory.Item("Center camera", true); }
public ControllablesBlockerSettings() { var subFactory = MenuFactory.Attach("bodyBlocker").Menu("Controllables blocker"); Key = subFactory.Item("Hotkey", new KeyBind('-')); Key.Item.Tooltip = "Block enemy hero with controllable units (Press)"; BlockSensitivity = subFactory.Item("Block sensitivity", new Slider(150, 100, 200)); BlockSensitivity.Item.Tooltip = "Bigger value will result in smaller block, but with higher success rate"; ControllablesCount = subFactory.Item("Units", new Slider(1, 1, 5)); ControllablesCount.Item.Tooltip = "Number of units to use"; SpreadUnits = subFactory.Item("Spread units", true); SpreadUnits.Item.Tooltip = "If enabled units will try to form an arc, otherwise they all will run in front of the hero"; }
public void Activate() { if (this.IsActive) { return; } this.IsActive = true; Log.Debug($"Activate Orbwalker: {this.Owner.GetDisplayName()}"); this.Settings = new OrbwalkerSettings(MenuFactory.Attach("Orbwalker"), this.Owner); this.Settings.DrawRange.PropertyChanged += this.OnDrawRangeChanged; this.Settings.DrawHoldRange.PropertyChanged += this.OnDrawHoldRangeChanged; if (this.Settings.DrawRange || this.Settings.DrawHoldRange) { UpdateManager.Subscribe(this.OnUpdateDrawings, 1000); } Entity.OnInt32PropertyChange += this.OnNetworkActivity; this.Inventory.Value.CollectionChanged += this.OnItemsChanged; }