Added missing sort field to radar
This commit is contained in:
@@ -406,7 +406,16 @@ public class LStatements{
|
|||||||
|
|
||||||
fields(table, sortOrder, v -> sortOrder = v);
|
fields(table, sortOrder, v -> sortOrder = v);
|
||||||
|
|
||||||
row(table);
|
table.row();
|
||||||
|
|
||||||
|
table.add(" sort ");
|
||||||
|
|
||||||
|
table.button(b -> {
|
||||||
|
b.label(() -> sort.name());
|
||||||
|
b.clicked(() -> showSelect(b, RadarSort.all, sort, t -> {
|
||||||
|
sort = t;
|
||||||
|
}, 2, cell -> cell.size(100, 50)));
|
||||||
|
}, Styles.logict, () -> {}).size(90, 40).color(table.color).left().padLeft(2);
|
||||||
|
|
||||||
table.add(" output ");
|
table.add(" output ");
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ public enum RadarSort{
|
|||||||
|
|
||||||
public final RadarSortFunc func;
|
public final RadarSortFunc func;
|
||||||
|
|
||||||
|
public static final RadarSort[] all = values();
|
||||||
|
|
||||||
RadarSort(RadarSortFunc func){
|
RadarSort(RadarSortFunc func){
|
||||||
this.func = func;
|
this.func = func;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user