Skip to content

Commit

Permalink
Push colour numbers forward so they aren't hidden by room names on Ad…
Browse files Browse the repository at this point in the history
…min map
  • Loading branch information
Oshroth committed Jan 25, 2022
1 parent 101ecbb commit 23cd0d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/Patches/CrewmateRoles/SpyMod/Admin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ public static void UpdateBlips(CounterArea area, List<int> colorMapping)
// Show second row numbers above player icons
// show all icons on player icons when there are three rows
if(useCompactText) {
text.transform.localPosition = new Vector3(0, 0, -1);
text.transform.localPosition = new Vector3(0, 0, -20);
} else if (i / area.MaxWidth == 0) {
text.transform.localPosition = new Vector3(0, -area.YOffset, -1);
text.transform.localPosition = new Vector3(0, -area.YOffset, -20);
} else {
text.transform.localPosition = new Vector3(0, area.YOffset, -1);
text.transform.localPosition = new Vector3(0, area.YOffset, -20);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/Patches/CrewmateRoles/SpyMod/PooledMapIconPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void Postfix(PooledMapIcon __instance) {
text.fontMaterial.SetFloat("_OutlineWidth", 0.1745f);
text.fontMaterial.SetFloat("_FaceDilate", 0.151f);
}
text.transform.localPosition = new Vector3(0, 0, -1);
text.transform.localPosition = new Vector3(0, 0, -20);
text.text = "";
text.gameObject.SetActive(false);
var sprite = __instance.GetComponent<SpriteRenderer>();
Expand Down

0 comments on commit 23cd0d0

Please sign in to comment.