public static void Game_OnGameLoad() { Menu = MainMenu.AddMenu("VCursor", "VCursor"); Menu.Add("Movement", new CheckBox("Follow Cursor Movement")); Menu.Add("Icon", new CheckBox("Change Icon [BROKEN IN L#]")); Menu.Add("Chat", new CheckBox("Clear Chat on Load")); if (Menu["Chat"].Cast <CheckBox>().CurrentValue) { for (var i = 0; i < 15; i++) { Chat.Print("<font color =\"\">"); } } FakeClicks.Initialize(Menu); VirtualCursor.Initialize(); VirtualCursor.SetPosition(Cursor.ScreenPosition); VirtualCursor.Draw(); }
private static void Game_OnUpdate(EventArgs args) { if (!FollowingPath || !_currentPath.CanMove) { return; } var point = _currentPath.NextPoint; if (point == Vector2.Zero) { return; } if (_currentPath.Finished) { VirtualCursor.UpdateIcon(point); } VirtualCursor.SetPosition(point); }
private static void Game_OnGameLoad(EventArgs args) { Menu = new Menu("VCursor", "VCursor", true); Menu.AddItem(new MenuItem("Movement", "Follow Cursor Movement").SetValue(true)); Menu.AddItem(new MenuItem("Icon", "Change Icon [BROKEN IN L#]").SetValue(true)); Menu.AddItem(new MenuItem("Chat", "Clear Chat on Load").SetValue(true)); Menu.AddToMainMenu(); if (Menu.Item("Chat").IsActive()) { for (var i = 0; i < 15; i++) { Game.PrintChat("<font color =\"\">"); } } FakeClicks.Initialize(Menu); VirtualCursor.Initialize(); VirtualCursor.SetPosition(Cursor.ScreenPosition); VirtualCursor.Draw(); }