void Awake() { m_Skin = LMS_GuiBaseUtils.GetDarkSkin(); InitLabels(); InitButtons(); Owner.AddChild(AimbotButton); }
//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); }
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); }
/* @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); }
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); }
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 (GUILayout.Button("MOVE")) { mode = "move"; } if (GUILayout.Button("RESIZE")) { mode = "resize"; } Event e = Event.current; if (e.type == EventType.MouseDown) { LMS_GuiBaseCallback callback = LMS_GuiBaseUtils.GetElementAt(e.mousePosition); if (callback != null) { selected = callback; MouseDown = true; } } else if (e.type == EventType.MouseUp) { if (MouseDown) { selectedElements.Add(selected.GetType().ToString() + " RECT=" + selected.Config.Rect.ToString()); MouseDown = false; } } else if (e.type == EventType.MouseDrag) { if (MouseDown) { if (mode == "move") { selected.Config.Rect.x += e.delta.x; selected.Config.Rect.y += e.delta.y; } else { selected.Config.Rect.width += e.delta.x; selected.Config.Rect.height += e.delta.y; } } } /*if (lastScrollerUpdate + 3f < Time.timeSinceLevelLoad) * { * selected = FindObjectsOfType<LMS_GuiBaseVerticalScroller>().Where(c => !c.Hidden).ToArray()[0]; * lastScrollerUpdate = Time.timeSinceLevelLoad; * }*/ if (selected != null) { GLCanvas.DrawBox(selected.QuickRect(), Color.green, 2f); } }
public void ShowPopup(string name, string txt, string caption, string col, PopupHandler hnd) { LMS_GuiScreen scr = Screens[name]; if (scr.IsPopup) { LMS_GuiPopup p = scr as LMS_GuiPopup; LMS_GuiBaseUtils.PreparePopup(p, txt, caption, LMS_GuiBaseUtils.StringToColor(col), hnd); p.ShowScreen(); } }
void OnGUI() { CreateMenu(); if (GUILayout.Button("dankk memz?")) { //test stringTOColor Debug.Log(LMS_GuiBaseUtils.StringToColor("blue").ToString()); } GUI.skin = null; txt = GUI.TextField(new Rect(100f, 50f, 200f, 40f), txt); GUILayout.Label(LMS_Txt.Resolve(txt).ToString()); }
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); }
void InitOverlays() { LeftPanel = InstantiateChild <LMS_GuiBaseBox2D>(new LMS_GuiConfig() { Rect = new Rect(8f, 41f, 486f, 587f) }, 100000); LeftPanel.SetTexture((int)E_Texture.IDLE, LMS_GuiBaseUtils.NextGrade(m_Skin.box.normal.background)); RightPanel = InstantiateChild <LMS_GuiBaseBox2D>(new LMS_GuiConfig() { Rect = new Rect(197f, 41f, 705f, 587f) }, 100000); RightPanel.SetTexture((int)E_Texture.IDLE, LMS_GuiBaseUtils.NextGrade(m_Skin.box.normal.background)); }
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); }
void InitButtonDefault(LMS_GuiBaseButton b, string text, string title, int textSize = 15, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null) { b.SetTexture((int)E_Texture.DOWN, m_Skin.button.active.background); b.SetTexture((int)E_Texture.IDLE, LMS_GuiBaseUtils.NextGrade(m_Skin.button.normal.background)); b.BlendMode = E_BlendMode.NORMAL; if (onClick != null) { b.OnClick += onClick; } LMS_GuiViewSelection sel = new LMS_GuiViewSelection { Text = text, Title = "<size=" + textSize + ">" + title + "</size>", CollectionIndex = SelectionIndex.Values.Count }; SelectionIndex[sel.CollectionIndex] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(sel, b); }
void Start() { InitBar = LMS_GuiBaseUtils._InstantiateGUIElement <LMS_GuiBaseProgressBar>(new LMS_GuiConfig { Rect = new Rect(0f, 700f, 1280f, 20f) }, 928, new GameObject("Init")); InitBar.realProg = 100f; InitBar.ReloadRenderer = true; InitBar.canRender = true; InitBar.Speed = 1.5f; InitBar.Color = "(0.5803921568627451,0,0.8274509803921569)"; SplashImage = LMS_GuiBaseUtils._InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig { Rect = new Rect(240f, 110f, 800f, 500f) }, 213, GameObject.Find("Init")); SplashImage.UseRelativeRect = false; LMS_ModifiedTexture test; LMS_GuiBaseUtils.ModifiedTexture("test", out test); SplashImage.SetTexture((int)E_Texture.IDLE, test.MainTexture); LMS_GuiParser.Parse(LitJson.JsonMapper.ToJson(SplashImage.GetParserOptions())); }
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)); }
public override void Draw() { GUI.Label(GetCallbackElement().QuickRect(), "T"); GUI.DrawTexture(GetCallbackElement().QuickRect(), LMS_GuiBaseUtils.GetDarkSkin().button.normal.background); }
void OnGUI() { if (Hidden) { return; } if (!canRender) { return; } if (ReloadRenderer) { Config.RenderStyle = new GUIStyle(GUI.skin.box) { normal = { background = GeneratePlainTexture(Color == "Default" ? new Color(50f / 255f, 80f / 255f, 50f / 255f, 1f) : LMS_GuiBaseUtils.StringToColor(Color)) } }; backStyle = new GUIStyle(GUI.skin.box) { normal = { background = GeneratePlainTexture(new Color(30f / 255f, 30f / 255f, 30f / 255f, 1f)) } }; ReloadRenderer = false; } GUI.Box(QuickRect(), "", backStyle); width = Mathf.MoveTowards(width, QuickRect().width *Progress, 1f); GUI.Box(new Rect(QuickRect().x, QuickRect().y, width, QuickRect().height), "", Config.RenderStyle); if (forceHandle) { if (m_Handle != null) { m_Handle(this); forceHandle = false; } } }