cleaned settings
This commit is contained in:
parent
4525f632dc
commit
7cd49be1bb
@ -95,7 +95,7 @@ public class GameState extends AbstractAppState implements GameListener, ActionL
|
||||
this.optionSettings = optionSettings;
|
||||
this.highscoreManager = highscoreManager;
|
||||
|
||||
if (settings.useVideo()) {
|
||||
if (settings.useVideo() || !optionSettings.isAudioVisualizationEnabled()) {
|
||||
mediaPlayerFactory = new MediaPlayerFactory("--no-video-title-show", "--quiet");
|
||||
} else {
|
||||
mediaPlayerFactory = new MediaPlayerFactory("--no-video-title-show", "--quiet",
|
||||
|
||||
@ -62,7 +62,6 @@ public class OptionSettings {
|
||||
setMenuVolume(50);
|
||||
setSoundVolume(100);
|
||||
setUsername("Nagareboshi");
|
||||
setPostProcessing(true);
|
||||
setParticleDensity(3);
|
||||
setDepthBits(24);
|
||||
setShowWeapon(true);
|
||||
@ -73,14 +72,6 @@ public class OptionSettings {
|
||||
settings.putString("Username", username);
|
||||
}
|
||||
|
||||
public void setMenuStyle(String style) {
|
||||
settings.putString("MenuStyle", style);
|
||||
}
|
||||
|
||||
public void setTransitionSpeed(int speed) {
|
||||
settings.putInteger("TransitionSpeed", speed);
|
||||
}
|
||||
|
||||
public void setMasterVolume(int volume) {
|
||||
settings.putInteger("MasterVolume", volume);
|
||||
}
|
||||
@ -96,10 +87,6 @@ public class OptionSettings {
|
||||
public void setSoundVolume(int volume) {
|
||||
settings.putInteger("SoundVolume", volume);
|
||||
}
|
||||
|
||||
public void setPostProcessing(boolean enabled) {
|
||||
settings.putBoolean("PostProcessing", enabled);
|
||||
}
|
||||
|
||||
public void setShowWeapon(boolean enabled) {
|
||||
settings.putBoolean("ShowWeapon", enabled);
|
||||
@ -137,10 +124,6 @@ public class OptionSettings {
|
||||
settings.putInteger("ParticleDensity", particleDensity);
|
||||
}
|
||||
|
||||
public int getKey(String keyId) {
|
||||
return settings.getInteger(keyId);
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return settings.getString("Username");
|
||||
}
|
||||
@ -160,10 +143,6 @@ public class OptionSettings {
|
||||
public int getSoundVolume() {
|
||||
return settings.getInteger("SoundVolume");
|
||||
}
|
||||
|
||||
public boolean isPostprocessingEnabled() {
|
||||
return settings.getBoolean("PostProcessing");
|
||||
}
|
||||
|
||||
public boolean isShowWeaponEnabled() {
|
||||
return settings.getBoolean("ShowWeapon");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user