Various fixes
This commit is contained in:
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.
Binary file not shown.
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user