Status apply statement cleanup
This commit is contained in:
@@ -1324,15 +1324,11 @@ public class LStatements{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void build(Table table){
|
public void build(Table table){
|
||||||
rebuild(table);
|
|
||||||
}
|
|
||||||
|
|
||||||
void rebuild(Table table){
|
|
||||||
table.clearChildren();
|
table.clearChildren();
|
||||||
|
|
||||||
table.button(clear ? "clear" : "apply", Styles.logict, () -> {
|
table.button(clear ? "clear" : "apply", Styles.logict, () -> {
|
||||||
clear = !clear;
|
clear = !clear;
|
||||||
rebuild(table);
|
build(table);
|
||||||
}).size(80f, 40f).pad(4f).color(table.color);
|
}).size(80f, 40f).pad(4f).color(table.color);
|
||||||
|
|
||||||
if(statusNames == null){
|
if(statusNames == null){
|
||||||
@@ -1343,11 +1339,10 @@ public class LStatements{
|
|||||||
b.label(() -> effect).grow().wrap().labelAlign(Align.center).center();
|
b.label(() -> effect).grow().wrap().labelAlign(Align.center).center();
|
||||||
b.clicked(() -> showSelect(b, statusNames, effect, o -> {
|
b.clicked(() -> showSelect(b, statusNames, effect, o -> {
|
||||||
effect = o;
|
effect = o;
|
||||||
|
build(table);
|
||||||
}, 2, c -> c.size(120f, 38f)));
|
}, 2, c -> c.size(120f, 38f)));
|
||||||
}, Styles.logict, () -> {}).size(120f, 40f).pad(4f).color(table.color);
|
}, Styles.logict, () -> {}).size(120f, 40f).pad(4f).color(table.color);
|
||||||
|
|
||||||
//TODO effect select
|
|
||||||
|
|
||||||
table.add(clear ? " from " : " to ");
|
table.add(clear ? " from " : " to ");
|
||||||
|
|
||||||
row(table);
|
row(table);
|
||||||
|
|||||||
Reference in New Issue
Block a user