Fixed units pathfinding to nonexistent cores

This commit is contained in:
Anuken
2018-10-14 11:57:37 -04:00
parent c7f5b7fca1
commit eba65b2934
5 changed files with 20 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ public class CustomGameDialog extends FloatingDialog{
if(mode.hidden) continue;
modes.addButton("$mode." + mode.name() + ".name", "toggle", () -> state.mode = mode)
.update(b -> b.setChecked(state.mode == mode)).group(group).size(125f, 54f).padBottom(-5);
.update(b -> b.setChecked(state.mode == mode)).group(group).size(140f, 54f).padBottom(-5);
if(i++ % 2 == 1) modes.row();
}
selmode.add(modes);
@@ -73,9 +73,8 @@ public class CustomGameDialog extends FloatingDialog{
state.difficulty = (ds[Mathf.mod(state.difficulty.ordinal() - 1, ds.length)]);
}).width(s);
sdif.addButton("", () -> {
}).update(t -> {
sdif.addButton("", () -> {})
.update(t -> {
t.setText(state.difficulty.toString());
t.setTouchable(Touchable.disabled);
}).width(180f);