//private static Texture2D backupOldStyle = GUI.skin.window.active.background; private static void inTheGui() { if (!SettedNewStyle) { if (MaociScreen.ratio > 1f) { GUI.skin.window.fontSize = (int)(GUI.skin.window.fontSize * MaociScreen.ratio); GUI.skin.label.fontSize = (int)(GUI.skin.label.fontSize * MaociScreen.ratio); GUI.skin.button.fontSize = (int)(GUI.skin.button.fontSize * MaociScreen.ratio); GUI.skin.textField.fontSize = (int)(GUI.skin.textField.fontSize * MaociScreen.ratio); } ///Texture2D newGuiTexture = MaociScreen.CreateTexture2DWithColor(new Color(0f,0f,0f,0.7f)); if (!Settings.variables.OldMenuStyle) { GUI.skin.window.active.background = GUI.skin.box.active.background; GUI.skin.window.normal.background = GUI.skin.box.normal.background; GUI.skin.window.onActive.background = GUI.skin.box.onActive.background; GUI.skin.window.onFocused.background = GUI.skin.box.onFocused.background; GUI.skin.window.focused.background = GUI.skin.box.focused.background; GUI.skin.window.onNormal.background = GUI.skin.box.onNormal.background; GUI.skin.window.richText = true; } SettedNewStyle = true; } if (LocalPlayer.Base != null) { if (Settings.switches.m_AimFovRange) { Print.Circle.Draw((int)MaociScreen.width_half, (int)MaociScreen.height_half, Settings.CAimH.FOV, Settings.CAimH.FovDrawColor, 2f); } try { var MobileCrosshair = Raycast.BarrelRaycast(LocalPlayer.Base); if (MobileCrosshair != Vector3.zero) { Print.Dot.DrawVectorCrosshair(Camera.main.WorldToScreenPoint(MobileCrosshair)); } } catch { } //if (CDoor.vb_main) // GUI.Label(SelectedDoorMenu, "Door: " + CDoor.selectedName); } if (!CDoor.KeyRestored) { GUI.Label(Menus.Menu_KeyM_Spoofed, "Mechanical KeySpoof Active"); } if (Settings.switches.vb_HelpMenu) { Menus.Menu_0 = GUILayout.Window(103, Menus.Menu_0, Manu, Menus.SetGuiContent("Help Menu")); } if (LocalPlayer.Base != null) { if (Settings.switches.vb_lpValue) { Menus.Menu_LP_EQValue = GUILayout.Window(101, Menus.Menu_LP_EQValue, Manu, Menus.SetGuiContent("Equipment")); } if (Settings.switches.vb_lpWeapon) { Menus.Menu_LP_Weapon = GUILayout.Window(102, Menus.Menu_LP_Weapon, Manu, Menus.SetGuiContent("Weapon")); //DrawWeaponBox(); } } if (!Settings.switches.vb_Menu) { return; } Menus.Menu_0 = GUILayout.Window(90, Menus.Menu_0, Manu, Menus.SetGuiContent("Mao " + commitVersion)); Menus.Menu_1 = GUILayout.Window(91, Menus.Menu_1, Manu, Menus.SetGuiContent("Switch")); Menus.Menu_2 = GUILayout.Window(92, Menus.Menu_2, Manu, Menus.SetGuiContent("Items")); Menus.Menu_3 = GUILayout.Window(93, Menus.Menu_3, Manu, Menus.SetGuiContent("Function")); }