Fixed issues with pixelation on zooming out; removed extra side projects
This commit is contained in:
@@ -58,7 +58,7 @@ project(":core") {
|
|||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
|
|
||||||
dependencies {
|
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:$gdxVersion"
|
||||||
compile "com.badlogicgames.gdx:gdx-ai:1.8.1"
|
compile "com.badlogicgames.gdx:gdx-ai:1.8.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -349,6 +349,8 @@ public class UI extends SceneModule{
|
|||||||
if(control.cameraScale < 4){
|
if(control.cameraScale < 4){
|
||||||
control.cameraScale = 4;
|
control.cameraScale = 4;
|
||||||
control.resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
|
control.resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
|
||||||
|
Draw.getSurface("pixel").setScale(control.cameraScale);
|
||||||
|
Draw.getSurface("shadow").setScale(control.cameraScale);
|
||||||
}
|
}
|
||||||
}).size(40);
|
}).size(40);
|
||||||
|
|
||||||
@@ -356,6 +358,8 @@ public class UI extends SceneModule{
|
|||||||
if(control.cameraScale > 3){
|
if(control.cameraScale > 3){
|
||||||
control.cameraScale = 3;
|
control.cameraScale = 3;
|
||||||
control.resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
|
control.resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
|
||||||
|
Draw.getSurface("pixel").setScale(control.cameraScale);
|
||||||
|
Draw.getSurface("shadow").setScale(control.cameraScale);
|
||||||
}
|
}
|
||||||
}).size(40);
|
}).size(40);
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ public class UpgradeDialog extends Dialog{
|
|||||||
button.addListener(tip);
|
button.addListener(tip);
|
||||||
|
|
||||||
button.clicked(()->{
|
button.clicked(()->{
|
||||||
|
if(button.isDisabled()) return;
|
||||||
|
|
||||||
Inventory.removeItems(weapon.requirements);
|
Inventory.removeItems(weapon.requirements);
|
||||||
weapons.put(weapon, true);
|
weapons.put(weapon, true);
|
||||||
ui.updateWeapons();
|
ui.updateWeapons();
|
||||||
|
|||||||
Reference in New Issue
Block a user