public static void GiveBuff(GUIStyle buttonStyle, string buttonId) { int buttonPlacement = 1; foreach (string buffName in Enum.GetNames(typeof(BuffIndex))) { DrawMenu.DrawButton(buttonPlacement, buttonId, buffName, buttonStyle); buttonPlacement++; } }
public static void ChangeCharacter(GUIStyle buttonStyle, string buttonId) { int buttonPlacement = 1; foreach (var prefab in Main.bodyPrefabs) { DrawMenu.DrawButton(buttonPlacement, buttonId, prefab.name.Replace("Body", ""), buttonStyle); buttonPlacement++; } }
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++; } }