World processor markers: remove toggleVisibility, swap makemarker's type and id arguments for instruction consistency
This commit is contained in:
@@ -629,7 +629,6 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
|
||||
/** Control marker with world processor code*/
|
||||
public void control(LMarkerControl type, double p1, double p2, double p3){
|
||||
switch(type){
|
||||
case toggleVisibility -> hidden = !hidden;
|
||||
case visibility -> hidden = ((Math.abs(p1) < 1e-5));
|
||||
case drawLayer -> drawLayer = (float)p1;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package mindustry.logic;
|
||||
public enum LMarkerControl{
|
||||
remove,
|
||||
visibility("true/false"),
|
||||
toggleVisibility,
|
||||
x("x"),
|
||||
y("y"),
|
||||
pos("x", "y"),
|
||||
|
||||
@@ -2000,7 +2000,7 @@ public class LStatements{
|
||||
|
||||
@RegisterStatement("makemarker")
|
||||
public static class MakeMarkerStatement extends LStatement{
|
||||
public String id = "0", type = "shape", x = "0", y = "0", replace = "true";
|
||||
public String type = "shape", id = "0", x = "0", y = "0", replace = "true";
|
||||
|
||||
@Override
|
||||
public void build(Table table){
|
||||
|
||||
Reference in New Issue
Block a user