mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-07 03:59:16 +00:00
ml_vet: archive
This commit is contained in:
parent
1b3eacd915
commit
2b97399a54
10 changed files with 0 additions and 7 deletions
15
archived/ml_vet/Utils.cs
Normal file
15
archived/ml_vet/Utils.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Core.UI;
|
||||
using System.Reflection;
|
||||
|
||||
namespace ml_vet
|
||||
{
|
||||
public static class Utils
|
||||
{
|
||||
static readonly FieldInfo ms_view = typeof(CohtmlControlledViewWrapper).GetField("_view", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
|
||||
public static void ExecuteScript(this CohtmlControlledViewWrapper p_instance, string p_script) => (ms_view?.GetValue(p_instance) as cohtml.Net.View)?.ExecuteScript(p_script);
|
||||
|
||||
public static bool IsInVR() => ((MetaPort.Instance != null) && MetaPort.Instance.isUsingVr);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue