UI cleanup

This commit is contained in:
Anuken
2020-07-23 17:37:45 -04:00
parent 69f6154894
commit 72fc103e16
28 changed files with 78 additions and 78 deletions

View File

@@ -475,7 +475,7 @@ public class MapEditorDialog extends Dialog implements Disposable{
mode.setColor(Pal.remove);
mode.update(() -> mode.setText(tool.mode == -1 ? "" : "M" + (tool.mode + 1) + " "));
mode.setAlignment(Align.bottomRight, Align.bottomRight);
mode.touchable(Touchable.disabled);
mode.touchable = Touchable.disabled;
tools.stack(button, mode);
};

View File

@@ -214,7 +214,7 @@ public class MapGenerateDialog extends BaseDialog{
}
void rebuildFilters(){
int cols = Math.max((int)(Math.max(filterTable.getParent().getWidth(), Core.graphics.getWidth()/2f * 0.9f) / Scl.scl(290f)), 1);
int cols = Math.max((int)(Math.max(filterTable.parent.getWidth(), Core.graphics.getWidth()/2f * 0.9f) / Scl.scl(290f)), 1);
filterTable.clearChildren();
filterTable.top().left();
int i = 0;

View File

@@ -46,7 +46,7 @@ public class MapView extends Element implements GestureListener{
}
Core.input.getInputProcessors().insert(0, new GestureDetector(20, 0.5f, 2, 0.15f, this));
touchable(Touchable.enabled);
this.touchable = Touchable.enabled;
Point2 firstTouch = new Point2();

View File

@@ -93,7 +93,7 @@ public class WaveInfoDialog extends BaseDialog{
}).growX().height(70f);
}), new Label("$waves.none"){{
visible(() -> groups.isEmpty());
touchable(Touchable.disabled);
this.touchable = Touchable.disabled;
setWrap(true);
setAlignment(Align.center, Align.center);
}}).width(390f).growY();