mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-01 13:59:22 +00:00
fix initial setting states
not worth pushing cvrmg update prolly??
This commit is contained in:
parent
6d23212d40
commit
e09a09ffc0
1 changed files with 6 additions and 4 deletions
|
@ -44,23 +44,25 @@ public class FuckMetricsMod : MelonMod
|
|||
{
|
||||
while (PlayerSetup.Instance == null)
|
||||
yield return null;
|
||||
UpdateSettings();
|
||||
InitializeSettings();
|
||||
}
|
||||
|
||||
private void UpdateSettings()
|
||||
private void InitializeSettings()
|
||||
{
|
||||
FuckMetrics.ToggleMetrics(false);
|
||||
FuckMetrics.ToggleCoreUpdates(false);
|
||||
FuckMetrics.ToggleMetrics(EntryDisableMetrics.Value == FuckMetrics.SettingState.Always);
|
||||
FuckMetrics.ToggleCoreUpdates(EntryDisableCoreUpdates.Value == FuckMetrics.SettingState.Always);
|
||||
}
|
||||
|
||||
private void OnDisableMetrics(object arg1, object arg2)
|
||||
{
|
||||
FuckMetrics.ToggleMetrics(EntryDisableMetrics.Value == FuckMetrics.SettingState.Always);
|
||||
FuckMetrics.ToggleMetrics(EntryDisableMetrics.Value != FuckMetrics.SettingState.Disabled);
|
||||
}
|
||||
|
||||
private void OnDisableCoreUpdates(object arg1, object arg2)
|
||||
{
|
||||
FuckMetrics.ToggleCoreUpdates(EntryDisableCoreUpdates.Value == FuckMetrics.SettingState.Always);
|
||||
FuckMetrics.ToggleCoreUpdates(EntryDisableCoreUpdates.Value != FuckMetrics.SettingState.Disabled);
|
||||
}
|
||||
|
||||
private void OnChangeMetricsUpdateRate(object arg1, object arg2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue