Ejemplo n.º 1
0
 void Awake()
 {
     m_Skin = LMS_GuiBaseUtils.GetDarkSkin();
     InitLabels();
     InitButtons();
     InitOverlays();
     Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig
     {
         Rect = new Rect(290f, 103f, 680f, 460f)
     }, 20000, null);
     Owner.SetTexture((int)E_Texture.IDLE, m_Skin.box.normal.background);
     Owner.primary   = true;
     Owner.Draggable = true;
     Owner.AddChild(TitleLabel);
     Owner.AddChild(UsernameLabel);
     Owner.AddChild(UsernameTextField);
     Owner.AddChild(UsernameRenderer);
     Owner.AddChild(PasswordRenderer);
     Owner.AddChild(PasswordLabel);
     Owner.AddChild(PasswordTextField);
     Owner.AddChild(LoginButton);
     Owner.AddChild(LoginText);
     Owner.AddChild(ErrorLabel);
     Owner.AddChild(DiscordButton);
     Owner.AddChild(DiscordLabel);
 }
Ejemplo n.º 2
0
    /* @RENDER ORDER!
     * 1 LABEL
     * 2 BUTTON
     * 3 BOX
     */

    void Awake()
    {
        InitLabels();
        InitButtons();
        InitOverlays();
        Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig()
        {
            Rect = new Rect(100f, 100f, 800f, 500f)
        }, 2000, null);
        Owner.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("MAIN_MENU_TEX"));
        Owner.primary   = true;
        Owner.Draggable = true;
        Owner.AddChild(AutomationLabel);
        Owner.AddChild(EspLabel);
        Owner.AddChild(Automation);
        Owner.AddChild(Esp);
        Owner.AddChild(Creditslabel);
        Owner.AddChild(CopsLogo);
        Owner.AddChild(Misc);
        Owner.AddChild(MiscLabel);
        Owner.AddChild(OptionsWindow);
        Owner.AddChild(Version);
        Owner.AddChild(MovementLabel);
        Owner.AddChild(Movement);
        Owner.AddChild(Fun);
        Owner.AddChild(FunLabel);
        Owner.AddChild(GUIEditor);
        Owner.AddChild(GUIEditorLabel);
        Owner.AddChild(Updater);
        Owner.AddChild(UpdaterLabel);
        Owner.AddChild(Credits);
        Owner.AddChild(_CreditsLabel);
        Owner.AddChild(OptTitle);
        Owner.AddChild(OptText);
    }
 //x=80,y=30,w=870,h=720
 void Awake()
 {
     m_Skin = LMS_GuiBaseUtils.GetDarkSkin();
     InitLabels();
     InitButtons();
     InitOverlays();
     Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig
     {
         Rect = new Rect(50f, 30f, 870f, 620f)
     }, 20000, null);
     Owner.SetTexture((int)E_Texture.IDLE, m_Skin.box.normal.background);
     Owner.primary   = true;
     Owner.Draggable = true;
     Owner.AddChild(TitleLabel);
     Owner.AddChild(MenuDescriptionLabel);
     Owner.AddChild(LeftPanel);
     Owner.AddChild(RightPanel);
     Owner.AddChild(AutomationButton);
     Owner.AddChild(AutomationLabel);
     Owner.AddChild(ActiveHierarchyLabel);
     Owner.AddChild(ESPButton);
     Owner.AddChild(ESPLabel);
     Owner.AddChild(MiscButton);
     Owner.AddChild(MiscLabel);
 }
Ejemplo n.º 4
0
 void Awake()
 {
     InitLabels();
     InitButtons();
     InitOverlays();
     Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig()
     {
         Rect = new Rect(Screen.width / 2 - 400f, Screen.height / 2 - 250f, 800f, 500f)
     }, 20000, null);
     Owner.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("AUTH_BACK_TEX"));
     Owner.primary   = true;
     Owner.Draggable = true;
     Owner.AddChild(Title);
     Owner.AddChild(SubTitle);
     Owner.AddChild(UserLabel);
     Owner.AddChild(PassLabel);
     Owner.AddChild(UserTextFieldRenderer);
     Owner.AddChild(PassTextFieldRenderer);
     Owner.AddChild(UserTextField);
     Owner.AddChild(PassTextField);
     Owner.AddChild(LoginButton);
     Owner.AddChild(LoginButtonLabel);
     Owner.AddChild(PurchaseButton);
     Owner.AddChild(PurchaseButtonLabel);
 }
 void Awake()
 {
     InitLabels();
     InitToggles();
     InitOverlays();
     InitButtons();
     InitScrollers();
     Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig
     {
         Rect = new Rect(100f, 100f, 800f, 500f)
     }, 20000, null);
     Owner.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("MAIN_MENU_TEX"));
     Owner.primary   = true;
     Owner.Draggable = true;
     Owner.AddChild(Creditslabel);
     Owner.AddChild(CopsLogo);
     Owner.AddChild(OptionsWindow);
     Owner.AddChild(Version);
     Owner.AddChild(OptTitle);
     Owner.AddChild(OptText);
     Owner.AddChild(Weapon);
     Owner.AddChild(ScreenB);
     Owner.AddChild(Camera);
     Owner.AddChild(Player);
     Owner.AddChild(msGUI);
     Owner.AddChild(WeaponLabel);
     Owner.AddChild(ScreenLabel);
     Owner.AddChild(CameraLabel);
     Owner.AddChild(PlayerLabel);
     Owner.AddChild(msGUILabel);
     Owner.AddChild(OptWeaponScroller);
     Owner.AddChild(OptInvisibleWeaponLabel);
     Owner.AddChild(OptInvisibleWeaponToggleLabel);
 }
Ejemplo n.º 6
0
    public T InstantiateChild <T>(LMS_GuiConfig config, int memID) where T : LMS_GuiBaseCallback
    {
        if (Children == null)
        {
            Children       = new List <LMS_GuiBaseCallback>();
            SelectionIndex = new Dictionary <int, KeyValuePair <LMS_GuiView, LMS_GuiBaseButton> >();
            Debug.Log("Created new Collection -> 'Children'");
        }
        T local = LMS_GuiBaseUtils.InstantiateGUIElement <T>(config, memID, null, true);

        Children.Add(local);
        return(local);
    }
Ejemplo n.º 7
0
 void Awake()
 {
     InitLabels();
     InitButtons();
     Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig()
     {
         Rect = new Rect(Screen.width / 2 - 300f, Screen.height / 2 - 200f, 600f, 400f)
     }, 20000, null);
     Owner.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("AUTH_BACK_TEX"));
     Owner.primary   = true;
     Owner.Draggable = true;
     Owner.AddChild(Title);
     Owner.AddChild(Text);
     Owner.AddChild(Ok);
     Owner.AddChild(OkLabel);
 }
 void Awake()
 {
     m_Skin = LMS_GuiBaseUtils.GetDarkSkin();
     InitLabels();
     InitButtons();
     Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig()
     {
         Rect = new Rect(Screen.width / 2 - 300f, Screen.height / 2 - 200f, 600f, 400f)
     }, 20000, null);
     Owner.SetTexture((int)E_Texture.IDLE, m_Skin.box.normal.background);
     Owner.primary   = true;
     Owner.Draggable = true;
     Owner.AddChild(Title);
     Owner.AddChild(Text);
     Owner.AddChild(Ok);
     Owner.AddChild(OkLabel);
 }
 void Awake()
 {
     InitLabels();
     InitButtons();
     InitOverlays();
     Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig()
     {
         Rect = new Rect(0f, 0f, 500f, Screen.height)
     }, 20000, null);
     Owner.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("OVERLAY_BACK_TEX"));
     Owner.primary = true;
     Owner.AddChild(LoggedInAs);
     Msgs.Loop(curr => Owner.AddChild(curr));
     Owner.AddChild(SendButton);
     Owner.AddChild(SendButtonLabel);
     Owner.AddChild(MsgTextField);
     Owner.AddChild(MsgTextFieldRenderer);
 }
Ejemplo n.º 10
0
 void Awake()
 {
     m_FPSLabel = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseLabel>(new LMS_GuiConfig
     {
         Rect        = new Rect(0f, 0f, 200f, 150f),
         Text        = "0 FPS",
         RenderStyle = new GUIStyle
         {
             fontSize  = 23,
             fontStyle = FontStyle.Bold,
             alignment = TextAnchor.MiddleLeft,
             normal    =
             {
                 textColor = Color.cyan
             }
         }
     }, 92);
     m_FPSLabel.SetRenderMode(E_ColorFlags.CHROMATIMED);
     m_FPSLabel.RegisterClientViewTick((view) => { m_FPSLabel.Config.Text = ((int)fps).ToString() + "FPS"; }, null);
     m_FPSLabel.UseRelativeRect = true;
     m_FPSLabel.SetInterval("0.5 + 0.5");
 }
 void Awake()
 {
     m_ColorThread = gameObject.AddComponent <LMS_ColorThread>();
     m_ColorThread.SetInterval(0.5f);
     m_ColorThread.IgnoreOwner = true;
     m_ColorThread.Render      = true;
     InitLabels();
     InitButtons();
     Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig()
     {
         Rect = new Rect(Screen.width / 2 - 400f, Screen.height / 2 - 250f, 800f, 500f)
     }, 20000, null);
     Owner.RegisterClientViewTick((view) =>
     {
         Owner.SetTexture((int)E_Texture.IDLE, new Texture2D(1, 1).Modify((tex) => { tex.SetPixel(0, 0, m_ColorThread.RawValue().AlterAlpha(0.7f)); tex.Apply(); }));
     }, null);
     Owner.primary   = true;
     Owner.Draggable = true;
     Owner.AddChild(m_Title);
     Owner.AddChild(GEditor);
     Owner.AddChild(GEditorLabel);
     Owner.AddChild(Colors);
     Owner.AddChild(ColorsLabel);
 }
 public static LMS_GuiBaseButton a(LMS_GuiConfig b, int c, UnityEngine.GameObject g, bool hidden)
 {
     return(LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseButton>(b, c, g, hidden));
 }