void InitButtons() { Weapon = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 30f, 431f, 150f) }, 50); ScreenB = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 65f, 431f, 150f) }, 50); Camera = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 100f, 431f, 150f) }, 50); Player = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 135f, 431f, 150f) }, 50); msGUI = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 170f, 431f, 150f) }, 50); InitButtonDefault(Weapon, CreateDetails("Weapon Hacks", "memz", KeyValuePairUtil.b(OptWeaponScroller), KeyValuePairUtil.b(OptInvisibleWeaponLabel), KeyValuePairUtil.b(OptInvisibleWeaponToggleLabel))); InitButtonDefault(ScreenB); InitButtonDefault(Camera); InitButtonDefault(Player); InitButtonDefault(msGUI); }
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; }
void InitOverlays() { CopsLogo = InstantiateChild <LMS_GuiBaseBox2D>(new LMS_GuiConfig() { Rect = new Rect(339f, 47f, 413f, 233f) }, 1000000); CopsLogo.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("COPS_LOGO_TEX")); OptionsWindow = InstantiateChild <LMS_GuiBaseBox2D>(new LMS_GuiConfig() { Rect = new Rect(163f, 12f, 445f, 484f) }, 2000000); OptionsWindow.SetTexture((int)E_Texture.IDLE, OptionsWindow.GeneratePlainTexture(Color.black.AlterAlpha(206f / 255f))); TouchBar = InstantiateChild <LMS_GuiBaseTouchBar>(new LMS_GuiConfig() { Rect = new Rect(0f, 0f, Screen.width, Screen.height) }, 3000000); TouchBar.SetTexture((int)E_Texture.IDLE, OptionsWindow.GeneratePlainTexture(Color.clear)); TouchBar.onSwipe += (swipe) => { if (Owner.Down) { return; } if (swipe == E_Swipe.DOWN) { if (selectedIndex + 1 == SelectionIndex.Count) { selectedIndex = 0; } else { selectedIndex++; } } else if (swipe == E_Swipe.UP) { if (selectedIndex - 1 == -1) { selectedIndex = SelectionIndex.Count - 1; } else { selectedIndex--; } } else { if (SelectionIndex.Keys.Count == 0) { return; } LMS_GuiBaseButton b = SelectionIndex[selectedIndex].Value; if (b.OnClick != null) { b.OnClick(); } } }; }
void InitButtons() { SendButton = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(30f, 530f, 431f, 150f) }, 50); InitButtonDefault(SendButton, null, () => { LMS_SessionServerPeer.Instance.SendChatMessage(LMS_Chat.ChatMsg.Create(MsgTextField.TextToRender, "", LMS_SessionServerPeer.Instance.Peer.user, LMS_SessionServerPeer.Instance.Peer.accesslevel)); MsgTextField.Text = ""; }); }
void InitButtons() { AimbotButton = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(360f, 55f, 474f, 185f), }, 2); InitButtonDefault(AimbotButton, "", "Automation", 25, () => { }); }
void InitButtons() { Ok = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig { Rect = new Rect(83f, 176f, 387f, 157f) }, 93); InitButtonDefault(Ok, null, () => { /*if (Ok.IsGUIEditorActive) return;*/ HandleCallback(E_PopupCallback.OK); HidePopup(); }); Ok.AllowInput = true; }
void InitButtonDefault(LMS_GuiBaseButton b, LMS_GuiView Details = null, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null, bool ignoreindexing = false) { if (onClick != null) { b.OnClick += onClick; } b.SetTexture((int)E_Texture.DOWN, b.GeneratePlainTexture(Color.black)); b.SetTexture((int)E_Texture.IDLE, b.GeneratePlainTexture(Color.clear)); b.BlendMode = E_BlendMode.BLENDED; if (!ignoreindexing) { SelectionIndex[SelectionIndex.Values.Count] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(Details, b); } }
void InitButtonDefault(LMS_GuiBaseButton b, LMS_GuiView Details = null, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null, bool ignoreindexing = false) { if (onClick != null) { b.OnClick += onClick; } b.SetTexture((int)E_Texture.DOWN, m_Skin.button.active.background); b.SetTexture((int)E_Texture.IDLE, m_Skin.button.normal.background); b.BlendMode = E_BlendMode.BLENDED; if (!ignoreindexing) { SelectionIndex[SelectionIndex.Values.Count] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(Details, b); } }
void InitButtonDefault(LMS_GuiBaseButton b, LMS_GuiView Details = null, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null, bool ignoreindexing = false) { if (onClick != null) { b.OnClick += onClick; } b.SetTexture((int)E_Texture.DOWN, b.GeneratePlainTexture(new Color(200f / 255f, 220f / 255f, 35f / 255f, 1f))); b.SetTexture((int)E_Texture.IDLE, b.GeneratePlainTexture(Color.green)); b.AllowInput = true; b.Hidden = false; if (!ignoreindexing) { SelectionIndex[SelectionIndex.Values.Count] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(Details, b); } }
void InitButtons() { Yes = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig { Rect = new Rect(9f, 176f, 387f, 157f) }, 93); No = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig { Rect = new Rect(155f, 176f, 387f, 157f) }, 93); InitButtonDefault(Yes, null, () => { HandleCallback(E_PopupCallback.YES); HidePopup(); }); InitButtonDefault(No, null, () => { HandleCallback(E_PopupCallback.NO); HidePopup(); }); Yes.AllowInput = true; No.AllowInput = true; }
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 InitButtonDefault(LMS_GuiBaseButton b, string text, string title, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null) { b.SetTexture((int)E_Texture.DOWN, LMS_Textures.GetCache("BUTTON_TEX")); b.SetTexture((int)E_Texture.IDLE, b.GeneratePlainTexture(Color.clear)); b.BlendMode = E_BlendMode.BLENDED; if (onClick != null) { b.OnClick += onClick; } LMS_GuiViewSelection sel = new LMS_GuiViewSelection { Text = text, Title = title, CollectionIndex = SelectionIndex.Values.Count }; SelectionIndex[sel.CollectionIndex] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(sel, b); }
void InitButtonDefault(LMS_GuiBaseButton b, string text = "", string title = "", LMS_GuiBaseButton.ClickCallbackDelegate onClick = null) { b.SetTexture((int)E_Texture.DOWN, m_Skin.button.active.background); b.SetTexture((int)E_Texture.IDLE, m_Skin.button.normal.background); b.BlendMode = E_BlendMode.BLENDED; if (onClick != null) { b.OnClick += onClick; } LMS_GuiViewSelection sel = new LMS_GuiViewSelection { Text = text, Title = title, CollectionIndex = SelectionIndex.Values.Count }; SelectionIndex[sel.CollectionIndex] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(sel, b); }
void InitButtons() { AutomationButton = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12.5f, 55f, 474f, 185f), }, 2); ESPButton = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12.5f, 115f, 474f, 185f), }, 2); MiscButton = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12.5f, 175f, 474f, 185f), }, 2); InitButtonDefault(AutomationButton, "", "Automation", 25, () => { selectedIndex = 0; MenuDescriptionLabel.Config.SetText("Combat hacks such as Aimbot, TriggerBot, etc"); }); InitButtonDefault(ESPButton, "", "ESP", 25, () => { selectedIndex = 1; MenuDescriptionLabel.Config.SetText("Render hacks, which give you more advantage"); }); InitButtonDefault(MiscButton, "", "Misc", 25, () => { selectedIndex = 2; MenuDescriptionLabel.Config.SetText("Misc hacks, more like exploits and random hacks"); }); }
void InitButtons() { GEditor = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig { Rect = new Rect(78f, 89f, 654f, 239f) }, 9); Colors = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig { Rect = new Rect(78f, 177f, 654f, 239f) }, 9); InitButtonDefault(GEditor, null, null, false); InitButtonDefault(Colors, null, null, false); GEditor.AllowInput = true; GEditor.ForceDownState(true); GEditor.BlendMode = E_BlendMode.NORMAL; Colors.AllowInput = true; Colors.ForceDownState(true); Colors.BlendMode = E_BlendMode.NORMAL; }
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 InitButtons() { Automation = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 30f, 431f, 150f), RenderStyle = new GUIStyle { fontSize = 19, fontStyle = FontStyle.Bold, alignment = TextAnchor.MiddleCenter, normal = { textColor = Color.white } } }, 3000); Esp = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 65f, 431f, 150f), RenderStyle = new GUIStyle { fontSize = 19, fontStyle = FontStyle.Bold, alignment = TextAnchor.MiddleCenter, normal = { textColor = Color.white } } }, 4000); Misc = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 100f, 431f, 150f), RenderStyle = new GUIStyle { fontSize = 19, fontStyle = FontStyle.Bold, alignment = TextAnchor.MiddleCenter, normal = { textColor = Color.white } } }, 5000); Movement = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 135f, 431f, 150f), RenderStyle = new GUIStyle { fontSize = 19, fontStyle = FontStyle.Bold, alignment = TextAnchor.MiddleCenter, normal = { textColor = Color.white } } }, 6000); Fun = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 170f, 431f, 150f), RenderStyle = new GUIStyle { fontSize = 19, fontStyle = FontStyle.Bold, alignment = TextAnchor.MiddleCenter, normal = { textColor = Color.white } } }, 7000); GUIEditor = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 205f, 431f, 150f), RenderStyle = new GUIStyle { fontSize = 19, fontStyle = FontStyle.Bold, alignment = TextAnchor.MiddleCenter, normal = { textColor = Color.white } } }, 8000); Updater = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 240f, 431f, 150f), RenderStyle = new GUIStyle { fontSize = 19, fontStyle = FontStyle.Bold, alignment = TextAnchor.MiddleCenter, normal = { textColor = Color.white } } }, 9000); Credits = InstantiateChild <LMS_GuiBaseButton>(new LMS_GuiConfig() { Rect = new Rect(12f, 275f, 431f, 150f), RenderStyle = new GUIStyle { fontSize = 19, fontStyle = FontStyle.Bold, alignment = TextAnchor.MiddleCenter, normal = { textColor = Color.white } } }, 10000); InitButtonDefault(Automation, LMS_GuiBaseLabelBoundaries.WrapText("Combat Hacks, such as: Aimbot, Triggerbot, etc", 19, 200f), "Automation", () => { LMS_Main.Instance.ShowScreen(1); }); InitButtonDefault(Esp, LMS_GuiBaseLabelBoundaries.WrapText("Overlay/Render hacks, which give you more advantage ;D", 19, 100f), "ESP/Overlay", () => { LMS_Main.Instance.ShowScreen(2); }); InitButtonDefault(Misc, LMS_GuiBaseLabelBoundaries.WrapText("Miscellaneous hacks, more like exploits and random hacks", 19, 200f), "Misc", () => { LMS_Main.Instance.ShowScreen(4); }); InitButtonDefault(Movement, LMS_GuiBaseLabelBoundaries.WrapText("Movement hacks, are hacks which control movement, such as: Fly and Wall hack", 19, 200f), "Movement/Physics"); InitButtonDefault(Fun, LMS_GuiBaseLabelBoundaries.WrapText("Fun hacks, they are fun :p", 19, 200f), "Fun"); InitButtonDefault(GUIEditor, LMS_GuiBaseLabelBoundaries.WrapText("More than just changing colors", 19, 200f), "GUI Editor", () => { LMS_Main.Instance.ShowScreen(5); }); InitButtonDefault(Updater, LMS_GuiBaseLabelBoundaries.WrapText("Check for latest releases!", 19, 200f), "Updater"); InitButtonDefault(Credits, LMS_GuiBaseLabelBoundaries.WrapText("Get to know us, the developers. Not Critical Force..", 19, 200f), "Credits"); }