Example #1
0
    void OnGUI()
    {
        if (Styles == null)
        {
            CacheStyles();
        }
        if (m_AreaStyle == null)
        {
            m_AreaStyle = new GUIStyle
            {
                normal =
                {
                    background = m_Area
                }
            }
        }
        ;
        GUILayout.BeginArea(new Rect(0f, 0f, Screen.width, Screen.height), m_AreaStyle);
        GUI.skin.label.alignment = TextAnchor.MiddleCenter;
        GUILayout.Label("Please choose a font");
        GUILayout.FlexibleSpace();
        m_ScrollPos = GUILayout.BeginScrollView(m_ScrollPos);
        foreach (KeyValuePair <string, GUIStyle> gs in Styles)
        {
            if (GUILayout.Button(gs.Key, gs.Value, GUILayout.MinHeight(30f)))
            {
                LMS_Meta.setMetaValue("LAB_FONT", gs.Key);
                Destroy(gameObject);
            }
        }
        GUILayout.EndScrollView();
        GUILayout.FlexibleSpace();
        GUILayout.EndArea();
    }

    void CacheStyles()
    {
        Styles = new Dictionary <string, GUIStyle>();
        foreach (string s in Font.GetOSInstalledFontNames())
        {
            GUIStyle gs = new GUIStyle(GUI.skin.button)
            {
                font      = Font.CreateDynamicFontFromOSFont(s, 13),
                alignment = TextAnchor.MiddleCenter
            };
            Styles[s] = gs;
        }
    }

    Texture2D plainTex(Color c)
    {
        Texture2D t = new Texture2D(1, 1);

        t.SetPixel(0, 0, c);
        t.Apply();
        return(t);
    }
}
Example #2
0
    void OnGUI()
    {
        if (Hidden || m_IdleStateTex == null)
        {
            return;
        }
        if (!canRender)
        {
            return;
        }
        GUI.DrawTexture(primary ? liveRect : QuickRect(), m_IdleStateTex);
        if (!Draggable)
        {
            return;
        }
        Event e = Event.current;

        if (e.type == EventType.MouseDown && liveRect.Contains(e.mousePosition))
        {
            m_Down = true;
        }
        if (e.type == EventType.MouseDrag && m_Down && LMS_Meta.getMetaValue("VERT_SCROLL_DOWN", "0") == "0")
        {
            liveRect.x += e.delta.x;
            if (Application.platform == RuntimePlatform.Android)
            {
                liveRect.y -= e.delta.y;
            }
            else
            {
                liveRect.y += e.delta.y;
            }
        }
        if (e.type == EventType.MouseUp && m_Down)
        {
            m_Down = false;
        }
    }
Example #3
0
 void InitLabels()
 {
     Creditslabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(330f, 173f, 431f, 150f),
         Text        = "Hacks Made By\n\nLercio12\nMRKDaGods\nxXxShanGoxXx",
         RenderStyle = new GUIStyle
         {
             fontSize  = 25,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = new Color(190f / 255f, 211f / 255f, 33f / 255f)
             }
         }
     }, 3);
     AutomationLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 30f, 431f, 150f),
         Text        = "Automation Hacks",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 1);
     EspLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 65f, 431f, 150f),
         Text        = "Esp Hacks",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 2);
     MiscLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 100f, 431f, 150f),
         Text        = "Misc Hacks",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 4);
     MovementLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 135f, 431f, 150f),
         Text        = "Movement Hacks",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 6);
     FunLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 170f, 431f, 150f),
         Text        = "Fun Hacks",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 7);
     GUIEditorLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 205f, 431f, 150f),
         Text        = "GUI Editor",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 8);
     UpdaterLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 240f, 431f, 150f),
         Text        = "Update",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 9);
     _CreditsLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 275f, 431f, 150f),
         Text        = "Credits",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 10);
     OptTitle = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(168f, 25f, 431f, 150f),
         Text        = "TITLE",
         RenderStyle = new GUIStyle
         {
             fontSize  = 22,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 11);
     OptText = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(168f, 118f, 431f, 150f),
         Text        = "TEXT",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 12);
     Version = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(382f, 284f, 238f, 152f),
         Text        = "V" + LMS_Meta.getMetaValue("VER"),
         RenderStyle = new GUIStyle
         {
             fontSize  = 25,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = new Color(190f / 255f, 211f / 255f, 33f / 255f)
             }
         }
     }, 5);
     InitLabelDefault(AutomationLabel);
     InitLabelDefault(EspLabel);
     InitLabelDefault(Creditslabel);
     InitLabelDefault(MiscLabel);
     InitLabelDefault(Version);
     InitLabelDefault(MovementLabel);
     InitLabelDefault(FunLabel);
     InitLabelDefault(GUIEditorLabel);
     InitLabelDefault(UpdaterLabel);
     InitLabelDefault(_CreditsLabel);
     InitLabelDefault(OptText);
     InitLabelDefault(OptTitle);
     Creditslabel.SetFlags("EXTRUDE", "OUTLINE");
     Version.SetFlags("OUTLINE");
     Creditslabel.SetRenderMode(E_ColorFlags.FIXED);
     Version.SetRenderMode(E_ColorFlags.FIXED);
     OptText.SetRenderMode(E_ColorFlags.FIXED);
     OptTitle.SetRenderMode(E_ColorFlags.FIXED);
     OptText.SetFlags("NONE");
     OptTitle.SetFlags("NONE");
 }
 void InitLabels()
 {
     TitleLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(220f, 4f, 431f, 150f),
         Text        = string.Format("<b>LMS {0} [<color=#83b6ef>Critical OPS</color></b>] - Main Menu", LMS_Meta.getMetaValue("VER")),
         RenderStyle = new GUIStyle
         {
             fontSize  = 23,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     MenuDescriptionLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(315f, 65f, 431f, 150f),
         Text        = "Combat hacks such as Aimbot, TriggerBot, etc",
         RenderStyle = new GUIStyle
         {
             fontSize  = 21,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     AutomationLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12.5f, 55f, 474f, 185f),
         Text        = "Automation",
         RenderStyle = new GUIStyle
         {
             fontSize  = 21,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     ActiveHierarchyLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(306f, 35f, 481f, 168f),
         Text        = "Active Hierarchy\nIf you see this then contact Lercio or MRK",
         RenderStyle = new GUIStyle
         {
             fontSize  = 17,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     ESPLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12.5f, 100f, 474f, 227f),
         Text        = "Esp",
         RenderStyle = new GUIStyle
         {
             fontSize  = 21,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     MiscLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12.5f, 160f, 474f, 227f),
         Text        = "Misc",
         RenderStyle = new GUIStyle
         {
             fontSize  = 21,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     InitLabelDefault(TitleLabel);
     InitLabelDefault(MenuDescriptionLabel);
     InitLabelDefault(AutomationLabel);
     InitLabelDefault(ActiveHierarchyLabel);
     InitLabelDefault(ESPLabel);
     InitLabelDefault(MiscLabel);
 }
Example #5
0
    void OnGUI()
    {
        if (Hidden)
        {
            return;
        }
        GUI.DrawTexture(QuickRect(), m_IdleTex);
        if (LMS_GuiBaseUtils.IsConflicting(QuickRect()))
        {
            return;
        }
        Event e = Event.current;

        if (e.type == EventType.MouseDown)
        {
            LMS_GuiBaseCallback cb = LMS_GuiBaseUtils.GetElementAt(e.mousePosition);
            if (cb != null && (cb.Hack || cb is LMS_GuiBaseTouchBar))
            {
                if (QuickRect().Contains(e.mousePosition))
                {
                    loc       = e.mousePosition;
                    mouseDown = true;
                }
            }
        }
        if (e.type == EventType.MouseDrag)
        {
            if (mouseDown)
            {
                newOrigin = e.mousePosition;
            }
        }
        if (e.type == EventType.MouseUp)
        {
            if (mouseDown)
            {
                if (LMS_Main.Instance.LeftBarOverlay.Owner.liveRect.Contains(e.mousePosition) || LMS_Meta.getMetaValue("VERT_SCROLL_DOWN", "0") == "1")
                {
                    return;
                }
                if (newOrigin == Vector2.zero)
                {
                    onSwipe(E_Swipe.IDLE);
                }
                else if (newOrigin.y > loc.y)
                {
                    onSwipe(E_Swipe.DOWN);
                }
                else if (newOrigin.y < loc.y)
                {
                    onSwipe(E_Swipe.UP);
                }
                mouseDown = false;
            }
            loc       = Vector2.zero;
            newOrigin = loc;
        }
    }
    void OnGUI()
    {
        if (Hidden)
        {
            return;
        }
        if (!canRender)
        {
            return;
        }
        //GUILayout.BeginArea(QuickRect());
        //GUILayout.FlexibleSpace();
        switch (m_RenderMode)
        {
        case E_ColorFlags.CHROMA:     //rapid flashing
            m_LastRenderColor = HexColor(new Color(Random.Range(0.1f, 1f), Random.Range(0.1f, 1f), Random.Range(0.1f, 1f)));
            break;

        case E_ColorFlags.CHROMATIMED:
            if (!m_ColThread.Render)
            {
                m_ColThread.Render = true;
            }
            m_LastRenderColor = m_ColThread.Value();
            break;

        default:
        case E_ColorFlags.FIXED:
            m_LastRenderColor = HexColor(Config.RenderStyle.normal.textColor);
            break;
        }
        if (Config.RenderStyle.font == null)
        {
            Config.RenderStyle.font = Font.CreateDynamicFontFromOSFont(LMS_Meta.getMetaValue("LAB_FONT"), Config.RenderStyle.fontSize);
        }
        if (Disable)
        {
            m_LastRenderColor = HexColor(Color.gray);
        }
        if (m_ExtraFlags != null)
        {
            foreach (string s in m_ExtraFlags)
            {
                switch (s)
                {
                case "NONE":
                    break;

                case "EXTRUDE":
                    GUI.Label(new Rect(QuickRect().position + new Vector2(1f, 1f), QuickRect().size), string.Format("<color=#{0}>{1}</color>", HexColor(Color.black), Config.Text), Config.RenderStyle);
                    break;

                case "UNDERLINE":
                    GUI.Label(new Rect(QuickRect().position + new Vector2(0f, 2f), QuickRect().size), string.Format("<color=#{0}>{1}</color>", m_LastRenderColor, UnderliningString), Config.RenderStyle);
                    break;

                case "OUTLINE":
                    GUI.Label(new Rect(QuickRect().position + new Vector2(1f, 0f), QuickRect().size), string.Format("<color=#{0}>{1}</color>", HexColor(Color.black), Config.Text), Config.RenderStyle);
                    GUI.Label(new Rect(QuickRect().position + new Vector2(0f, 1f), QuickRect().size), string.Format("<color=#{0}>{1}</color>", HexColor(Color.black), Config.Text), Config.RenderStyle);
                    GUI.Label(new Rect(QuickRect().position - new Vector2(0f, 1f), QuickRect().size), string.Format("<color=#{0}>{1}</color>", HexColor(Color.black), Config.Text), Config.RenderStyle);
                    break;
                }
            }
        }
        GUI.Label(QuickRect(), string.Format("<color=#{0}>{1}</color>", m_LastRenderColor, Config.Text), Config.RenderStyle);
        // GUILayout.FlexibleSpace();
        //GUILayout.EndArea();
    }
Example #7
0
 void InitLabels()
 {
     UsernameLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(4f, 80f, 431f, 150f),
         Text        = "Username",
         RenderStyle = new GUIStyle
         {
             fontSize  = 15,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     TitleLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(107f, 4f, 431f, 150f),
         Text        = string.Format("<b>LMS {0} [<color=#83b6ef>Critical OPS</color></b>] - Authentication", LMS_Meta.getMetaValue("VER")),
         RenderStyle = new GUIStyle
         {
             fontSize  = 23,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     UsernameRenderer = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(120f, 80f, 461f, 150f),
         RenderStyle = new GUIStyle
         {
             fontSize  = 14,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.cyan
             }
         }
     }, 1);
     PasswordLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(4f, 120f, 431f, 150f),
         Text        = "Password",
         RenderStyle = new GUIStyle
         {
             fontSize  = 15,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     PasswordRenderer = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(120f, 120f, 461f, 150f),
         RenderStyle = new GUIStyle
         {
             fontSize  = 14,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.cyan
             }
         }
     }, 1);
     LoginText = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(150f, 165f, 370f, 190f),
         Text        = "Login",
         RenderStyle = new GUIStyle
         {
             fontSize  = 16,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     ErrorLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(210f, 260f, 431f, 150f),
         Text        = "ERROR HERE",
         RenderStyle = new GUIStyle
         {
             fontSize  = 14,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleRight,
             normal    =
             {
                 textColor = Color.cyan
             }
         }
     }, 15);
     DiscordLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(10f, 185f, 340f, 250f),
         Text        = LMS_GuiBaseLabelBoundaries.WrapText("Don't own the hack? Click here to join our discord and purchase it!", 14, 200f),
         RenderStyle = new GUIStyle
         {
             fontSize  = 14,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     InitLabelDefault(UsernameLabel);
     InitLabelDefault(TitleLabel);
     InitLabelDefault(UsernameRenderer);
     InitLabelDefault(PasswordLabel);
     InitLabelDefault(PasswordRenderer);
     InitLabelDefault(LoginText);
     InitLabelDefault(ErrorLabel);
     InitLabelDefault(DiscordLabel);
     UsernameLabel.SetRenderMode(E_ColorFlags.FIXED);
     TitleLabel.SetRenderMode(E_ColorFlags.FIXED);
     UsernameRenderer.SetRenderMode(E_ColorFlags.FIXED);
     PasswordLabel.SetRenderMode(E_ColorFlags.FIXED);
     PasswordRenderer.SetRenderMode(E_ColorFlags.FIXED);
     ErrorLabel.SetRenderMode(E_ColorFlags.FIXED);
     DiscordLabel.SetFlags("UNDERLINE", LMS_GuiBaseLabelBoundaries.WrapText("_____ ___ ___ _____ _____ ____ __ ____ ___ _______ ___ ________ ___", 14, 200f));
 }
Example #8
0
 void InitButtons()
 {
     LoginButton = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig
     {
         Rect = new Rect(150f, 165f, 370f, 190f),
     }, 1);
     InitButtonDefault(LoginButton, null, null, () =>
     {
         if (ErrorLabel.Config.Text != "")
         {
             LMS_Main.Instance.ShowPopup(1, LMS_GuiBaseLabelBoundaries.WrapText(ErrorLabel.Config.Text, 14, 250f), "Authentication", Color.red);
             return;
         }
         LMS_Main.Instance.ShowPopup(1, "Authentication in progress", "Authentication", Color.gray);
         LMS_Main.Instance.DarkMessageBoxPopup.ShowBackButton(false);
         LMS_TaskManager.RunTaskLater(3, () => { LMS_Main.Instance.DarkMessageBoxPopup.HidePopup(); LMS_SessionServerPeer.Instance.Authenticate(UsernameTextField.Text, PasswordTextField.Text); }, this);
     });
     LoginButton.AllowInput = true;
     DiscordButton          = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig
     {
         Rect = new Rect(10f, 185f, 340f, 250f),
     }, 1);
     InitButtonDefault(DiscordButton, null, null, () => { LMS_Main.Instance.ShowPopup(0, "Would you like to join\nour discord server?", "Discord Server", Color.blue, (res, popup) => { if (res == E_PopupCallback.YES)
                                                                                                                                                                                        {
                                                                                                                                                                                            Application.OpenURL(LMS_Meta.getMetaValue("DISCORD_URL"));
                                                                                                                                                                                        }
                                                                                      }); });
     DiscordButton.AllowInput = true;
 }
Example #9
0
 void InitButtons()
 {
     LoginButton = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig
     {
         Rect = new Rect(165f, 295f, 452f, 154f)
     }, 93);
     PurchaseButton = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig
     {
         Rect = new Rect(363f, 125f, 402f, 374f)
     }, 93);
     LoginButton.SetTexture((int)E_Texture.IDLE, LoginButton.GeneratePlainTexture(new Color(200f / 255f, 220f / 255f, 35f / 255f, 0.3f)));
     LoginButton.SetTexture((int)E_Texture.DOWN, LoginButton.GeneratePlainTexture(new Color(200f / 255f, 220f / 255f, 35f / 255f, 1f)));
     LoginButton.AllowInput = true;
     LoginButton.Hidden     = true;
     LoginButton.OnClick   += () => { LMS_SessionServerPeer.Instance.Authenticate(UserTextField.Text, PassTextField.Text); };
     PurchaseButton.SetTexture((int)E_Texture.IDLE, PurchaseButton.GeneratePlainTexture(Color.clear));
     PurchaseButton.SetTexture((int)E_Texture.DOWN, PurchaseButton.GeneratePlainTexture(Color.blue.AlterAlpha(0.8f)));
     PurchaseButton.AllowInput = true;
     PurchaseButton.OnClick   += () => { LMS_Main.Instance.ShowPopup(0, "Would you like to join\nour discord server?", "Discord Server", Color.blue, (res, popup) => { if (res == E_PopupCallback.YES)
                                                                                                                                                                       {
                                                                                                                                                                           Application.OpenURL(LMS_Meta.getMetaValue("DISCORD_URL"));
                                                                                                                                                                       }
                                                                     }); };
 }
 void InitLabels()
 {
     Creditslabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(330f, 173f, 431f, 150f),
         Text        = "Hacks Made By\n\nLercio12\nMRKDaGods\nxXxShanGoxXx",
         RenderStyle = new GUIStyle
         {
             fontSize  = 25,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = new Color(190f / 255f, 211f / 255f, 33f / 255f)
             }
         }
     }, 13);
     OptTitle = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(168f, 25f, 431f, 150f),
         Text        = "TITLE",
         RenderStyle = new GUIStyle
         {
             fontSize  = 22,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 14);
     OptText = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(168f, 90f, 431f, 150f),
         Text        = "TEXT",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.white
             }
         }
     }, 15);
     Version = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(382f, 284f, 238f, 152f),
         Text        = "V" + LMS_Meta.getMetaValue("VER"),
         RenderStyle = new GUIStyle
         {
             fontSize  = 25,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = new Color(190f / 255f, 211f / 255f, 33f / 255f)
             }
         }
     }, 16);
     WeaponLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 30f, 431f, 150f),
         Text        = "Weapon",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = new Color(190f / 255f, 211f / 255f, 33f / 255f)
             }
         }
     }, 13);
     ScreenLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 65f, 431f, 150f),
         Text        = "Screen",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = new Color(190f / 255f, 211f / 255f, 33f / 255f)
             }
         }
     }, 13);
     CameraLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 100f, 431f, 150f),
         Text        = "Camera",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = new Color(190f / 255f, 211f / 255f, 33f / 255f)
             }
         }
     }, 13);
     PlayerLabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 135f, 431f, 150f),
         Text        = "Player",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = new Color(190f / 255f, 211f / 255f, 33f / 255f)
             }
         }
     }, 13);
     msGUILabel = InstantiateChild <LMS_GuiBaseLabel>(new LMS_GuiConfig()
     {
         Rect        = new Rect(12f, 170f, 431f, 150f),
         Text        = "GUI",
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = new Color(190f / 255f, 211f / 255f, 33f / 255f)
             }
         }
     }, 13);
     OptInvisibleWeaponLabel = InstantiateOptionWindowChild <LMS_GuiBaseLabel>(new LMS_GuiConfig
     {
         Text        = "Invisible\nWeapon",
         Rect        = new Rect(142f, 151f, 430f, 150f),
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.green
             }
         }
     });
     OptInvisibleWeaponToggleLabel = InstantiateOptionWindowChild <LMS_GuiBaseLabel>(new LMS_GuiConfig
     {
         Text        = "Y",
         Rect        = new Rect(247f, 151f, 200f, 146f),
         RenderStyle = new GUIStyle
         {
             fontSize  = 19,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleCenter,
             normal    =
             {
                 textColor = Color.green
             }
         }
     });
     InitLabelDefault(Creditslabel);
     InitLabelDefault(Version);
     InitLabelDefault(OptText);
     InitLabelDefault(OptTitle);
     InitLabelDefault(WeaponLabel);
     InitLabelDefault(ScreenLabel);
     InitLabelDefault(CameraLabel);
     InitLabelDefault(PlayerLabel);
     InitLabelDefault(msGUILabel);
     InitLabelDefault(OptInvisibleWeaponLabel);
     InitLabelDefault(OptInvisibleWeaponToggleLabel);
     Creditslabel.SetFlags("EXTRUDE", "OUTLINE");
     Version.SetFlags("OUTLINE");
     Creditslabel.SetRenderMode(E_ColorFlags.FIXED);
     Version.SetRenderMode(E_ColorFlags.FIXED);
     OptText.SetRenderMode(E_ColorFlags.FIXED);
     OptTitle.SetRenderMode(E_ColorFlags.FIXED);
     OptInvisibleWeaponToggleLabel.SetRenderMode(E_ColorFlags.FIXED);
     OptInvisibleWeaponLabel.SetRenderMode(E_ColorFlags.FIXED);
     OptText.SetFlags("NONE");
     OptTitle.SetFlags("NONE");
 }