mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
WhereAmIPointing: fixed dimming of ray when no menu is open
This commit is contained in:
parent
da90e4623f
commit
832f392682
2 changed files with 4 additions and 3 deletions
|
@ -70,7 +70,8 @@ public class WhereAmIPointingMod : MelonMod
|
||||||
Material material = instance.lineRenderer.material;
|
Material material = instance.lineRenderer.material;
|
||||||
Color color = material.color;
|
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))
|
if (!(Math.Abs(color.a - targetAlpha) > float.Epsilon))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,6 @@ using System.Reflection;
|
||||||
namespace NAK.WhereAmIPointing.Properties;
|
namespace NAK.WhereAmIPointing.Properties;
|
||||||
internal static class AssemblyInfoParams
|
internal static class AssemblyInfoParams
|
||||||
{
|
{
|
||||||
public const string Version = "1.0.0";
|
public const string Version = "1.0.1";
|
||||||
public const string Author = "NotAKidoS";
|
public const string Author = "NotAKidoS";
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue