Fixed issues with pixelation on zooming out; removed extra side projects

This commit is contained in:
Anuken
2017-05-24 22:06:54 -04:00
parent 5deb1f562c
commit 01a9f493cc
3 changed files with 7 additions and 1 deletions

View File

@ -58,7 +58,7 @@ project(":core") {
apply plugin: "java"
dependencies {
compile fileTree(dir: '../core/lib', include: '*.jar')
// compile fileTree(dir: '../core/lib', include: '*.jar')
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-ai:1.8.1"
}

View File

@ -349,6 +349,8 @@ public class UI extends SceneModule{
if(control.cameraScale < 4){
control.cameraScale = 4;
control.resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
Draw.getSurface("pixel").setScale(control.cameraScale);
Draw.getSurface("shadow").setScale(control.cameraScale);
}
}).size(40);
@ -356,6 +358,8 @@ public class UI extends SceneModule{
if(control.cameraScale > 3){
control.cameraScale = 3;
control.resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
Draw.getSurface("pixel").setScale(control.cameraScale);
Draw.getSurface("shadow").setScale(control.cameraScale);
}
}).size(40);

View File

@ -109,6 +109,8 @@ public class UpgradeDialog extends Dialog{
button.addListener(tip);
button.clicked(()->{
if(button.isDisabled()) return;
Inventory.removeItems(weapon.requirements);
weapons.put(weapon, true);
ui.updateWeapons();