mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-04 02:49:23 +00:00
Dedicated BTKUILib page
Internal settings and UI rework Upcoming mod support
This commit is contained in:
parent
0440baa84f
commit
6d13ff1894
12 changed files with 269 additions and 154 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue