Esempio n. 1
0
 // Token: 0x06000044 RID: 68 RVA: 0x00006A00 File Offset: 0x00004C00
 public static void Tab()
 {
     Prefab.ScrollView(new Rect(0f, 0f, 611f, 370f), "Бинды чата", ref ChatCMD.HotkeyScroll, delegate()
     {
         GUILayout.Space(10f);
         foreach (KeyValuePair <string, Hotkey> keyValuePair in HotkeyOptions.ChatKeys)
         {
             ChatCMD.DrawButton(keyValuePair.Key);
         }
     }, 20);
     GUILayout.Space(380f);
     GUILayout.BeginHorizontal(Array.Empty <GUILayoutOption>());
     if (Prefab.Button("Добавить", 75f, 25f) && !HotkeyOptions.ChatKeys.ContainsKey(ChatCMD.NewKey))
     {
         HotkeyOptions.ChatKeys.Add(ChatCMD.NewKey, new Hotkey
         {
             Keys = new KeyCode[0],
             Name = ChatCMD.NewKey
         });
     }
     GUILayout.Space(10f);
     GUILayout.BeginVertical(Array.Empty <GUILayoutOption>());
     GUILayout.Space(5f);
     ChatCMD.NewKey = Prefab.TextField(ChatCMD.NewKey, "Текст: ", 477f);
     GUILayout.EndVertical();
     GUILayout.EndHorizontal();
     if (Prefab.Button("Бинды", new Rect(0f, 0f, 100f, 21f)))
     {
         HotkeyTab.chat = !HotkeyTab.chat;
     }
 }
 // Token: 0x06000257 RID: 599 RVA: 0x00016118 File Offset: 0x00014318
 public static void DrawSkins(SkinOptionList OptionList)
 {
     Prefab.SectionTabButton(OptionList.Type.ToString(), delegate
     {
         GUILayout.BeginHorizontal(Array.Empty <GUILayoutOption>());
         GUILayout.Space(60f);
         SkinsUtilities.SearchString = Prefab.TextField(SkinsUtilities.SearchString, "Поиск:", 480f);
         GUILayout.EndHorizontal();
         Rect area    = new Rect(70f, 40f, 540f, 395f);
         string title = OptionList.Type.ToString();
         Prefab.ScrollView(area, title, ref SkinsUtilities.ScrollPos, new System.Action(base.method_0), 20);
     }, 0f, 20);
 }
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: 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. 5
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. 6
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. 7
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);
             }
         });
     });
 }