// Token: 0x06000254 RID: 596 RVA: 0x00015B54 File Offset: 0x00013D54
 public static void Apply(Skin skin, ESkinType skinType)
 {
     if (skinType == ESkinType.WEAPONS)
     {
         Dictionary <ushort, int> itemSkins = Player.player.channel.owner.itemSkins;
         if (itemSkins == null)
         {
             return;
         }
         ushort inventoryItemID = Provider.provider.economyService.getInventoryItemID(skin.ID);
         SkinOptions.SkinConfig.WeaponSkins.Clear();
         int num;
         if (itemSkins.TryGetValue(inventoryItemID, out num))
         {
             itemSkins[inventoryItemID] = skin.ID;
         }
         else
         {
             itemSkins.Add(inventoryItemID, skin.ID);
         }
         Player.player.equipment.applySkinVisual();
         Player.player.equipment.applyMythicVisual();
         using (Dictionary <ushort, int> .Enumerator enumerator = itemSkins.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 KeyValuePair <ushort, int> keyValuePair = enumerator.Current;
                 SkinOptions.SkinConfig.WeaponSkins.Add(new WeaponSave(keyValuePair.Key, keyValuePair.Value));
             }
             return;
         }
     }
     SkinsUtilities.ApplyClothing(skin, skinType);
 }
 // Token: 0x06000250 RID: 592 RVA: 0x00015AD4 File Offset: 0x00013CD4
 public static void Tab()
 {
     SkinsUtilities.DrawSkins(SkinOptions.SkinWeapons);
     SkinsUtilities.DrawSkins(SkinOptions.SkinClothesShirts);
     SkinsUtilities.DrawSkins(SkinOptions.SkinClothesPants);
     SkinsUtilities.DrawSkins(SkinOptions.SkinClothesBackpack);
     SkinsUtilities.DrawSkins(SkinOptions.SkinClothesHats);
     SkinsUtilities.DrawSkins(SkinOptions.SkinClothesMask);
     SkinsUtilities.DrawSkins(SkinOptions.SkinClothesVest);
     SkinsUtilities.DrawSkins(SkinOptions.SkinClothesGlasses);
     GUILayout.Space(8f);
     GUILayout.Label(< Module >.smethod_8 <string>(3366905210u), Prefab._TextStyle, Array.Empty <GUILayoutOption>());
 }
 // Token: 0x0600016E RID: 366 RVA: 0x0000F864 File Offset: 0x0000DA64
 private void Start()
 {
     MiscComponent.Instance = this;
     new Thread(new ThreadStart(DrawUtilities.Min)).Start();
     HotkeyComponent.ActionDict.Add("_VFToggle", delegate
     {
         MiscOptions.VehicleFly = !MiscOptions.VehicleFly;
     });
     HotkeyComponent.ActionDict.Add("_ToggleSilent", delegate
     {
         RaycastOptions.Enabled = !RaycastOptions.Enabled;
     });
     HotkeyComponent.ActionDict.Add("_ToggleAimbot", delegate
     {
         AimbotOptions.Enabled = !AimbotOptions.Enabled;
     });
     HotkeyComponent.ActionDict.Add("_ToggleFreecam", delegate
     {
         MiscOptions.Freecam = !MiscOptions.Freecam;
     });
     HotkeyComponent.ActionDict.Add("_PanicButton", delegate
     {
         MiscOptions.PanicMode = !MiscOptions.PanicMode;
         if (MiscOptions.PanicMode)
         {
             MenuComponent.IsInMenu = false;
             PlayerCoroutines.DisableAllVisuals();
             return;
         }
         PlayerCoroutines.EnableAllVisuals();
     });
     HotkeyComponent.ActionDict.Add("_AutoPickup", delegate
     {
         ItemOptions.AutoItemPickup = !ItemOptions.AutoItemPickup;
     });
     HotkeyComponent.ActionDict.Add("_ToggleSlowFall", delegate
     {
         MiscOptions.SlowFall = !MiscOptions.SlowFall;
     });
     SkinsUtilities.RefreshEconInfo();
 }
 // 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");
             }
         });
     });
 }
Beispiel #5
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);
             }
         });
     });
 }