From b869d7456ad87b9e9ffe1786262ecdc98ef18089 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Sat, 4 Mar 2023 19:09:39 +0000 Subject: [PATCH 1/3] update color --- QSB/HUD/MultiplayerHUDManager.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/QSB/HUD/MultiplayerHUDManager.cs b/QSB/HUD/MultiplayerHUDManager.cs index 2a16ba01..bdf89e64 100644 --- a/QSB/HUD/MultiplayerHUDManager.cs +++ b/QSB/HUD/MultiplayerHUDManager.cs @@ -119,10 +119,6 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart HUDIconStack.Push(HUDIcon.TIMBER_HEARTH); new PlanetMessage(HUDIcon.TIMBER_HEARTH).Send(); - - var playerMinimap = QSBWorldSync.GetUnityObjects().First(x => x.name == "Minimap_Root"); - _markerMaterial = Instantiate(playerMinimap._probeMarkerTransform.GetComponent().material); - _markerMaterial.color = Color.gray; } public void UpdateMinimapMarkers(Minimap minimap) @@ -177,6 +173,14 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart player.MinimapPlayerMarker.localScale = new Vector3(0.05f, 0.05f, 0.05f); player.MinimapPlayerMarker.localPosition = Vector3.zero; player.MinimapPlayerMarker.localRotation = Quaternion.identity; + + if (_markerMaterial == null) + { + var playerMinimap = QSBWorldSync.GetUnityObjects().First(x => x.name == "Minimap_Root"); + _markerMaterial = Instantiate(playerMinimap._probeMarkerTransform.GetComponent().material); + _markerMaterial.color = new Color32(218, 115, 255, 255); + } + player.MinimapPlayerMarker.GetComponent().material = _markerMaterial; } From d4dd0676da95134661464258f1b7996e3f6dc3e2 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Sat, 4 Mar 2023 19:09:50 +0000 Subject: [PATCH 2/3] add UsedInUnityProject to PlayerBox --- QSB/HUD/PlayerBox.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/QSB/HUD/PlayerBox.cs b/QSB/HUD/PlayerBox.cs index f685a0e3..e634df53 100644 --- a/QSB/HUD/PlayerBox.cs +++ b/QSB/HUD/PlayerBox.cs @@ -9,6 +9,7 @@ using UnityEngine.UI; namespace QSB.HUD; +[UsedInUnityProject] public class PlayerBox : MonoBehaviour { public Text PlayerName; From 10e65906908c7c9d2b928091551aebfaf3f9a9bb Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Sat, 4 Mar 2023 20:50:19 +0000 Subject: [PATCH 3/3] Update manifest.json --- QSB/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QSB/manifest.json b/QSB/manifest.json index bda26419..983d635f 100644 --- a/QSB/manifest.json +++ b/QSB/manifest.json @@ -7,7 +7,7 @@ "body": "- Disable *all* other mods. (Can heavily affect performance)\n- Make sure you are not running any other network-intensive applications." }, "uniqueName": "Raicuparta.QuantumSpaceBuddies", - "version": "0.26.0", + "version": "0.26.1", "owmlVersion": "2.9.0", "dependencies": [ "_nebula.MenuFramework", "JohnCorby.VanillaFix" ], "pathsToPreserve": [ "debugsettings.json" ],