Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MenuOption musicVolumeOption = new MenuOption(musicVolumeName, new Action("changeVolume"){
- @Override
- public void execute() {
- Console.changeMusicVolume((((int)(pref.getFloat("music", 0.5f) * 10) + 1) % 11) / 10f);
- pref.flush();
- }
- });
- musicVolumeOption.setValue((int)(pref.getFloat("music", 0.5f) * 100) + "%");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement