From 6ea2188beeb4ae83800237416fc90ec4b4076903 Mon Sep 17 00:00:00 2001 From: ApsZoldat Date: Mon, 27 Nov 2023 22:56:26 +0300 Subject: [PATCH] Add minimap mode to other objective markers --- core/assets/bundles/bundle.properties | 1 + core/src/mindustry/game/MapObjectives.java | 141 ++++++++++++++++-- .../mindustry/graphics/MinimapRenderer.java | 9 +- core/src/mindustry/logic/LMarkerControl.java | 5 +- 4 files changed, 141 insertions(+), 15 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 9a2b49311f..48b132a762 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -2462,3 +2462,4 @@ 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. +lenum.minimapautoscale = Whether to scale marker in minimap mode corresponding to player's zoom level. diff --git a/core/src/mindustry/game/MapObjectives.java b/core/src/mindustry/game/MapObjectives.java index 8e6bf5e65d..a1c78e2516 100644 --- a/core/src/mindustry/game/MapObjectives.java +++ b/core/src/mindustry/game/MapObjectives.java @@ -613,6 +613,10 @@ public class MapObjectives implements Iterable, Eachable