Various tweaks, new music tracks

This commit is contained in:
Anuken
2019-08-09 23:23:45 -04:00
parent 59e53eb672
commit 16f6b51857
21 changed files with 20 additions and 22 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 B

After

Width:  |  Height:  |  Size: 716 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 KiB

After

Width:  |  Height:  |  Size: 676 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 KiB

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 KiB

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 KiB

After

Width:  |  Height:  |  Size: 462 KiB

@@ -153,7 +153,7 @@ public class Zones implements ContentList{
launchPeriod = 10; launchPeriod = 10;
zoneRequirements = ZoneRequirement.with(ruinousShores, 20); zoneRequirements = ZoneRequirement.with(ruinousShores, 20);
blockRequirements = new Block[]{Blocks.coalCentrifuge, Blocks.conduit, Blocks.wave}; blockRequirements = new Block[]{Blocks.coalCentrifuge, Blocks.conduit, Blocks.wave};
resources = new Item[]{Items.copper, Items.scrap, Items.lead, Items.coal, Items.titanium, Items.sand}; resources = new Item[]{Items.copper, Items.scrap, Items.lead, Items.coal, Items.titanium, Items.thorium, Items.sand};
}}; }};
desolateRift = new Zone("desolateRift", new MapGenerator("desolateRift")){{ desolateRift = new Zone("desolateRift", new MapGenerator("desolateRift")){{
@@ -272,8 +272,6 @@ public class Control implements ApplicationListener{
Tile core = state.teams.get(defaultTeam).cores.first(); Tile core = state.teams.get(defaultTeam).cores.first();
core.entity.items.clear(); core.entity.items.clear();
state.set(State.playing);
control.saves.zoneSave();
logic.play(); logic.play();
state.rules.waveTimer = false; state.rules.waveTimer = false;
state.rules.waveSpacing = 60f * 30; state.rules.waveSpacing = 60f * 30;
@@ -3,7 +3,8 @@ package io.anuke.mindustry.ui.dialogs;
import io.anuke.arc.*; import io.anuke.arc.*;
import io.anuke.arc.collection.*; import io.anuke.arc.collection.*;
import io.anuke.arc.files.*; import io.anuke.arc.files.*;
import io.anuke.arc.function.*; import io.anuke.arc.graphics.*;
import io.anuke.arc.graphics.Texture.*;
import io.anuke.arc.input.*; import io.anuke.arc.input.*;
import io.anuke.arc.scene.*; import io.anuke.arc.scene.*;
import io.anuke.arc.scene.event.*; import io.anuke.arc.scene.event.*;
@@ -41,6 +42,7 @@ public class SettingsMenuDialog extends SettingsDialog{
}); });
shown(() -> { shown(() -> {
back();
if(!state.is(State.menu)){ if(!state.is(State.menu)){
wasPaused = state.is(State.paused); wasPaused = state.is(State.paused);
state.set(State.paused); state.set(State.paused);
@@ -60,14 +62,9 @@ public class SettingsMenuDialog extends SettingsDialog{
menu = new Table("button"); menu = new Table("button");
Consumer<SettingsTable> s = table -> { game = new SettingsTable();
table.row(); graphics = new SettingsTable();
table.addImageTextButton("$back", "icon-arrow-left", iconsize, this::back).size(240f, 60f).colspan(2).padTop(15f); sound = new SettingsTable();
};
game = new SettingsTable(s);
graphics = new SettingsTable(s);
sound = new SettingsTable(s);
prefs = new Table(); prefs = new Table();
prefs.top(); prefs.top();
@@ -104,8 +101,6 @@ public class SettingsMenuDialog extends SettingsDialog{
row(); row();
add(buttons).fillX(); add(buttons).fillX();
hidden(this::back);
addSettings(); addSettings();
} }
@@ -193,6 +188,7 @@ public class SettingsMenuDialog extends SettingsDialog{
}).size(220f, 60f).pad(6).left(); }).size(220f, 60f).pad(6).left();
table.add(); table.add();
table.row(); table.row();
hide();
} }
}); });
@@ -251,8 +247,6 @@ public class SettingsMenuDialog extends SettingsDialog{
graphics.checkPref("lasers", true); graphics.checkPref("lasers", true);
graphics.checkPref("pixelate", false); graphics.checkPref("pixelate", false);
//TODO is this necessary?
/*
graphics.checkPref("linear", false, b -> { graphics.checkPref("linear", false, b -> {
for(Texture tex : Core.atlas.getTextures()){ for(Texture tex : Core.atlas.getTextures()){
TextureFilter filter = b ? TextureFilter.Linear : TextureFilter.Nearest; TextureFilter filter = b ? TextureFilter.Linear : TextureFilter.Nearest;
@@ -265,7 +259,7 @@ public class SettingsMenuDialog extends SettingsDialog{
TextureFilter filter = TextureFilter.Linear; TextureFilter filter = TextureFilter.Linear;
tex.setFilter(filter, filter); tex.setFilter(filter, filter);
} }
}*/ }
} }
private void back(){ private void back(){
@@ -276,17 +270,23 @@ public class SettingsMenuDialog extends SettingsDialog{
private void visible(int index){ private void visible(int index){
prefs.clearChildren(); prefs.clearChildren();
Table table = new Table[]{game, graphics, sound}[index]; prefs.add(new Table[]{game, graphics, sound}[index]);
prefs.add(table);
} }
@Override @Override
public void addCloseButton(){ public void addCloseButton(){
buttons.addImageTextButton("$menu", "icon-arrow-left", 30f, this::hide).size(230f, 64f); buttons.addImageTextButton("$back", "icon-arrow-left", 30f, () -> {
if(prefs.getChildren().first() != menu){
back();
}else{
hide();
}
}).size(230f, 64f);
keyDown(key -> { keyDown(key -> {
if(key == KeyCode.ESCAPE || key == KeyCode.BACK) if(key == KeyCode.ESCAPE || key == KeyCode.BACK){
hide(); hide();
}
}); });
} }
} }
+1 -1
View File
@@ -249,7 +249,7 @@ public class Generators{
Image image = new Image(32, 32); Image image = new Image(32, 32);
Image shadow = ImagePacker.get(item.name + (i + 1)); Image shadow = ImagePacker.get(item.name + (i + 1));
int offset = image.width / tilesize; int offset = image.width / tilesize - 1;
for(int x = 0; x < image.width; x++){ for(int x = 0; x < image.width; x++){
for(int y = offset; y < image.height; y++){ for(int y = offset; y < image.height; y++){