mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-05-04 00:21:37 +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) {
|
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