mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 05:01:38 +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) {
|
public override function onMouseEnter(mouseState:MouseState) {
|
||||||
super.onMouseEnter(mouseState);
|
super.onMouseEnter(mouseState);
|
||||||
|
|
||||||
if (buttonSounds) {
|
if (buttonSounds && !disabled) {
|
||||||
AudioManager.playSound(ResourceLoader.getResource("data/sound/buttonover.wav", ResourceLoader.getAudio, this.soundResources));
|
AudioManager.playSound(ResourceLoader.getResource("data/sound/buttonover.wav", ResourceLoader.getAudio, this.soundResources));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue