mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-30 14:39:10 +07:00
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"
|
||||
|
||||
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"
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user