mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
update if QM is open
This commit is contained in:
parent
c00dd57a77
commit
b9f11dbca0
3 changed files with 17 additions and 4 deletions
|
@ -87,4 +87,17 @@ public static class CohtmlViewPatches
|
||||||
_gameMenuOpenTraverse = Traverse.Create(__instance).Field("_gameMenuOpen");
|
_gameMenuOpenTraverse = Traverse.Create(__instance).Field("_gameMenuOpen");
|
||||||
SchedulerSystem.AddJob(new SchedulerSystem.Job(() => FuckMetrics.CohtmlAdvanceView(_gameMenuView, _gameMenuOpenTraverse)), 12f, 6f, -1);
|
SchedulerSystem.AddJob(new SchedulerSystem.Job(() => FuckMetrics.CohtmlAdvanceView(_gameMenuView, _gameMenuOpenTraverse)), 12f, 6f, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPostfix]
|
||||||
|
[HarmonyPatch(typeof(ViewManager), "OnMicrophoneStatusSwitched")]
|
||||||
|
private static void Postfix_ViewManager_OnMicrophoneStatusSwitched()
|
||||||
|
{
|
||||||
|
if (_quickMenuOpenTraverse.GetValue<bool>())
|
||||||
|
{
|
||||||
|
if (FuckMetricsMod.EntryDisableMetrics.Value != FuckMetricsMod.SettingState.Always)
|
||||||
|
{
|
||||||
|
CVR_MenuManager.Instance.SendCoreUpdate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -26,6 +26,6 @@ using System.Reflection;
|
||||||
namespace NAK.Melons.FuckMetrics.Properties;
|
namespace NAK.Melons.FuckMetrics.Properties;
|
||||||
internal static class AssemblyInfoParams
|
internal static class AssemblyInfoParams
|
||||||
{
|
{
|
||||||
public const string Version = "1.0.2";
|
public const string Version = "1.0.3";
|
||||||
public const string Author = "NotAKidoS";
|
public const string Author = "NotAKidoS";
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"_id": 135,
|
"_id": 135,
|
||||||
"name": "FuckMetrics",
|
"name": "FuckMetrics",
|
||||||
"modversion": "1.0.2",
|
"modversion": "1.0.3",
|
||||||
"gameversion": "2022r170",
|
"gameversion": "2022r170",
|
||||||
"loaderversion": "0.5.7",
|
"loaderversion": "0.5.7",
|
||||||
"modtype": "Mod",
|
"modtype": "Mod",
|
||||||
|
@ -17,8 +17,8 @@
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"None"
|
"None"
|
||||||
],
|
],
|
||||||
"downloadlink": "https://github.com/NotAKidOnSteam/FuckMetrics/releases/download/v1.0.2/FuckMetrics.dll",
|
"downloadlink": "https://github.com/NotAKidOnSteam/FuckMetrics/releases/download/v1.0.3/FuckMetrics.dll",
|
||||||
"sourcelink": "https://github.com/NotAKidOnSteam/FuckMetrics/",
|
"sourcelink": "https://github.com/NotAKidOnSteam/FuckMetrics/",
|
||||||
"changelog": "- Initial Release.\n- Renamed to FuckMetrics.\n- Add Update Rate settings.\n- Add back CohtmlView disabling as option.",
|
"changelog": "- Initial Release.\n- Renamed to FuckMetrics.\n- Add Update Rate settings.\n- Add back CohtmlView disabling as option.\n- Update CoreUpdate on mic toggle if QM is open.",
|
||||||
"embedcolor": "#8ed6fb"
|
"embedcolor": "#8ed6fb"
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue