New mods: AvatarSyncedLook and PlayersInstanceNotifier

Minor changes
This commit is contained in:
SDraw 2023-12-24 11:53:57 +03:00
parent 72aeffb656
commit e13bb8af23
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
28 changed files with 841 additions and 16 deletions

13
ml_asl/Utils.cs Normal file
View file

@ -0,0 +1,13 @@
using ABI_RC.Core.UI;
using System.Reflection;
using UnityEngine;
namespace ml_asl
{
static class Utils
{
static readonly FieldInfo ms_view = typeof(CohtmlControlledViewWrapper).GetField("_view", BindingFlags.NonPublic | BindingFlags.Instance);
static public void ExecuteScript(this CohtmlControlledViewWrapper p_instance, string p_script) => ((cohtml.Net.View)ms_view.GetValue(p_instance)).ExecuteScript(p_script);
}
}