Dedicated BTKUILib page

Internal settings and UI rework
Upcoming mod support
This commit is contained in:
SDraw 2023-04-29 03:18:45 +03:00
parent 0440baa84f
commit 6d13ff1894
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
12 changed files with 269 additions and 154 deletions

View file

@ -24,6 +24,7 @@ namespace ml_prm
ms_instance = this;
Settings.Init();
ModUi.Init();
HarmonyInstance.Patch(
typeof(PlayerSetup).GetMethod(nameof(PlayerSetup.ClearAvatar)),
@ -81,6 +82,13 @@ namespace ml_prm
yield return null;
m_localController = PlayerSetup.Instance.gameObject.AddComponent<RagdollController>();
ModUi.SwitchChange += this.OnSwitchActivation;
}
void OnSwitchActivation()
{
if(m_localController != null)
m_localController.SwitchRagdoll();
}
// Patches