mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-01-17 04:32:10 +00:00
disabled buttons don't have hover sounds
This commit is contained in:
parent
d9f4a1d9d4
commit
ef546d375a
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ class GuiButton extends GuiAnim {
|
|||
public override function onMouseEnter(mouseState:MouseState) {
|
||||
super.onMouseEnter(mouseState);
|
||||
|
||||
if (buttonSounds) {
|
||||
if (buttonSounds && !disabled) {
|
||||
AudioManager.playSound(ResourceLoader.getResource("data/sound/buttonover.wav", ResourceLoader.getAudio, this.soundResources));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue