UI cleanup
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user