// Token: 0x0600029F RID: 671 RVA: 0x00017F84 File Offset: 0x00016184
 public static void Tab()
 {
     Prefab.MenuArea(new Rect(0f, 0f, 611f, 406f), <Module> .smethod_7 <string>(208571389u), delegate
     {
         GUILayout.BeginHorizontal(Array.Empty <GUILayoutOption>());
         GUILayout.BeginVertical(new GUILayoutOption[]
         {
             GUILayout.Width(260f)
         });
         Prefab.Toggle("Нет отдачи", ref WeaponOptions.NoRecoil);
         Prefab.Toggle("Нет разброса", ref WeaponOptions.NoSpread);
         Prefab.Toggle("Нет увода", ref WeaponOptions.NoSway);
         Prefab.Toggle("Нет падения пули", ref WeaponOptions.NoDrop);
         Prefab.Toggle("Триггербот", ref TriggerbotOptions.Enabled);
         Prefab.Toggle("Информация об оружии", ref WeaponOptions.ShowWeaponInfo);
         GUILayout.Space(2f);
         GUILayout.EndVertical();
         GUILayout.BeginVertical(Array.Empty <GUILayoutOption>());
         Prefab.Toggle("Изменить зум прицела", ref WeaponOptions.Zoom);
         if (WeaponOptions.Zoom)
         {
             GUILayout.Space(2f);
             GUILayout.Label("Зум: " + WeaponOptions.ZoomValue, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
             WeaponOptions.ZoomValue = (float)((int)Prefab.Slider(2f, 30f, WeaponOptions.ZoomValue, 200));
         }
         GUILayout.EndVertical();
         GUILayout.FlexibleSpace();
         GUILayout.EndHorizontal();
     });
 }
Esempio n. 2
0
 // Token: 0x06000155 RID: 341 RVA: 0x0000F170 File Offset: 0x0000D370
 private void DoSectionTab()
 {
     if (SectionTab.CurrentSectionTab != null)
     {
         this.DoBorder();
         Prefab.MenuArea(new Rect(10f, 20f, MenuComponent.MenuRect.width - 20f, MenuComponent.MenuRect.height - 30f), SectionTab.CurrentSectionTab.name.ToUpper(), SectionTab.CurrentSectionTab.code);
         bool flag = false;
         if (Prefab.MenuTabAbsolute(new Vector2(17f, 448f), "назад", ref flag, 29))
         {
             SectionTab.CurrentSectionTab = null;
         }
     }
 }
Esempio n. 3
0
 // Token: 0x06000269 RID: 617 RVA: 0x00016868 File Offset: 0x00014A68
 public static void Tab()
 {
     Prefab.ScrollView(new Rect(0f, 0f, 395f, 406f), "СТАТИСТИКА", ref StatsTab.ScrollPos, delegate()
     {
         for (int i = 0; i < StatsTab.StatLabels.Length; i++)
         {
             if (Prefab.Button(StatsTab.StatLabels[i], 350f, 25f))
             {
                 StatsTab.Selected = i;
             }
             GUILayout.Space(3f);
         }
     }, 20);
     Prefab.MenuArea(new Rect(400f, 0f, 196f, 406f), "Изменить", delegate
     {
         if (StatsTab.Selected == 0)
         {
             return;
         }
         string text = StatsTab.StatLabels[StatsTab.Selected];
         int num;
         if (!SteamUserStats.GetStat(StatsTab.StatNames[StatsTab.Selected], out num))
         {
             return;
         }
         GUILayout.Label(text, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
         GUILayout.Space(4f);
         GUILayout.Label(string.Format("Текущее: {0}", num), Prefab._TextStyle, Array.Empty <GUILayoutOption>());
         GUILayout.Space(3f);
         StatsTab.Amount = Prefab.TextField(StatsTab.Amount, "Изменение: ", 50f);
         GUILayout.Space(2f);
         int num2;
         if (int.TryParse(StatsTab.Amount, out num2))
         {
             if (Prefab.Button("Добавить", 75f, 25f))
             {
                 for (int i = 1; i <= num2; i++)
                 {
                     SteamUserStats.SetStat(StatsTab.StatNames[StatsTab.Selected], num + i);
                 }
                 SteamUserStats.StoreStats();
             }
             return;
         }
     });
 }
Esempio n. 4
0
 // Token: 0x0600006D RID: 109 RVA: 0x00007DC4 File Offset: 0x00005FC4
 public static void Tab()
 {
     Prefab.MenuArea(new Rect(0f, 0f, 611f, 406f), <Module> .smethod_7 <string>(3665911882u), delegate
     {
         Prefab.MenuArea(new Rect(10f, 291f, 230f, 105f), "УРОН", delegate
         {
             Prefab.Toggle("Случайная часть тела", ref RaycastOptions.UseRandomLimb);
             if (!RaycastOptions.UseRandomLimb)
             {
                 Prefab.Toggle("Выбрать часть тела", ref RaycastOptions.UseCustomLimb);
             }
             if (RaycastOptions.UseCustomLimb && !RaycastOptions.UseRandomLimb)
             {
                 GUILayout.Space(10f);
                 RaycastOptions.TargetLimb = (ELimb)Prefab.Arrows(200f, (int)RaycastOptions.TargetLimb, RaycastOptions.TargetLimb.ToString().Replace('_', ' '), Enum.GetValues(typeof(ELimb)).Length - 1);
             }
         });
         GUILayout.BeginHorizontal(Array.Empty <GUILayoutOption>());
         GUILayout.BeginVertical(new GUILayoutOption[]
         {
             GUILayout.Width(260f)
         });
         Prefab.Toggle("Silent Аимбот", ref RaycastOptions.Enabled);
         GUILayout.Space(2f);
         if (RaycastOptions.Enabled)
         {
             Prefab.Toggle("Использовать FOV", ref RaycastOptions.SilentAimUseFOV);
             if (RaycastOptions.SilentAimUseFOV)
             {
                 GUILayout.Space(2f);
                 GUILayout.Label("FOV: " + RaycastOptions.SilentAimFOV, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                 RaycastOptions.SilentAimFOV = (float)((int)Prefab.Slider(1f, 90f, RaycastOptions.SilentAimFOV, 200));
                 Prefab.Toggle("Показывать FOV", ref MiscOptions.ShowSilentFOV);
             }
             GUILayout.Space(2f);
             Prefab.Toggle("Не стрелять через стену", ref RaycastOptions.WallCheck);
             GUILayout.Space(2f);
             if (!RaycastOptions.WallCheck)
             {
                 Prefab.Toggle("Авто радиус", ref SphereOptions.SpherePrediction);
                 GUILayout.Space(5f);
                 if (!SphereOptions.SpherePrediction)
                 {
                     GUILayout.Label("Радиус сферы: " + Math.Round((double)SphereOptions.SphereRadius, 1) + "m", Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                     SphereOptions.SphereRadius = Prefab.Slider(1f, 16f, SphereOptions.SphereRadius, 200);
                 }
             }
             GUILayout.Space(2f);
             GUILayout.BeginHorizontal(new GUILayoutOption[]
             {
                 GUILayout.Width(230f)
             });
             GUILayout.BeginVertical(Array.Empty <GUILayoutOption>());
             Prefab.Toggle("Игроки", ref RaycastOptions.TargetPlayers);
             Prefab.Toggle("Зомби", ref RaycastOptions.TargetZombies);
             Prefab.Toggle("Кровати", ref RaycastOptions.TargetBeds);
             Prefab.Toggle("Ящики", ref RaycastOptions.TargetStorage);
             GUILayout.EndVertical();
             GUILayout.BeginVertical(Array.Empty <GUILayoutOption>());
             Prefab.Toggle("Животные", ref RaycastOptions.TargetAnimals);
             Prefab.Toggle("Клейм Флаги", ref RaycastOptions.TargetClaimFlags);
             Prefab.Toggle("Турели", ref RaycastOptions.TargetSentries);
             Prefab.Toggle("Машины", ref RaycastOptions.TargetVehicles);
             GUILayout.EndVertical();
             GUILayout.EndHorizontal();
         }
         GUILayout.EndVertical();
         GUILayout.BeginVertical(Array.Empty <GUILayoutOption>());
         Prefab.Toggle("Аимбот", ref AimbotOptions.Enabled);
         if (AimbotOptions.Enabled)
         {
             GUILayout.Space(2f);
             Prefab.Toggle("По клавише", ref AimbotOptions.OnKey);
             Prefab.Toggle("Плавность", ref AimbotOptions.Smooth);
             GUILayout.Space(3f);
             if (AimbotOptions.Smooth)
             {
                 GUILayout.Label("Скорость: " + AimbotOptions.AimSpeed, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
                 AimbotOptions.AimSpeed = (float)((int)Prefab.Slider(1f, AimbotOptions.MaxSpeed, AimbotOptions.AimSpeed, 200));
             }
             GUILayout.Label("FOV: " + AimbotOptions.FOV, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
             AimbotOptions.FOV = (float)((int)Prefab.Slider(1f, 90f, AimbotOptions.FOV, 200));
             Prefab.Toggle("Показывать FOV", ref MiscOptions.ShowAimFOV);
             GUILayout.Space(10f);
             string[] array = new string[]
             {
                 "Дистанция",
                 "FOV"
             };
             AimbotOptions.TargetMode = (TargetMode)Prefab.Arrows(200f, (int)AimbotOptions.TargetMode, "Очередь: " + array[(int)AimbotOptions.TargetMode], array.Length - 1);
         }
         GUILayout.EndVertical();
         GUILayout.EndHorizontal();
     });
 }
 // Token: 0x06000184 RID: 388 RVA: 0x00010400 File Offset: 0x0000E600
 public static void Tab()
 {
     Prefab.MenuArea(new Rect(0f, 0f, 611f, 406f), <Module> .smethod_8 <string>(3414214735u), delegate
     {
         GUILayout.BeginHorizontal(Array.Empty <GUILayoutOption>());
         GUILayout.BeginVertical(new GUILayoutOption[]
         {
             GUILayout.Width(260f)
         });
         GUILayout.Space(2f);
         Prefab.Toggle("Авто подбор растений", ref ItemOptions.AutoFarmPickup);
         Prefab.Toggle("Авто подбор кустов", ref ItemOptions.AutoForagePickup);
         GUILayout.Space(5f);
         GUILayout.Label("Расстояние: " + ItemOptions.FarmPickupRange, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
         GUILayout.Space(2f);
         ItemOptions.FarmPickupRange = (float)((int)Prefab.Slider(0f, 1000f, ItemOptions.FarmPickupRange, 175));
         if (ItemOptions.EnablePickupFilter)
         {
             ItemUtilities.DrawFilterTab(ItemOptions.ItemFilterOptions);
         }
         Prefab.Toggle("Фильтр предметов", ref ItemOptions.EnablePickupFilter);
         GUILayout.Space(2f);
         Prefab.Toggle("Авто подбор предметов", ref ItemOptions.AutoItemPickup);
         GUILayout.Space(5f);
         GUILayout.Label("Задержка: " + ItemOptions.ItemPickupDelay + "ms", Prefab._TextStyle, Array.Empty <GUILayoutOption>());
         GUILayout.Space(2f);
         ItemOptions.ItemPickupDelay = (int)Prefab.Slider(200f, 1000f, (float)ItemOptions.ItemPickupDelay, 175);
         Prefab.Toggle("Нет таймера на выход", ref MiscOptions.Disconnect);
         GUILayout.Space(5f);
         if (Prefab.Button("Отключится от сервера", 200f, 25f))
         {
             Provider.disconnect();
         }
         GUILayout.Space(5f);
         if (Prefab.Button("Убрать воду", 200f, 25f))
         {
             if (MiscOptions.Altitude == 0f)
             {
                 MiscOptions.Altitude = LevelLighting.seaLevel;
             }
             LevelLighting.seaLevel = ((LevelLighting.seaLevel == 0f) ? MiscOptions.Altitude : 0f);
         }
         GUILayout.Space(5f);
         if (Provider.cameraMode != ECameraMode.BOTH)
         {
             if (Prefab.Button("Включить 3 лицо", 200f, 25f))
             {
                 Provider.cameraMode = ECameraMode.BOTH;
                 goto IL_218;
             }
         }
         if (Provider.cameraMode == ECameraMode.BOTH && Prefab.Button("Выключить 3 лицо", 200f, 25f))
         {
             Provider.cameraMode = ECameraMode.VEHICLE;
         }
         IL_218:
         GUILayout.EndVertical();
         GUILayout.BeginVertical(Array.Empty <GUILayoutOption>());
         GUILayout.Label(string.Format("Метод краша сервера: {0}", MiscOptions.SCrashMethod), Prefab._TextStyle, Array.Empty <GUILayoutOption>());
         GUILayout.Space(2f);
         MiscOptions.SCrashMethod = (int)Prefab.Slider(1f, 3f, (float)MiscOptions.SCrashMethod, 175);
         Prefab.Toggle("Краш сервера", ref ServerCrashThread.ServerCrashEnabled);
         Prefab.Toggle("Предупреждать при Spy", ref MiscOptions.AlertOnSpy);
         GUILayout.Space(5f);
         Prefab.Toggle("Дальность поднятия в инвентаре", ref MiscOptions.IncreaseNearbyItemDistance);
         Prefab.Toggle("Быстрая покупка", ref MiscOptions.FastBuy);
         Prefab.Toggle("Быстрая продажа", ref MiscOptions.FastSell);
         if (MiscOptions.FastSell || MiscOptions.FastBuy)
         {
             GUILayout.Space(5f);
             GUILayout.Label("Количество: " + MiscOptions.FastSellCount, Prefab._TextStyle, Array.Empty <GUILayoutOption>());
             GUILayout.Space(2f);
             MiscOptions.FastSellCount = (int)Prefab.Slider(1f, 20f, (float)MiscOptions.FastSellCount, 175);
         }
         GUILayout.Space(10f);
         if (Prefab.Button("Сменить HWID", 200f, 25f))
         {
             byte[] array = new byte[20];
             for (int i = 0; i < 20; i++)
             {
                 array[i] = (byte)UnityEngine.Random.Range(0, 256);
             }
             MoreMiscTab.hwidfield.SetValue(null, array);
         }
         GUILayout.Space(10f);
         if (Prefab.Button("Отключить чит полностью", 200f, 25f))
         {
             PlayerCoroutines.DisableAllVisuals();
             OverrideManager.RemoveOverrides();
             UnityEngine.Object.DestroyImmediate(abc.HookObject);
         }
         GUILayout.EndVertical();
         GUILayout.EndHorizontal();
     });
 }
Esempio n. 6
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);
     });
 }
Esempio n. 7
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);
            });
        }
Esempio n. 8
0
 // 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");
             }
         });
     });
 }
Esempio n. 9
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();
     });
 }
Esempio n. 10
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;
             }
         });
     });
 }
Esempio n. 11
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);
             }
         });
     });
 }