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; }
public void Start() { EnableVisuals = true; Setting_Distance = 200f; Setting_UpdateRate = 20f; Nv = NvType.None; DerivedStart(); page = 1; }
void MiscPage() { GUI.Label(new Rect(415, 91, 100, 30), "<size=20>Misc:</size>"); if (GUI.Button(new Rect(240, 153, 140, 30), "<size=13>No Rain</size>")) { LevelLighting.rainyness = ELightingRain.NONE; } if (GUI.Button(new Rect(240, 186, 140, 30), "<size=13>No Fog</size>")) { RenderSettings.fog = (!RenderSettings.fog); } if (GUI.Button(new Rect(240, 219, 140, 30), "<size=13>No Water</size>")) { if (Altitude == 0f) { Altitude = LevelLighting.seaLevel; } LevelLighting.seaLevel = LevelLighting.seaLevel == 0f ? Altitude : 0f; } GUI.Label(new Rect(383, 120, 140, 35), $"<size=14>Night Vision: {Nv}</size>"); if (GUI.Button(new Rect(383, 153, 140, 30), "<size=13>Military</size>")) { Nv = NvType.Military; LevelLighting.vision = ELightingVision.MILITARY; LevelLighting.updateLighting(); LevelLighting.updateLocal(); PlayerLifeUI.updateGrayscale(); } if (GUI.Button(new Rect(383, 186, 140, 30), "<size=13>Civilian</size>")) { Nv = NvType.Civilian; LevelLighting.vision = ELightingVision.CIVILIAN; LevelLighting.updateLighting(); LevelLighting.updateLocal(); PlayerLifeUI.updateGrayscale(); } if (GUI.Button(new Rect(383, 219, 140, 30), "<size=13>None</size>")) { Nv = NvType.None; LevelLighting.vision = ELightingVision.NONE; LevelLighting.updateLighting(); LevelLighting.updateLocal(); PlayerLifeUI.updateGrayscale(); } }
private void EnvironmentPage() { GUILayout.Space(2f); GUILayout.Label("Weather\n--------------------------------------"); GUILayout.Space(2f); if (GUILayout.Button("No Rain")) { LevelLighting.rainyness = ELightingRain.NONE; } if (GUILayout.Button("No Fog")) { RenderSettings.fog = (!RenderSettings.fog); } if (GUILayout.Button("No Water")) { if (Altitude == 0f) { Altitude = LevelLighting.seaLevel; } LevelLighting.seaLevel = LevelLighting.seaLevel == 0f ? Altitude : 0f; } GUILayout.Label("Time: " + LightingManager.time); LightingManager.time = (uint)Math.Round(GUILayout.HorizontalSlider(LightingManager.time, 0, 3600)); GUILayout.Space(2f); GUILayout.Label("--------------------------------------"); GUILayout.Space(2f); GUILayout.Space(4f); GUILayout.Label($"Night Vision: {Nv}"); GUILayout.Space(2f); if (GUILayout.Button("Military")) { Nv = NvType.Military; LevelLighting.vision = ELightingVision.MILITARY; LevelLighting.updateLighting(); LevelLighting.updateLocal(); PlayerLifeUI.updateGrayscale(); } if (GUILayout.Button("Civilian")) { Nv = NvType.Civilian; LevelLighting.vision = ELightingVision.CIVILIAN; LevelLighting.updateLighting(); LevelLighting.updateLocal(); PlayerLifeUI.updateGrayscale(); } if (GUILayout.Button("None")) { Nv = NvType.None; LevelLighting.vision = ELightingVision.NONE; LevelLighting.updateLighting(); LevelLighting.updateLocal(); PlayerLifeUI.updateGrayscale(); } GUILayout.Space(10f); GUILayout.Label(" Get High\n --------------------------------------"); GUILayout.Space(2f); if (GUILayout.Button("Get High (10 sec)")) { Player.player.life.askView(10); } if (GUILayout.Button("Get High (30 Sec)")) { Player.player.life.askView(30); } if (GUILayout.Button("Get High (1 min)")) { Player.player.life.askView(60); } if (GUILayout.Button("Get High (5 mins)")) { Player.player.life.askView(255); } }