private void OnGUI() { GUI.Label(new Rect(5, 1f, 100, 50f), $"cazdev", WatermarkStyle); #region GenerateMenus mainRect = GUI.Window(0, mainRect, new GUI.WindowFunction(SetMainBG), "", new GUIStyle()); if (_isMenuOpen) { _isStatMenuOpen = !_isStatMenuOpen; } if (_isStatMenuOpen) { statRect = GUI.Window(1, statRect, new GUI.WindowFunction(SetStatsBG), "", new GUIStyle()); DrawMenu.DrawStatsMenu(statRect.x, statRect.y, widthSize, StatMulY, MainBgStyle, StatsStyle, LabelStyle); } if (_CharacterCollected) { ESPRoutine(); } #endregion }
public static void SpawnMob(GUIStyle buttonStyle, string buttonId) { int buttonPlacement = 1; foreach (var spawnCard in Main.spawnCards) { string cardName = spawnCard.ToString(); string category = ""; string buttonText = ""; if (cardName.Contains("MultiCharacterSpawnCard")) { cardName = cardName.Replace(" (RoR2.MultiCharacterSpawnCard)", ""); category = "CharacterSpawnCard"; buttonText = cardName.Replace("csc", ""); } else if (cardName.Contains("CharacterSpawnCard")) { cardName = cardName.Replace(" (RoR2.CharacterSpawnCard)", ""); category = "CharacterSpawnCard"; buttonText = cardName.Replace("csc", ""); } else if (cardName.Contains("InteractableSpawnCard")) { cardName = cardName.Replace(" (RoR2.InteractableSpawnCard)", ""); category = "InteractableSpawnCard"; buttonText = cardName.Replace("isc", ""); } else if (cardName.Contains("BodySpawnCard")) { cardName = cardName.Replace(" (RoR2.BodySpawnCard)", ""); category = "BodySpawnCard"; buttonText = cardName.Replace("bsc", ""); } string path = $"SpawnCards/{category}/{cardName}"; DrawMenu.DrawButton(buttonPlacement, buttonId, buttonText, buttonStyle); buttonPlacement++; } }