From 5830259e411be063cb76649118dcec820c039821 Mon Sep 17 00:00:00 2001 From: ApsZoldat Date: Tue, 12 Dec 2023 22:40:33 +0300 Subject: [PATCH] Markers draw code refactor, minor text marker control changes --- core/assets/bundles/bundle.properties | 2 +- core/src/mindustry/game/MapObjectives.java | 209 ++++++------------ .../mindustry/graphics/MinimapRenderer.java | 9 +- core/src/mindustry/logic/LExecutor.java | 12 +- core/src/mindustry/logic/LMarkerControl.java | 2 +- core/src/mindustry/logic/LStatements.java | 1 + 6 files changed, 81 insertions(+), 154 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index f36943bd96..fc8cf95397 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -2480,7 +2480,7 @@ lenum.getblock = Fetch a building, floor and type at coordinates.\nUnit must be lenum.within = Check if unit is near a position. lenum.boost = Start/stop boosting. -lenum.text = Set marker text, if applicable to marker's type.\nIf printFlush is set to true, consumes text buffer content as text argument.\nIf fetch is set to true, tries to fetch properties from map locale bundle or game's bundle. +lenum.flushtext = Flush print buffer's content to marker, if applicable.\nIf fetch is set to true, tries to fetch properties from map locale bundle or game's bundle. lenum.texture = Texture name straight from game's texture atlas (using kebab-case naming style).\nIf printFlush is set to true, consumes text buffer content as text argument. lenum.texturesize = Size of texture in tiles. Zero value scales marker width to original texture's size. lenum.autoscale = Whether to scale marker corresponding to player's zoom level. diff --git a/core/src/mindustry/game/MapObjectives.java b/core/src/mindustry/game/MapObjectives.java index 6aee74ff9d..f7391fa3aa 100644 --- a/core/src/mindustry/game/MapObjectives.java +++ b/core/src/mindustry/game/MapObjectives.java @@ -637,8 +637,9 @@ public class MapObjectives implements Iterable, Eachable