v0.3.1: reworked UI scaling, now multiplier is user-selectable

This commit is contained in:
Evan Debenham
2015-06-29 00:10:00 -04:00
committed by Evan Debenham
parent dae5aca01b
commit d3ea235f61
4 changed files with 36 additions and 24 deletions
@@ -200,8 +200,8 @@ public class ShatteredPixelDungeon extends Game {
return width > height;
}
public static void scaleUp( boolean value ) {
Preferences.INSTANCE.put( Preferences.KEY_SCALE_UP, value );
public static void scale( int value ) {
Preferences.INSTANCE.put( Preferences.KEY_SCALE, value );
switchScene( TitleScene.class );
}
@@ -259,8 +259,8 @@ public class ShatteredPixelDungeon extends Game {
// *****************************
public static boolean scaleUp() {
return Preferences.INSTANCE.getBoolean( Preferences.KEY_SCALE_UP, true );
public static int scale() {
return Preferences.INSTANCE.getInt( Preferences.KEY_SCALE, 0 );
}
public static void zoom( int value ) {