Minor code changes

This commit is contained in:
SDraw 2024-03-29 15:19:00 +03:00
parent 19606527fc
commit 11287e7dc5
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
36 changed files with 329 additions and 273 deletions

View file

@ -33,12 +33,12 @@ namespace ml_pin
static MelonLoader.MelonPreferences_Category ms_category = null;
static List<MelonLoader.MelonPreferences_Entry> ms_entries = null;
static public event Action<NotificationType> NotifyTypeChange;
static public event Action<float> VolumeChange;
static public event Action<bool> NotifyInPublicChange;
static public event Action<bool> NotifyInFriendsChange;
static public event Action<bool> NotifyInPrivateChange;
static public event Action<bool> FriendsAlwaysChange;
public static event Action<NotificationType> NotifyTypeChange;
public static event Action<float> VolumeChange;
public static event Action<bool> NotifyInPublicChange;
public static event Action<bool> NotifyInFriendsChange;
public static event Action<bool> NotifyInPrivateChange;
public static event Action<bool> FriendsAlwaysChange;
internal static void Init()
{

View file

@ -7,6 +7,6 @@ namespace ml_pin
{
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);
public static void ExecuteScript(this CohtmlControlledViewWrapper p_instance, string p_script) => ((cohtml.Net.View)ms_view.GetValue(p_instance)).ExecuteScript(p_script);
}
}