Exemple #1
0
        // Token: 0x06000205 RID: 517 RVA: 0x00013598 File Offset: 0x00011798
        static Prefab()
        {
            Prefab._None = new GUIStyle();
            Prefab._None.normal.background = null;
            Prefab._MenuTabStyle           = new GUIStyle
            {
                font     = MenuComponent._TabFont,
                fontSize = 29
            };
            Prefab._HeaderStyle = new GUIStyle
            {
                font      = MenuComponent._TabFont,
                fontSize  = 15,
                alignment = TextAnchor.MiddleCenter
            };
            Prefab._TextStyle = new GUIStyle
            {
                font     = MenuComponent._TextFont,
                fontSize = 16
            };
            Prefab._sliderStyle      = new GUIStyle();
            Prefab._sliderThumbStyle = new GUIStyle(GUI.skin.horizontalSliderThumb)
            {
                fixedWidth = 7f
            };
            Prefab._sliderVThumbStyle = new GUIStyle(GUI.skin.verticalSliderThumb)
            {
                fixedHeight = 7f
            };
            Prefab._listStyle = new GUIStyle
            {
                alignment = TextAnchor.MiddleCenter,
                font      = MenuComponent._TextFont,
                fontSize  = 15
            };
            RectOffset padding  = Prefab._listStyle.padding;
            RectOffset padding2 = Prefab._listStyle.padding;
            RectOffset padding3 = Prefab._listStyle.padding;

            Prefab._listStyle.padding.bottom = 4;
            padding3.top        = 4;
            padding2.right      = 4;
            padding.left        = 4;
            Prefab._ButtonStyle = new GUIStyle
            {
                alignment = TextAnchor.MiddleLeft,
                font      = MenuComponent._TextFont,
                fontSize  = 15
            };
            RectOffset padding4 = Prefab._ButtonStyle.padding;
            RectOffset padding5 = Prefab._ButtonStyle.padding;
            RectOffset padding6 = Prefab._ButtonStyle.padding;

            Prefab._ButtonStyle.padding.bottom = 4;
            padding6.top   = 4;
            padding5.right = 4;
            padding4.left  = 4;
            MenuUtilities.FixGUIStyleColor(Prefab._sliderStyle);
            MenuUtilities.FixGUIStyleColor(Prefab._MenuTabStyle);
            MenuUtilities.FixGUIStyleColor(Prefab._TextStyle);
            Prefab.UpdateColors();
            Fonts.Apply();
        }
 // 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");
             }
         });
     });
 }