Merge pull request #602 from misternebula/dev

0.26.1
This commit is contained in:
_nebula 2023-03-04 20:53:08 +00:00 committed by GitHub
commit 73cdc6a24b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -119,10 +119,6 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart
HUDIconStack.Push(HUDIcon.TIMBER_HEARTH);
new PlanetMessage(HUDIcon.TIMBER_HEARTH).Send();
var playerMinimap = QSBWorldSync.GetUnityObjects<Minimap>().First(x => x.name == "Minimap_Root");
_markerMaterial = Instantiate(playerMinimap._probeMarkerTransform.GetComponent<MeshRenderer>().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<Minimap>().First(x => x.name == "Minimap_Root");
_markerMaterial = Instantiate(playerMinimap._probeMarkerTransform.GetComponent<MeshRenderer>().material);
_markerMaterial.color = new Color32(218, 115, 255, 255);
}
player.MinimapPlayerMarker.GetComponent<MeshRenderer>().material = _markerMaterial;
}

View File

@ -9,6 +9,7 @@ using UnityEngine.UI;
namespace QSB.HUD;
[UsedInUnityProject]
public class PlayerBox : MonoBehaviour
{
public Text PlayerName;

View File

@ -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" ],