WhereAmIPointing: fixed dimming of ray when no menu is open

This commit is contained in:
NotAKidoS 2024-09-02 00:45:07 -05:00
parent da90e4623f
commit 832f392682
2 changed files with 4 additions and 3 deletions

View file

@ -70,7 +70,8 @@ public class WhereAmIPointingMod : MelonMod
Material material = instance.lineRenderer.material;
Color color = material.color;
float targetAlpha = instance.uiActive ? ORIGINAL_ALPHA : INTERACTION_ALPHA;
bool anyMenuOpen = ViewManager.Instance.IsAnyMenuOpen;
float targetAlpha = (!anyMenuOpen || instance.uiActive) ? ORIGINAL_ALPHA : INTERACTION_ALPHA;
if (!(Math.Abs(color.a - targetAlpha) > float.Epsilon))
return;

View file

@ -27,6 +27,6 @@ using System.Reflection;
namespace NAK.WhereAmIPointing.Properties;
internal static class AssemblyInfoParams
{
public const string Version = "1.0.0";
public const string Version = "1.0.1";
public const string Author = "NotAKidoS";
}