From 6dff68e7d90c63e494beb732d8e3f64cd13e76d7 Mon Sep 17 00:00:00 2001 From: ApsZoldat Date: Tue, 7 Nov 2023 22:42:42 +0300 Subject: [PATCH 001/369] Texture marker implementation --- core/assets/bundles/bundle.properties | 4 ++ core/src/mindustry/game/MapObjectives.java | 66 +++++++++++++++++++- core/src/mindustry/logic/LExecutor.java | 17 ++++- core/src/mindustry/logic/LMarkerControl.java | 5 +- core/src/mindustry/logic/LStatements.java | 2 +- 5 files changed, 89 insertions(+), 5 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 044d48dcaf..62c906fa56 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -2458,3 +2458,7 @@ lenum.build = Build a structure. lenum.getblock = Fetch a building, floor and type at coordinates.\nUnit must be in range of position.\nSolid non-buildings will have the type [accent]@solid[]. lenum.within = Check if unit is near a position. lenum.boost = Start/stop boosting. + +lenum.texture = Texture name straight from game's texture atlas (using kebab-case naming style).\nSecond and third arguments are additional suffixes added using "-" separator.\nIf additional arguments are not strings, nothing is added to first string. +lenum.textureWidth = Width of texture in tiles. Zero value scales marker width to original texture's size. +lenum.textureHeight = Height of texture in tiles. Zero value scales marker height to original texture's size. diff --git a/core/src/mindustry/game/MapObjectives.java b/core/src/mindustry/game/MapObjectives.java index cef72e7971..c648aecc6f 100644 --- a/core/src/mindustry/game/MapObjectives.java +++ b/core/src/mindustry/game/MapObjectives.java @@ -64,7 +64,8 @@ public class MapObjectives implements Iterable, Eachable, Eachable