Various fixes

This commit is contained in:
Anuken
2020-08-19 16:21:30 -04:00
parent bbe6c5017a
commit b827176bc4
11 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -178,7 +178,7 @@ public class MapGenerateDialog extends BaseDialog{
add(new Image(Styles.black8)); add(new Image(Styles.black8));
add(new Image(Icon.refresh, Scaling.none)); add(new Image(Icon.refresh, Scaling.none));
visible(() -> generating && !updateEditorOnChange); visible(() -> generating && !updateEditorOnChange);
}}).grow().padRight(10); }}).uniformX().grow().padRight(10);
t.pane(p -> filterTable = p.marginRight(6)).update(pane -> { t.pane(p -> filterTable = p.marginRight(6)).update(pane -> {
if(Core.scene.getKeyboardFocus() instanceof Dialog && Core.scene.getKeyboardFocus() != this){ if(Core.scene.getKeyboardFocus() instanceof Dialog && Core.scene.getKeyboardFocus() != this){
return; return;
@@ -191,7 +191,7 @@ public class MapGenerateDialog extends BaseDialog{
}else{ }else{
Core.scene.setScrollFocus(null); Core.scene.setScrollFocus(null);
} }
}).grow().get().setScrollingDisabled(true, false); }).grow().uniformX().get().setScrollingDisabled(true, false);
}).grow(); }).grow();
buffer1 = create(); buffer1 = create();
@@ -213,7 +213,7 @@ public class MapGenerateDialog extends BaseDialog{
} }
void rebuildFilters(){ void rebuildFilters(){
int cols = Math.max((int)(Math.max(filterTable.parent.getWidth(), Core.graphics.getWidth()/2f * 0.9f) / Scl.scl(290f)), 1); int cols = Math.max((int)(Core.graphics.getWidth()/2f / Scl.scl(290f)), 1);
filterTable.clearChildren(); filterTable.clearChildren();
filterTable.top().left(); filterTable.top().left();
int i = 0; int i = 0;
@@ -229,7 +229,7 @@ public class MapGenerateDialog extends BaseDialog{
t.setColor(Pal.gray); t.setColor(Pal.gray);
t.top().left(); t.top().left();
t.add(filter.name()).left().padLeft(6); t.add(filter.name()).left().padLeft(6).width(100f).wrap();
t.add().growX(); t.add().growX();