mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-24 08:52:43 +00:00
disabled buttons don't have hover sounds
This commit is contained in:
parent
affbceda51
commit
b21ac340a8
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,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