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