private void MenuBarFunct(int id) { GUILayout.Space(2f); EnableEsp = GUILayout.Toggle(EnableEsp, " Enable Esp"); GUILayout.Space(1f); EnableHacksList = GUILayout.Toggle(EnableHacksList, " Enable Hack List"); GUILayout.Space(4f); GUILayout.Label(" Categories\n --------------------------------------"); GUILayout.Space(2f); if (GUILayout.Button(" Player")) { CurrentPage = VisualsPage.Player; } GUILayout.Space(1f); if (GUILayout.Button(" Zombie")) { CurrentPage = VisualsPage.Zombie; } GUILayout.Space(1f); if (GUILayout.Button(" Item")) { CurrentPage = VisualsPage.Item; } GUILayout.Space(1f); if (GUILayout.Button(" Item Filter")) { CurrentPage = VisualsPage.Filter; } GUILayout.Space(1f); if (GUILayout.Button(" Vehicle")) { CurrentPage = VisualsPage.Vehicle; } GUILayout.Space(1f); if (GUILayout.Button(" Animal")) { CurrentPage = VisualsPage.Animal; } GUILayout.Space(1f); if (GUILayout.Button(" Storages")) { CurrentPage = VisualsPage.Storages; } GUILayout.Space(1f); if (GUILayout.Button(" Environment")) { CurrentPage = VisualsPage.Environment; } GUILayout.Space(1f); }
public void Start() { //Call Start of lib OnStart(); //Set the first page CurrentPage = VisualsPage.Player; //Enable Hack List by default EnableHacksList = true; //Set Distances and update rates EspDistance = 200; UpdateRate = 10; //Set Distances for overrides PlayerEspDistance = 200; ZombieEspDistance = 200; ItemEspDistance = 200; //Set Text sizes for scale CloseSize = 7; FarSize = 5; Dropoff = 350; //Set Sizes and positions of menus var size = new Vector2(450, 500); CenterMenu = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Center, MenuTools.Vertical.Center, false); size = new Vector2(200, 500); MenuBar = new Rect(CenterMenu.x - 210, CenterMenu.y, size.x, size.y); SettingsBar = new Rect(CenterMenu.x + 460, CenterMenu.y, size.x, size.y); //set starting color indexs for colors FPlayerColorIndex = 0; EPlayerColorIndex = 9; VEPlayerColorIndex = 4; ZombieColorIndex = 12; ItemColorIndex = 2; VehicleColorIndex = 11; AnimalColorIndex = 6; StorageColorIndex = 8; //Set colors from indicies; FriendlyPlayerColor = (ColorOptions)FPlayerColorIndex; EnemyPlayerColor = (ColorOptions)EPlayerColorIndex; VisibleEnemyPlayerColor = (ColorOptions)VEPlayerColorIndex; ZombieColor = (ColorOptions)ZombieColorIndex; ItemColor = (ColorOptions)ItemColorIndex; VehicleColor = (ColorOptions)VehicleColorIndex; AnimalColor = (ColorOptions)AnimalColorIndex; StorageColor = (ColorOptions)StorageColorIndex; //Set starting NV Nv = NvType.None; }