Example #1
0
 // Token: 0x0600027F RID: 639 RVA: 0x00017050 File Offset: 0x00015250
 public static void Tab()
 {
     Prefab.MenuArea(new Rect(0f, 0f, 325f, 406f), <Module> .smethod_5 <string>(3257898545u), delegate
     {
         GUILayout.BeginVertical(new GUILayoutOption[]
         {
             GUILayout.Width(150f)
         });
         VisualsTab.VisualTab(Names.All[0], ESPTarget.Players, delegate
         {
             Prefab.Toggle(Names.All[54], ref ESPOptions.FullName);
             Prefab.Toggle(Names.All[55], ref ESPOptions.ShowPlayerWeapon);
             Prefab.Toggle(Names.All[56], ref ESPOptions.ShowPlayerVehicle);
         });
         VisualsTab.VisualTab(Names.All[1], ESPTarget.Zombies, null);
         VisualsTab.VisualTab(Names.All[2], ESPTarget.Vehicles, delegate
         {
             Prefab.Toggle(Names.All[58], ref ESPOptions.ShowVehicleFuel);
             Prefab.Toggle(Names.All[59], ref ESPOptions.ShowVehicleHealth);
             Prefab.Toggle(Names.All[60], ref ESPOptions.ShowVehicleLocked);
             Prefab.Toggle(Names.All[61], ref ESPOptions.FilterVehicleLocked);
         });
         VisualsTab.VisualTab(Names.All[3], ESPTarget.Items, delegate
         {
             Prefab.Toggle(Names.All[62], ref ESPOptions.FilterItems);
             if (ESPOptions.FilterItems)
             {
                 GUILayout.Space(5f);
                 ItemUtilities.DrawFilterTab(ItemOptions.ItemESPOptions);
             }
         });
         VisualsTab.VisualTab(Names.All[4], ESPTarget.Storage, null);
         VisualsTab.VisualTab(Names.All[5], ESPTarget.Beds, delegate
         {
             Prefab.Toggle(Names.All[63], ref ESPOptions.ShowClaimed);
         });
         VisualsTab.VisualTab(Names.All[6], ESPTarget.Generators, delegate
         {
             Prefab.Toggle(Names.All[64], ref ESPOptions.ShowGeneratorFuel);
             Prefab.Toggle(Names.All[65], ref ESPOptions.ShowGeneratorPowered);
         });
         VisualsTab.VisualTab(Names.All[7], ESPTarget.Sentries, delegate
         {
             Prefab.Toggle(Names.All[66], ref ESPOptions.ShowSentryItem);
         });
         VisualsTab.VisualTab(Names.All[8], ESPTarget.ClaimFlags, null);
         VisualsTab.VisualTab(Names.All[9], ESPTarget.Animals, null);
         VisualsTab.VisualTab(Names.All[10], ESPTarget.Farm, null);
         VisualsTab.VisualTab("Ловушки", ESPTarget.Traps, null);
         VisualsTab.VisualTab("Аирдропы", ESPTarget.AirDrop, null);
         GUILayout.EndVertical();
     });
     Prefab.MenuArea(new Rect(330f, 0f, 281f, 140f), Names.All[40], delegate
     {
         Prefab.Toggle(Names.All[41], ref MirrorCameraOptions.Enabled);
         GUILayout.Space(5f);
         if (Prefab.Button(Names.All[42], 140f, 25f))
         {
             MirrorCameraComponent.FixCam();
         }
     });
     Prefab.MenuArea(new Rect(330f, 146f, 281f, 260f), Names.All[43], delegate
     {
         if (Prefab.Toggle(Names.All[44], ref ESPOptions.Enabled) && !ESPOptions.Enabled)
         {
             for (int i = 0; i < ESPOptions.VisualOptions.Length; i++)
             {
                 ESPOptions.VisualOptions[i].Glow = false;
             }
             abc.HookObject.GetComponent <ESPComponent>().OnGUI();
         }
         Prefab.Toggle(Names.All[45], ref ESPOptions.TextStyle);
         Prefab.Toggle(Names.All[46], ref ESPOptions.ChamsEnabled);
         if (ESPOptions.ChamsEnabled)
         {
             GUILayout.Space(5f);
             ESPOptions.ChamsMode = Prefab.Arrows(200f, ESPOptions.ChamsMode, "Режим: " + ESPOptions.ChamsMode, 1);
         }
         Prefab.Toggle(Names.All[48], ref MiscOptions.NoRain);
         Prefab.Toggle(Names.All[49], ref MiscOptions.NoSnow);
         Prefab.Toggle(Names.All[50], ref MiscOptions.NightVision);
         Prefab.Toggle(Names.All[51], ref MiscOptions.Compass);
         Prefab.Toggle(Names.All[52], ref MiscOptions.GPS);
         Prefab.Toggle(Names.All[53], ref MiscOptions.ShowPlayersOnMap);
         Prefab.Toggle("Список игроков в ванише", ref ESPOptions.ShowVanishPlayers);
     });
 }
Example #2
0
 // Token: 0x06000103 RID: 259 RVA: 0x0000D02C File Offset: 0x0000B22C
 public static void DrawButton(string Option, string Identifier)
 {
     GUILayout.BeginHorizontal(Array.Empty <GUILayoutOption>());
     GUILayout.Label(Option, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
     if (HotkeyTab.ClickedOption == Identifier)
     {
         if (Prefab.Button("Убрать", 75f, 25f))
         {
             HotkeyComponent.Clear();
             HotkeyOptions.UnorganizedHotkeys[Identifier].Keys = new KeyCode[0];
             HotkeyTab.ClickedOption = string.Empty;
         }
         if (!HotkeyComponent.StopKeys)
         {
             string text;
             if (HotkeyOptions.UnorganizedHotkeys[Identifier].Keys.Length != 0)
             {
                 text = string.Join(" + ", HotkeyOptions.UnorganizedHotkeys[Identifier].Keys.Select(delegate(KeyCode k)
                 {
                     KeyCode keyCode = k;
                     return(keyCode.ToString());
                 }).ToArray <string>());
             }
             else
             {
                 text = "Нет";
             }
             Prefab.Button(text, 200f, 25f);
         }
         else
         {
             HotkeyOptions.UnorganizedHotkeys[Identifier].Keys = HotkeyComponent.CurrentKeys.ToArray();
             HotkeyComponent.Clear();
             Prefab.Button(string.Join(" + ", HotkeyOptions.UnorganizedHotkeys[Identifier].Keys.Select(delegate(KeyCode k)
             {
                 KeyCode keyCode = k;
                 return(keyCode.ToString());
             }).ToArray <string>()), 200f, 25f);
             HotkeyTab.ClickedOption = string.Empty;
         }
     }
     else
     {
         string text2;
         if (HotkeyOptions.UnorganizedHotkeys[Identifier].Keys.Length != 0)
         {
             text2 = string.Join(" + ", HotkeyOptions.UnorganizedHotkeys[Identifier].Keys.Select(delegate(KeyCode k)
             {
                 KeyCode keyCode = k;
                 return(keyCode.ToString());
             }).ToArray <string>());
         }
         else
         {
             text2 = "Нет";
         }
         if (Prefab.Button(text2, 200f, 25f))
         {
             HotkeyComponent.Clear();
             HotkeyTab.ClickedOption   = Identifier;
             HotkeyComponent.NeedsKeys = true;
         }
     }
     GUILayout.EndHorizontal();
     GUILayout.Space(2f);
 }
Example #3
0
        // Token: 0x06000083 RID: 131 RVA: 0x00008BD8 File Offset: 0x00006DD8
        public static void Tab()
        {
            ColorOptions.errorColor = new ColorVariable("errorColor", "#ERROR.NOTFOUND", Color.magenta, true);
            ColorOptions.preview    = new ColorVariable("preview", "Цвет не выбран", Color.white, true);
            if (ColorOptions.selectedOption == null)
            {
                ColorOptions.previewselected = ColorOptions.preview;
            }
            Prefab.ScrollView(new Rect(0f, 0f, 395f, 406f), "Цвета", ref ColorsTab.ColorScroll, delegate()
            {
                GUILayout.Space(10f);
                List <KeyValuePair <string, ColorVariable> > list = ColorOptions.ColorDict2.ToList <KeyValuePair <string, ColorVariable> >();
                list.Sort((KeyValuePair <string, ColorVariable> pair1, KeyValuePair <string, ColorVariable> pair2) => pair1.Value.name.CompareTo(pair2.Value.name));
                for (int i = 0; i < list.Count; i++)
                {
                    ColorVariable color = ColorUtilities.getColor(list[i].Value.identity);
                    if (Prefab.ColorButton(350f, color, 25f))
                    {
                        ColorOptions.selectedOption  = color.identity;
                        ColorOptions.previewselected = new ColorVariable(color);
                        ColorsTab.LastColorPreview1  = color.color;
                    }
                    GUILayout.Space(3f);
                }
                if (Prefab.Button("Восстановить цвета", 350f, 25f))
                {
                    for (int j = 0; j < list.Count; j++)
                    {
                        ColorVariable color2 = ColorUtilities.getColor(list[j].Value.identity);
                        color2.color         = color2.origColor;
                        MenuComponent.SetGUIColors();
                        ColorOptions.selectedOption = null;
                        ColorsTab.LastColorPreview1 = ColorOptions.preview.color;
                    }
                }
                GUILayout.Space(10f);
            }, 20);
            Rect previewRect = new Rect(400f, 0f, 211f, 120f);

            Prefab.MenuArea(previewRect, "Просмотр", delegate
            {
                Rect rect = new Rect(5f, 20f, previewRect.width - 10f, previewRect.height - 25f);
                Drawing.DrawRect(rect, MenuComponent._OutlineBorderBlack);
                Drawing.DrawRect(MenuUtilities.Inline(rect, 1f), MenuComponent._OutlineBorderLightGray);
                Rect rect2 = MenuUtilities.Inline(rect, 2f);
                Drawing.DrawRect(new Rect(rect2.x, rect2.y, rect2.width / 2f, rect2.height), ColorsTab.LastColorPreview1);
                Drawing.DrawRect(new Rect(rect2.x + rect2.width / 2f, rect2.y, rect2.width / 2f, rect2.height), ColorOptions.previewselected);
            });
            Prefab.MenuArea(new Rect(previewRect.x, previewRect.y + previewRect.height + 5f, previewRect.width, 406f - previewRect.height - 5f), ColorOptions.previewselected.name, delegate
            {
                GUILayout.BeginArea(new Rect(10f, 20f, previewRect.width - 10f, 205f));
                ColorOptions.previewselected.color.r = (int)((byte)Prefab.TextField(ColorOptions.previewselected.color.r, "R: ", 30, 0, 255));
                ColorOptions.previewselected.color.r = (int)((byte)Prefab.Slider(0f, 255f, (float)ColorOptions.previewselected.color.r, 185));
                GUILayout.FlexibleSpace();
                ColorOptions.previewselected.color.g = (int)((byte)Prefab.TextField(ColorOptions.previewselected.color.g, "G: ", 30, 0, 255));
                ColorOptions.previewselected.color.g = (int)((byte)Prefab.Slider(0f, 255f, (float)ColorOptions.previewselected.color.g, 185));
                GUILayout.FlexibleSpace();
                ColorOptions.previewselected.color.b = (int)((byte)Prefab.TextField(ColorOptions.previewselected.color.b, "B: ", 30, 0, 255));
                ColorOptions.previewselected.color.b = (int)((byte)Prefab.Slider(0f, 255f, (float)ColorOptions.previewselected.color.b, 185));
                GUILayout.FlexibleSpace();
                if (!ColorOptions.previewselected.disableAlpha)
                {
                    ColorOptions.previewselected.color.a = (int)((byte)Prefab.TextField(ColorOptions.previewselected.color.a, "A: ", 30, 0, 255));
                    ColorOptions.previewselected.color.a = (int)((byte)Prefab.Slider(0f, 255f, (float)ColorOptions.previewselected.color.a, 185));
                }
                else
                {
                    Prefab.TextField(ColorOptions.previewselected.color.a, "A: ", 30, 0, 255);
                    Prefab.Slider(0f, 255f, (float)ColorOptions.previewselected.color.a, 185);
                }
                GUILayout.Space(100f);
                GUILayout.EndArea();
                GUILayout.Space(160f);
                GUILayout.FlexibleSpace();
                if (Prefab.Button("Снять выделение", 180f, 25f))
                {
                    ColorOptions.selectedOption = null;
                    ColorsTab.LastColorPreview1 = ColorOptions.preview.color;
                }
                GUILayout.Space(3f);
                if (Prefab.Button("Восстановить", 180f, 25f))
                {
                    ColorUtilities.setColor(ColorOptions.previewselected.identity, ColorOptions.previewselected.origColor.ToColor());
                    ColorOptions.previewselected.color = ColorOptions.previewselected.origColor;
                    MenuComponent.SetGUIColors();
                }
                GUILayout.Space(3f);
                if (Prefab.Button("Применить", 180f, 25f))
                {
                    ColorUtilities.setColor(ColorOptions.previewselected.identity, ColorOptions.previewselected.color.ToColor());
                    MenuComponent.SetGUIColors();
                    ColorsTab.LastColorPreview1 = ColorOptions.previewselected.color;
                }
                GUILayout.Space(30f);
            });
        }
Example #4
0
        // Token: 0x06000281 RID: 641 RVA: 0x00017180 File Offset: 0x00015380
        private static void BasicControls(ESPTarget esptarget)
        {
            ESPVisual espvisual = ESPOptions.VisualOptions[(int)esptarget];

            Prefab.Toggle(Names.All[11], ref espvisual.Enabled);
            if (!espvisual.Enabled)
            {
                return;
            }
            Prefab.Toggle(Names.All[12], ref espvisual.Labels);
            if (espvisual.Labels)
            {
                Prefab.Toggle(Names.All[13], ref espvisual.ShowName);
                Prefab.Toggle(Names.All[14], ref espvisual.ShowDistance);
                Prefab.Toggle(Names.All[15], ref espvisual.ShowAngle);
            }
            Prefab.Toggle(Names.All[16], ref espvisual.Boxes);
            if (espvisual.Boxes)
            {
                Prefab.Toggle(Names.All[17], ref espvisual.TwoDimensional);
            }
            Prefab.Toggle(Names.All[18], ref espvisual.Glow);
            Prefab.Toggle(Names.All[19], ref espvisual.LineToObject);
            Prefab.Toggle(Names.All[25], ref espvisual.InfiniteDistance);
            if (!espvisual.InfiniteDistance)
            {
                GUILayout.Label(Names.All[26] + (int)espvisual.Distance, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                espvisual.Distance = Prefab.Slider(0f, 2000f, espvisual.Distance, 200);
                GUILayout.Space(3f);
            }
            Prefab.Toggle(Names.All[27], ref espvisual.UseObjectCap);
            if (espvisual.UseObjectCap)
            {
                GUILayout.Label(Names.All[28] + espvisual.ObjectCap, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                espvisual.ObjectCap = (int)Prefab.Slider(1f, 50f, (float)espvisual.ObjectCap, 200);
            }
            Prefab.Toggle(Names.All[20], ref espvisual.TextScaling);
            GUILayout.Space(3f);
            if (espvisual.TextScaling)
            {
                GUILayout.Label(Names.All[21] + espvisual.MinTextSize, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                espvisual.MinTextSize = (int)Prefab.Slider(8f, 16f, (float)espvisual.MinTextSize, 200);
                GUILayout.Label(Names.All[22] + espvisual.MaxTextSize, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                espvisual.MaxTextSize = (int)Prefab.Slider(8f, 16f, (float)espvisual.MaxTextSize, 200);
                GUILayout.Space(3f);
                GUILayout.Label(Names.All[23] + (int)espvisual.MinTextSizeDistance, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                espvisual.MinTextSizeDistance = Prefab.Slider(0f, 1000f, espvisual.MinTextSizeDistance, 200);
                GUILayout.Space(3f);
            }
            else
            {
                GUILayout.Label(Names.All[24] + espvisual.FixedTextSize, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                espvisual.FixedTextSize = (int)Prefab.Slider(8f, 16f, (float)espvisual.FixedTextSize, 200);
            }
            GUILayout.Space(3f);
            GUILayout.Label(Names.All[29] + espvisual.BorderStrength, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
            espvisual.BorderStrength = (int)Prefab.Slider(0f, 2f, (float)espvisual.BorderStrength, 200);
            GUILayout.Space(3f);
            string[] array = new string[]
            {
                Names.All[30],
                Names.All[31],
                Names.All[32],
                Names.All[33],
                Names.All[34],
                Names.All[35],
                Names.All[36],
                Names.All[37],
                Names.All[38]
            };
            ESPOptions.VisualOptions[(int)esptarget].Location = (LabelLocation)Prefab.Arrows(220f, (int)ESPOptions.VisualOptions[(int)esptarget].Location, array[(int)ESPOptions.VisualOptions[(int)esptarget].Location], array.Length - 1);
        }
 // Token: 0x06000111 RID: 273 RVA: 0x0000DBC4 File Offset: 0x0000BDC4
 public static void Tab()
 {
     Prefab.MenuArea(new Rect(0f, 0f, 611f, 406f), <Module> .smethod_6 <string>(877231245u), delegate
     {
         Prefab.MenuArea(new Rect(15f, 15f, 145f, 125f), "КОНФИГ", delegate
         {
             GUILayout.Space(5f);
             if (Prefab.Button("Сохранить", 115f, 25f))
             {
                 ConfigManager.ConfigPath = ConfigManager.appdata + ConfigManager.current + ".txt";
                 ConfigManager.SaveConfig();
             }
             GUILayout.Space(10f);
             if (Prefab.Button("Загрузить", 115f, 25f))
             {
                 ConfigManager.ConfigPath = ConfigManager.appdata + ConfigManager.current + ".txt";
                 ConfigManager.Init();
                 SkinsUtilities.ApplyFromConfig();
             }
             GUILayout.Space(10f);
             ConfigManager.current = Prefab.TextField(ConfigManager.current, string.Empty, 115f);
         });
         Prefab.MenuArea(new Rect(170f, 15f, 426f, 125f), "СЕРВЕР", delegate
         {
             if (Provider.isConnected)
             {
                 GUILayout.Label("IP текущего сервера: ", Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                 GUILayout.Space(2f);
                 GUILayout.TextField(string.Format("{0}:{1}", Parser.getIPFromUInt32(Provider.currentServerInfo.ip), Provider.currentServerInfo.port), Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                 GUILayout.Space(4f);
                 GUILayout.Label("SteamID сервера: ", Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                 GUILayout.Space(2f);
                 GUILayout.TextField(Provider.server.ToString(), Prefab._TextStyle, Array.Empty <GUILayoutOption>());
             }
         });
         Prefab.MenuArea(new Rect(15f, 150f, 145f, 130f), "ЯЗЫК", delegate
         {
             GUILayout.Space(5f);
             if (Prefab.Button("Русский", 115f, 25f))
             {
                 Names.RU();
             }
             GUILayout.Space(10f);
             if (Prefab.Button("English", 115f, 25f))
             {
                 Names.EN();
             }
         });
         Prefab.MenuArea(new Rect(170f, 150f, 216f, 130f), "ШРИФТЫ", delegate
         {
             MiscOptions.TabFont = Prefab.TextField(MiscOptions.TabFont, "Окна:", 135f, 50f);
             GUILayout.Space(5f);
             MiscOptions.TextFont = Prefab.TextField(MiscOptions.TextFont, "Текст:", 135f, 50f);
             GUILayout.Space(5f);
             MiscOptions.EspFont = Prefab.TextField(MiscOptions.EspFont, "ESP:", 135f, 50f);
             GUILayout.Space(15f);
             if (Prefab.Button("Применить", 185f, 25f))
             {
                 Fonts.Apply();
             }
         });
         Prefab.MenuArea(new Rect(396f, 150f, 200f, 130f), "ИНФО", delegate
         {
             GUILayout.Space(5f);
             GUILayout.Label("Создатель: Gazzi", Prefab._TextStyle, Array.Empty <GUILayoutOption>());
             GUILayout.Space(2f);
             if (Prefab.Button("Группа в ВК", 170f, 25f))
             {
                 Application.OpenURL("http://vk.com/undeadhacks");
             }
         });
     });
 }
Example #6
0
 // Token: 0x060001FE RID: 510 RVA: 0x000130F0 File Offset: 0x000112F0
 public static void Tab()
 {
     Prefab.ScrollView(new Rect(0f, 0f, 611f, 275f), "Игроки", ref PlayersTab.PlayersScroll, delegate()
     {
         for (int i = 0; i < Provider.clients.Count; i++)
         {
             Player player = Provider.clients[i].player;
             if (!(player == Player.player) && !(player == null))
             {
                 bool flag   = FriendUtilities.IsFriendly(player);
                 bool flag2  = MiscOptions.SpectatedPlayer == player;
                 bool flag3  = false;
                 bool flag4  = player == PlayersTab.SelectedPlayer;
                 string text = flag ? "<color=#00ff00ff>" : string.Empty;
                 if (Prefab.Button(string.Concat(new string[]
                 {
                     flag4 ? "<b>" : string.Empty,
                     flag2 ? "<color=#0000ffff>[НАБЛЮДЕНИЕ]</color> " : string.Empty,
                     text,
                     string.Format("{0}", player.name),
                     (flag || flag3) ? "</color>" : string.Empty,
                     flag4 ? "</b>" : string.Empty
                 }), 560f, 25f))
                 {
                     PlayersTab.SelectedPlayer = player;
                 }
                 GUILayout.Space(2f);
             }
         }
     }, 20);
     Prefab.MenuArea(new Rect(0f, 280f, 190f, 126f), "ОПЦИИ", delegate
     {
         if (PlayersTab.SelectedPlayer == null)
         {
             return;
         }
         CSteamID steamID = PlayersTab.SelectedPlayer.channel.owner.playerID.steamID;
         GUILayout.BeginHorizontal(Array.Empty <GUILayoutOption>());
         GUILayout.BeginVertical(Array.Empty <GUILayoutOption>());
         if (!PlayersTab.SelectedPlayer.quests.isMemberOfSameGroupAs(Player.player))
         {
             if (FriendUtilities.IsFriendly(PlayersTab.SelectedPlayer) && Prefab.Button("Убрать друга", 150f, 25f))
             {
                 FriendUtilities.RemoveFriend(PlayersTab.SelectedPlayer);
             }
             else if (Prefab.Button("Добавить друга", 150f, 25f))
             {
                 FriendUtilities.AddFriend(PlayersTab.SelectedPlayer);
             }
         }
         if (MiscOptions.SpectatedPlayer != PlayersTab.SelectedPlayer && Prefab.Button("Наблюдать", 150f, 25f))
         {
             MiscOptions.SpectatedPlayer = PlayersTab.SelectedPlayer;
         }
         if (MiscOptions.SpectatedPlayer == PlayersTab.SelectedPlayer && Prefab.Button("Прекратить наблюдение", 150f, 25f))
         {
             MiscOptions.SpectatedPlayer = null;
         }
         GUILayout.EndVertical();
         GUILayout.EndHorizontal();
     });
     Prefab.MenuArea(new Rect(196f, 280f, 415f, 126f), "ИНФО", delegate
     {
         if (PlayersTab.SelectedPlayer == null)
         {
             return;
         }
         GUILayout.BeginHorizontal(Array.Empty <GUILayoutOption>());
         GUILayout.BeginVertical(Array.Empty <GUILayoutOption>());
         GUILayout.Label("SteamID:", Array.Empty <GUILayoutOption>());
         GUILayout.TextField(PlayersTab.SelectedPlayer.channel.owner.playerID.steamID.ToString(), Prefab._TextStyle, Array.Empty <GUILayoutOption>());
         GUILayout.Space(2f);
         GUILayout.TextField("Местонахождение: " + LocationUtilities.GetClosestLocation(PlayersTab.SelectedPlayer.transform.position).name, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
         GUILayout.Label("Оружие: " + ((PlayersTab.SelectedPlayer.equipment.asset != null) ? PlayersTab.SelectedPlayer.equipment.asset.itemName : "Нет оружия"), Prefab._TextStyle, Array.Empty <GUILayoutOption>());
         GUILayout.Label("Машина: " + ((PlayersTab.SelectedPlayer.movement.getVehicle() != null) ? PlayersTab.SelectedPlayer.movement.getVehicle().asset.name : "Нет машины"), Prefab._TextStyle, Array.Empty <GUILayoutOption>());
         GUILayout.Label("Члены группы: " + Provider.clients.Count((SteamPlayer c) => c.player != PlayersTab.SelectedPlayer && c.player.quests.isMemberOfSameGroupAs(PlayersTab.SelectedPlayer)), Prefab._TextStyle, Array.Empty <GUILayoutOption>());
         GUILayout.EndVertical();
         GUILayout.EndHorizontal();
     });
 }
Example #7
0
 // Token: 0x0600017E RID: 382 RVA: 0x0000FE28 File Offset: 0x0000E028
 public static void Tab()
 {
     Prefab.MenuArea(new Rect(0f, 0f, 611f, 406f), <Module> .smethod_5 <string>(2232062503u), delegate
     {
         GUILayout.BeginHorizontal(Array.Empty <GUILayoutOption>());
         GUILayout.BeginVertical(new GUILayoutOption[]
         {
             GUILayout.Width(260f)
         });
         Prefab.Toggle("Медленное падение", ref MiscOptions.SlowFall);
         Prefab.Toggle("Полёт на машине", ref MiscOptions.VehicleFly);
         if (MiscOptions.VehicleFly)
         {
             Prefab.Toggle("Использовать Rigibody", ref MiscOptions.VehicleRigibody);
             Prefab.Toggle("Использовать макс скорость", ref MiscOptions.VehicleUseMaxSpeed);
             if (!MiscOptions.VehicleUseMaxSpeed)
             {
                 GUILayout.Space(2f);
                 GUILayout.Label("Скорость: " + MiscOptions.SpeedMultiplier + "x", Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                 GUILayout.Space(2f);
                 MiscOptions.SpeedMultiplier = (float)Math.Round((double)Prefab.Slider(0f, 10f, MiscOptions.SpeedMultiplier, 175), 2);
                 GUILayout.Space(4f);
             }
         }
         Prefab.Toggle("Изменить время", ref MiscOptions.SetTimeEnabled);
         if (MiscOptions.SetTimeEnabled)
         {
             GUILayout.Label("Время: " + MiscOptions.Time, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
             GUILayout.Space(2f);
             MiscOptions.Time = (float)Math.Round((double)Prefab.Slider(0f, 0.9f, MiscOptions.Time, 175), 2);
             GUILayout.Space(8f);
         }
         Prefab.Toggle("Дальность удара", ref MiscOptions.ExtendMeleeRange);
         if (MiscOptions.ExtendMeleeRange)
         {
             Prefab.Toggle("Режим совместимости", ref MiscOptions.ExtendRangeBypass);
         }
         GUILayout.EndVertical();
         GUILayout.BeginVertical(Array.Empty <GUILayoutOption>());
         Prefab.Toggle("Свободная камера", ref MiscOptions.Freecam);
         if (Provider.isConnected && Player.player != null)
         {
             if (!Player.player.look.isOrbiting)
             {
                 Player.player.look.orbitPosition = Vector3.zero;
             }
             if (Player.player.look.isOrbiting && Prefab.Button("Вернуть камеру", 150f, 25f))
             {
                 Player.player.look.orbitPosition = Vector3.zero;
             }
         }
         Prefab.Toggle("Время забирания построек", ref MiscOptions.CustomSalvageTime);
         if (MiscOptions.CustomSalvageTime)
         {
             GUILayout.Label("Время: " + MiscOptions.SalvageTime + " секунд", Prefab._TextStyle, Array.Empty <GUILayoutOption>());
             GUILayout.Space(2f);
             MiscOptions.SalvageTime = (float)Math.Round((double)Prefab.Slider(0.2f, 10f, MiscOptions.SalvageTime, 175), 1);
             GUILayout.Space(8f);
         }
         Prefab.Toggle("Ставить в текстуры", ref MiscOptions.BuildObs);
         if (MiscOptions.BuildObs)
         {
             Prefab.Toggle("Смещение", ref MiscOptions.epos);
             if (MiscOptions.epos)
             {
                 GUILayout.Label("Y: " + MiscOptions.pos.y, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                 MiscOptions.pos.y = (float)Math.Round((double)Prefab.Slider(-3f, 3f, MiscOptions.pos.y, 175), 1);
                 GUILayout.Label("X: " + MiscOptions.pos.x, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                 MiscOptions.pos.x = (float)Math.Round((double)Prefab.Slider(-3f, 3f, MiscOptions.pos.x, 175), 1);
                 GUILayout.Label("Z: " + MiscOptions.pos.z, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                 MiscOptions.pos.z = (float)Math.Round((double)Prefab.Slider(-3f, 3f, MiscOptions.pos.z, 175), 1);
             }
         }
         GUILayout.EndVertical();
         GUILayout.EndHorizontal();
         Prefab.MenuArea(new Rect(10f, 281f, 250f, 115f), "СПАМ", delegate
         {
             Prefab.Toggle("Включить", ref MiscOptions.SpammerEnabled);
             GUILayout.Space(5f);
             MiscOptions.SpamText = Prefab.TextField(MiscOptions.SpamText, "Текст: ", 160f);
             GUILayout.Space(10f);
             GUILayout.Label("Задержка: " + MiscOptions.SpammerDelay + "ms", Prefab._TextStyle, Array.Empty <GUILayoutOption>());
             GUILayout.Space(5f);
             MiscOptions.SpammerDelay = (int)Prefab.Slider(5f, 10000f, (float)MiscOptions.SpammerDelay, 190);
         });
         Prefab.MenuArea(new Rect(265f, 241f, 256f, 155f), "ВЗАИМОДЕЙСТВИЕ", delegate
         {
             Prefab.Toggle("Включить", ref InteractionOptions.InteractThroughWalls);
             if (InteractionOptions.InteractThroughWalls)
             {
                 Prefab.Toggle("Через Стены/Полы/и тп", ref InteractionOptions.NoHitStructures);
                 Prefab.Toggle("Через Ящики/Двери/и тп", ref InteractionOptions.NoHitBarricades);
                 Prefab.Toggle("Через Предметы", ref InteractionOptions.NoHitItems);
                 Prefab.Toggle("Через Транспорт", ref InteractionOptions.NoHitVehicles);
                 Prefab.Toggle("Через Ресурсы", ref InteractionOptions.NoHitResources);
                 Prefab.Toggle("Через Земля/Постройки", ref InteractionOptions.NoHitEnvironment);
                 return;
             }
         });
     });
 }
Example #8
0
 // Token: 0x06000157 RID: 343 RVA: 0x0000402B File Offset: 0x0000222B
 public static void SetGUIColors()
 {
     MenuComponent.UpdateColors();
     Prefab.UpdateColors();
 }
Example #9
0
 // Token: 0x0600007A RID: 122 RVA: 0x000086D0 File Offset: 0x000068D0
 public static void Tab()
 {
     Prefab.MenuArea(new Rect(0f, 0f, 611f, 406f), <Module> .smethod_4 <string>(3463225730u), delegate
     {
         AttachTab.sightID = Prefab.TextField(AttachTab.sightID, "Прицел:", 100f, 100f);
         GUILayout.Space(2f);
         AttachTab.tacticalID = Prefab.TextField(AttachTab.tacticalID, "Тактич:", 100f, 100f);
         GUILayout.Space(2f);
         AttachTab.gripID = Prefab.TextField(AttachTab.gripID, "Приклад:", 100f, 100f);
         GUILayout.Space(2f);
         AttachTab.barrelID = Prefab.TextField(AttachTab.barrelID, "Ствол:", 100f, 100f);
         GUILayout.Space(2f);
         AttachTab.magazineID = Prefab.TextField(AttachTab.magazineID, "Магазин:", 100f, 100f);
         GUILayout.Space(5f);
         if (Prefab.Button("Прочитать", 200f, 25f) && Player.player.equipment.useable != null)
         {
             Attachments attachments = (Attachments)AttachTab.attachments1.GetValue(Player.player.equipment.useable);
             if (attachments != null)
             {
                 AttachTab.sightID    = attachments.sightID.ToString();
                 AttachTab.tacticalID = attachments.tacticalID.ToString();
                 AttachTab.gripID     = attachments.gripID.ToString();
                 AttachTab.barrelID   = attachments.barrelID.ToString();
                 AttachTab.magazineID = attachments.magazineID.ToString();
             }
         }
         GUILayout.Space(5f);
         if (Prefab.Button("Применить", 200f, 25f))
         {
             UseableGun obj = (UseableGun)Player.player.equipment.useable;
             if (Player.player.equipment.useable != null)
             {
                 Attachments attachments2 = (Attachments)AttachTab.attachments1.GetValue(obj);
                 Attachments attachments3 = (Attachments)AttachTab.attachments3.GetValue(obj);
                 ushort value;
                 ushort.TryParse(AttachTab.sightID, out value);
                 ushort value2;
                 ushort.TryParse(AttachTab.tacticalID, out value2);
                 ushort value3;
                 ushort.TryParse(AttachTab.gripID, out value3);
                 ushort value4;
                 ushort.TryParse(AttachTab.barrelID, out value4);
                 ushort value5;
                 ushort.TryParse(AttachTab.magazineID, out value5);
                 if (attachments2 != null)
                 {
                     byte[] array  = new byte[18];
                     byte[] array2 = new byte[2];
                     array2        = BitConverter.GetBytes(value);
                     array[0]      = array2[0];
                     array[1]      = array2[1];
                     array2        = BitConverter.GetBytes(value2);
                     array[2]      = array2[0];
                     array[3]      = array2[1];
                     array2        = BitConverter.GetBytes(value3);
                     array[4]      = array2[0];
                     array[5]      = array2[1];
                     array2        = BitConverter.GetBytes(value4);
                     array[6]      = array2[0];
                     array[7]      = array2[1];
                     array2        = BitConverter.GetBytes(value5);
                     array[8]      = array2[0];
                     array[9]      = array2[1];
                     attachments2.updateAttachments(array, true);
                     attachments3.updateAttachments(array, false);
                     AttachTab.upattachments.Invoke(obj, null);
                 }
             }
         }
         Prefab.MenuArea(new Rect(230f, 15f, 230f, 130f), "StatTrack", delegate
         {
             GUILayout.Space(5f);
             AttachTab.id = Prefab.TextField(AttachTab.id, "ID оружия:", 100f, 100f);
             GUILayout.Space(2f);
             AttachTab.count = Prefab.TextField(AttachTab.count, "Убийства:", 100f, 100f);
             GUILayout.Space(5f);
             if (Prefab.Button("Выбрать текущее оружие", 200f, 25f) && Player.player)
             {
                 ItemAsset asset = Player.player.equipment.asset;
                 if (asset != null)
                 {
                     EStatTrackerType estatTrackerType;
                     int num;
                     Player.player.equipment.getUseableStatTrackerValue(out estatTrackerType, out num);
                     AttachTab.id    = asset.id.ToString();
                     AttachTab.count = num.ToString();
                 }
             }
             GUILayout.Space(5f);
             ushort itemID;
             int newValue;
             if (Prefab.Button("Применить", 200f, 25f) && ushort.TryParse(AttachTab.id, out itemID) && int.TryParse(AttachTab.count, out newValue))
             {
                 SkinsUtilities.incrementStatTrackerValue(itemID, newValue);
             }
         });
     });
 }