Added menu sounds on arrow clicks

This commit is contained in:
Dominic committed 2021-04-16 20:36:46 -05:00
1 parent ddd43c2875
commit ab74c4ebb9
1 file changed
+3 -1
@@ -275,13 +275,15 @@ namespace CalamityMod.UI.CalamitasEnchants
{
EnchantIndex--;
TopButtonClickCountdown = 8f;
Main.PlaySound(SoundID.MenuTick);
}
// Increment the enchantment index if the bottom button is pressed.
if (hoveringOverBottomArrow && EnchantIndex < possibleEnchantments.Count() - 1)
{
EnchantIndex++;
TopButtonClickCountdown = 8f;
BottomButtonClickCountdown = 8f;
Main.PlaySound(SoundID.MenuTick);
}
}
}