Skip to content
Snippets Groups Projects
Commit 0e124243 authored by Anton Danilov's avatar Anton Danilov Committed by Anton Danilov
Browse files

#435 When sound is muted while playing speech in encyclopedia, button will be reseted

parent af4aa7c7
Branches
Tags
No related merge requests found
......@@ -14,6 +14,8 @@ import com.badlogic.gdx.utils.Align;
import com.badlogic.gdx.utils.viewport.ExtendViewport;
import com.badlogic.gdx.utils.viewport.Viewport;
import net.engio.mbassy.listener.Handler;
import java.util.List;
import java.util.Map;
......@@ -375,4 +377,9 @@ public class EncyclopediaScreen extends AbstractTablexiaScreen<Void> {
}
super.screenDisposed();
}
@Handler
private void handleMuteSound(TablexiaSettings.SoundMuteEvent event) {
if(event.isSoundMuted()) resetMusicButtonState();
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment