Death to unit.dp

This commit is contained in:
Anuken
2017-12-19 20:51:46 -05:00
parent 9e298bde03
commit e529cabfb1
35 changed files with 150 additions and 157 deletions

View File

@@ -34,11 +34,11 @@ public class Vars{
//save file directory
public static final FileHandle saveDirectory = Gdx.files.local("mindustry-saves/");
//scale of the font
public static float fontscale = Math.max(Unit.dp.inPixels(1f)/2f, 0.5f);
public static float fontscale = Math.max(Unit.dp.scl(1f)/2f, 0.5f);
//camera zoom displayed on startup
public static final int baseCameraScale = Math.round(Unit.dp.inPixels(4));
public static final int baseCameraScale = Math.round(Unit.dp.scl(4));
//how much the zoom changes every zoom button press
public static final int zoomScale = Math.round(Unit.dp.inPixels(1));
public static final int zoomScale = Math.round(Unit.dp.scl(1));
//if true, player speed will be increased, massive amounts of resources will be given on start, and other debug options will be available
public static boolean debug = false;
//whether the player can clip through walls