Misc cleanup
This commit is contained in:
@@ -10,12 +10,8 @@ import mindustry.logic.LExecutor.*;
|
||||
public class LAssembler{
|
||||
public static ObjectMap<String, Func<String[], LStatement>> customParsers = new ObjectMap<>();
|
||||
public static final int maxTokenLength = 36;
|
||||
private static final int invalidNum = Integer.MIN_VALUE;
|
||||
|
||||
private static final StringMap opNameChanges = StringMap.of(
|
||||
"atan2", "angle",
|
||||
"dst", "len"
|
||||
);
|
||||
private static final int invalidNum = Integer.MIN_VALUE;
|
||||
|
||||
private int lastVar;
|
||||
/** Maps names to variable IDs. */
|
||||
|
||||
@@ -51,7 +51,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);;
|
||||
table.add(desc).padLeft(10).left().self(this::param);
|
||||
return field(table, value, setter).width(85f).padRight(10).left();
|
||||
}
|
||||
|
||||
|
||||
@@ -905,7 +905,7 @@ public class LStatements{
|
||||
void rebuild(Table table){
|
||||
table.clearChildren();
|
||||
|
||||
table.add(" find ").left().self(this::param);;
|
||||
table.add(" find ").left().self(this::param);
|
||||
|
||||
table.button(b -> {
|
||||
b.label(() -> locate.name());
|
||||
@@ -918,14 +918,14 @@ public class LStatements{
|
||||
switch(locate){
|
||||
case building -> {
|
||||
row(table);
|
||||
table.add(" group ").left().self(this::param);;
|
||||
table.add(" group ").left().self(this::param);
|
||||
table.button(b -> {
|
||||
b.label(() -> flag.name());
|
||||
b.clicked(() -> showSelect(b, BlockFlag.allLogic, flag, t -> flag = t, 2, cell -> cell.size(110, 50)));
|
||||
}, Styles.logict, () -> {}).size(110, 40).color(table.color).left().padLeft(2);
|
||||
row(table);
|
||||
|
||||
table.add(" enemy ").left().self(this::param);;
|
||||
table.add(" enemy ").left().self(this::param);
|
||||
|
||||
fields(table, enemy, str -> enemy = str);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user