add initial window size

This commit is contained in:
Sharlotte
2022-09-28 09:25:03 +09:00
parent a8b484f9ca
commit 3be43e733e
5 changed files with 8 additions and 5 deletions

View File

@@ -49,6 +49,9 @@ public class MapEditorWindow extends Window {
public MapEditorWindow() {
super(Icon.map, "editor");
height = 800;
width = 600;
for(int i = 0; i < MapEditor.brushSizes.length; i++){
float size = MapEditor.brushSizes[i];
float mod = size % 1f;

View File

@@ -28,13 +28,12 @@ public class WaveWindow extends Window {
public WaveWindow() {
super(Icon.waves, "wave");
height = 300;
height = 500;
width = 450;
}
@Override
public void build(Table table) {
window = table;
table.top().background(Styles.black8);
ScrollPane pane = new OverScrollPane(rebuild(), Styles.noBarPane, scrollPos).disableScroll(true, false);
table.add(pane).grow().name("wave-pane").row();

View File

@@ -37,6 +37,7 @@ public class Window extends Table {
titleBar();
row();
ScrollPane pane = new ScrollPane(new Table(t -> {
t.setBackground(Styles.black5);
t.top().left();
@@ -54,7 +55,6 @@ public class Window extends Table {
add(pane).grow();
row();
bottomBar();
visible(() -> shown);
update(() -> setPosition(
Math.max(0, Math.min(Core.graphics.getWidth() - getWidth(), x)),