Esempio n. 1
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));
 }