From e8e8189a9239bc338420c93e4f35b24be33648be Mon Sep 17 00:00:00 2001 From: Redstonneur1256 Date: Tue, 9 Apr 2024 01:51:50 +0200 Subject: [PATCH] Add ShapeMarker starting and ending angles (#9729) --- core/src/mindustry/game/MapObjectives.java | 14 ++++++++++---- core/src/mindustry/logic/LMarkerControl.java | 1 + gradle.properties | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/core/src/mindustry/game/MapObjectives.java b/core/src/mindustry/game/MapObjectives.java index fe7a3b235d..d1ba8ffbc6 100644 --- a/core/src/mindustry/game/MapObjectives.java +++ b/core/src/mindustry/game/MapObjectives.java @@ -851,7 +851,7 @@ public class MapObjectives implements Iterable, Eachable, Eachable, Eachable rotation = (float)p1; case color -> color.fromDouble(p1); case shape -> sides = (int)p1; + case arc -> startAngle = (float)p1; } } if(!Double.isNaN(p2)){ switch(type){ case shape -> fill = !Mathf.equal((float)p2, 0f); + case arc -> endAngle = (float)p2; } } diff --git a/core/src/mindustry/logic/LMarkerControl.java b/core/src/mindustry/logic/LMarkerControl.java index 16a9aaa9c6..c24775af02 100644 --- a/core/src/mindustry/logic/LMarkerControl.java +++ b/core/src/mindustry/logic/LMarkerControl.java @@ -13,6 +13,7 @@ public enum LMarkerControl{ stroke("stroke"), rotation("rotation"), shape("sides", "fill", "outline"), + arc("start", "end"), flushText("fetch"), fontSize("size"), textHeight("height"), diff --git a/gradle.properties b/gradle.properties index e3a8642e0a..25be0e37a2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -25,4 +25,4 @@ org.gradle.caching=true #used for slow jitpack builds; TODO see if this actually works org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.connectionTimeout=100000 -archash=8b6f34c036 +archash=8a2decd656