Fix marker and bridge calculation game crashes, minor marker instruction fixes (#9112)

* Fix text setting in marker control

* Fix marker and bridge calculation game crashes, minor marker instruction code fixes
This commit is contained in:
ApsZoldat
2023-09-29 17:10:50 +03:00
committed by GitHub
parent 8b155828b7
commit 93269692ab
4 changed files with 12 additions and 8 deletions

View File

@@ -1982,7 +1982,7 @@ public class LStatements{
@RegisterStatement("makemarker")
public static class MakeMarkerStatement extends LStatement{
public String id = "0", type = "Shape", x = "0", y = "0";
public String id = "0", type = "shape", x = "0", y = "0";
@Override
public void build(Table table){
@@ -1991,7 +1991,7 @@ public class LStatements{
table.button(b -> {
b.label(() -> type);
b.clicked(() -> showSelect(b, MapObjectives.allMarkerTypeNanes.toArray(String.class), type, t -> {
b.clicked(() -> showSelect(b, MapObjectives.allMarkerTypeNames.toArray(String.class), type, t -> {
type = t;
build(table);
}, 2, cell -> cell.size(160, 50)));