mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-12-22 17:03:59 +07:00
Fixed #8523
This commit is contained in:
parent
13297023fe
commit
05f158fd51
@ -279,7 +279,8 @@ public class UI implements ApplicationListener, Loadable{
|
||||
cont.margin(30).add(text).padRight(6f);
|
||||
TextFieldFilter filter = numbers ? TextFieldFilter.digitsOnly : (f, c) -> true;
|
||||
TextField field = cont.field(def, t -> {}).size(330f, 50f).get();
|
||||
field.setFilter((f, c) -> field.getText().length() < textLength && filter.acceptChar(f, c));
|
||||
field.setMaxLength(textLength);
|
||||
field.setFilter(filter);
|
||||
buttons.defaults().size(120, 54).pad(4);
|
||||
buttons.button("@cancel", () -> {
|
||||
closed.run();
|
||||
|
Loading…
Reference in New Issue
Block a user