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*/
|
/** Control marker with world processor code*/
|
||||||
public void control(LMarkerControl type, double p1, double p2, double p3){
|
public void control(LMarkerControl type, double p1, double p2, double p3){
|
||||||
switch(type){
|
switch(type){
|
||||||
case toggleVisibility -> hidden = !hidden;
|
|
||||||
case visibility -> hidden = ((Math.abs(p1) < 1e-5));
|
case visibility -> hidden = ((Math.abs(p1) < 1e-5));
|
||||||
case drawLayer -> drawLayer = (float)p1;
|
case drawLayer -> drawLayer = (float)p1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package mindustry.logic;
|
|||||||
public enum LMarkerControl{
|
public enum LMarkerControl{
|
||||||
remove,
|
remove,
|
||||||
visibility("true/false"),
|
visibility("true/false"),
|
||||||
toggleVisibility,
|
|
||||||
x("x"),
|
x("x"),
|
||||||
y("y"),
|
y("y"),
|
||||||
pos("x", "y"),
|
pos("x", "y"),
|
||||||
|
|||||||
@@ -2000,7 +2000,7 @@ public class LStatements{
|
|||||||
|
|
||||||
@RegisterStatement("makemarker")
|
@RegisterStatement("makemarker")
|
||||||
public static class MakeMarkerStatement extends LStatement{
|
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
|
@Override
|
||||||
public void build(Table table){
|
public void build(Table table){
|
||||||
|
|||||||
Reference in New Issue
Block a user