mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 03:00:29 +03:00
Longer fields, width cap
This commit is contained in:
@@ -101,7 +101,7 @@ public class LCanvas extends Table{
|
||||
}
|
||||
|
||||
public void rebuild(){
|
||||
targetWidth = Math.max(400f, Core.graphics.getWidth() / Scl.scl(1f) * 0.95f - Scl.scl(80f));
|
||||
targetWidth = Core.graphics.isPortrait() ? 400f : Mathf.clamp(Core.graphics.getWidth() / Scl.scl(1f) * 0.95f - Scl.scl(80f), 400f, 1200f);
|
||||
float s = pane != null ? pane.getVisualScrollY() : 0f;
|
||||
String toLoad = statements != null ? save() : null;
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ public abstract class LStatement{
|
||||
|
||||
protected Cell<TextField> fields(Table table, String desc, String value, Cons<String> setter){
|
||||
table.add(desc).padLeft(10).left().self(this::param);
|
||||
return field(table, value, setter).width(100f).padRight(10).left();
|
||||
return field(table, value, setter).width(180f).padRight(10).left();
|
||||
}
|
||||
|
||||
/** Puts the text and field in one table, taking up one cell. */
|
||||
@@ -173,7 +173,7 @@ public abstract class LStatement{
|
||||
table.table(t -> {
|
||||
t.setColor(table.color);
|
||||
t.add(desc).padLeft(10).left().self(this::param);
|
||||
result[0] = field(t, value, setter).width(100f).padRight(10).left();
|
||||
result[0] = field(t, value, setter).width(180f).padRight(10).left();
|
||||
});
|
||||
|
||||
return result[0];
|
||||
|
||||
Reference in New Issue
Block a user