Ejemplo n.º 1
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);
            });
        }
Ejemplo n.º 2
0
 // Token: 0x0600008D RID: 141 RVA: 0x00009278 File Offset: 0x00007478
 public static void Init()
 {
     Color[] array = new Color[]
     {
         Color.red,
         new Color(1f, 0.5f, 0f),
         new Color(0.3f, 0.5f, 1f),
         new Color(1f, 0.5f, 0f),
         Color.white,
         Color.white,
         Color.yellow,
         Color.green,
         Color.yellow,
         new Color(1f, 0.5f, 0f),
         Color.green,
         new Color(1f, 0.5f, 0f),
         new Color(0.5f, 0.9f, 0.3f)
     };
     string[] array2 = new string[]
     {
         "Игроки",
         "Зомби",
         "Предметы",
         "Турели",
         "Кровати",
         "Клейм Флаги",
         "Транспорт",
         "Ящики",
         "Генераторы",
         "Животные",
         "Растения",
         "Ловушки",
         "Аирдроп"
     };
     for (int i = 0; i < ESPOptions.VisualOptions.Length; i++)
     {
         string arg = array2[i];
         ColorUtilities.addColor(new ColorVariable(string.Format("_{0}", (ESPTarget)i), string.Format("ESP - {0}", arg), array[i], false));
         ColorUtilities.addColor(new ColorVariable(string.Format("_{0}_Info", (ESPTarget)i), string.Format("ESP - {0} (Доп инфа)", arg), Color.white, false));
         ColorUtilities.addColor(new ColorVariable(string.Format("_{0}_Glow", (ESPTarget)i), string.Format("ESP - {0} (Обводка)", arg), Color.yellow, false));
     }
     ColorUtilities.addColor(new ColorVariable("_ESPFriendly", "ESP - Игроки (Друзья)", Color.green, false));
     ColorUtilities.addColor(new ColorVariable("_ChamsFriendVisible", "Chams - Видимый друг", Color.green, false));
     ColorUtilities.addColor(new ColorVariable("_ChamsFriendInvisible", "Chams - Невидимый друг", Color.blue, false));
     ColorUtilities.addColor(new ColorVariable("_ChamsEnemyVisible", "Chams - Видимый противник", new Color32(byte.MaxValue, 165, 0, byte.MaxValue), false));
     ColorUtilities.addColor(new ColorVariable("_ChamsEnemyInvisible", "Chams - Невидимый противник", Color.red, false));
     ColorUtilities.addColor(new ColorVariable("_WeaponInfoColor", "Оружия - Информация", new Color32(0, byte.MaxValue, 0, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_OutlineText", "Текст - граница", Color.black, false));
     ColorUtilities.addColor(new ColorVariable("_OutlineBorderBlack", "Меню - граница 1", new Color32(3, 3, 3, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_OutlineBorderLightGray", "Меню - граница 2", new Color32(75, 75, 75, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_OutlineBorderDarkGray", "Меню - граница 3", new Color32(55, 55, 55, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_FillLightBlack", "Меню - заполнение", new Color32(30, 30, 30, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_Accent1", "Меню - цвет 1", new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_Accent2", "Меню - цвет 2", new Color32(244, 244, 244, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_MenuTabOff", "Меню Окно - Выкл", new Color32(160, 160, 160, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_MenuTabOn", "Меню Окно - Вкл", new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_MenuTabHover", "Меню Окно - Наведено", new Color32(210, 210, 210, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_TextStyleOff", "Меню Надписи - Выкл", new Color32(160, 160, 160, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_TextStyleOn", "Меню Надписи - Вкл", new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_TextStyleHover", "Меню Надписи - Наведено", new Color32(210, 210, 210, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_HeaderStyle", "Меню Зона - Заголовок", new Color32(210, 210, 210, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_ToggleBoxBG", "Меню Галочка - Фон", new Color32(71, 70, 71, byte.MaxValue), true));
     ColorUtilities.addColor(new ColorVariable("_ButtonBG", "Меню Кнопка - Фон", new Color32(130, 130, 130, byte.MaxValue), true));
     MenuComponent.UpdateColors();
 }
Ejemplo n.º 3
0
 // Token: 0x06000157 RID: 343 RVA: 0x0000402B File Offset: 0x0000222B
 public static void SetGUIColors()
 {
     MenuComponent.UpdateColors();
     Prefab.UpdateColors();
 }