upload
This commit is contained in:
commit
1c7a8cf25f
579 files changed
+83196
No files matched your search
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
|
||||
namespace VibranceHud;
|
||||
|
||||
public sealed class DxOverlayGate
|
||||
{
|
||||
private readonly Func<bool> _qualityColour;
|
||||
|
||||
private readonly Func<bool> _renderPathVerified;
|
||||
|
||||
public static bool RenderPathVerified => false;
|
||||
|
||||
public bool IsOpen
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return _qualityColour() && _renderPathVerified();
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public DxOverlayGate(Func<bool> qualityColour)
|
||||
: this(qualityColour, () => RenderPathVerified)
|
||||
{
|
||||
}
|
||||
|
||||
internal DxOverlayGate(Func<bool> qualityColour, Func<bool> renderPathVerified)
|
||||
{
|
||||
_qualityColour = qualityColour ?? ((Func<bool>)(() => false));
|
||||
_renderPathVerified = renderPathVerified ?? ((Func<bool>)(() => RenderPathVerified));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user