mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-27 23:44:35 +00:00
1 parent
d9cc57d355
commit
4e314a0a7e
4 files changed
+5
-7
No files matched your search
@@ -211,10 +211,9 @@ public static class RoleSettingMenuPatches
|
||||
headerBtn.OnClick.AddListener(
|
||||
(UnityAction)(() =>
|
||||
{
|
||||
RolePositions[GameSettingMenuPatches.SelectedModIdx] = __instance.scrollBar.Inner.localPosition;
|
||||
if (RoleGroupHidden.TryGetValue(group, out var val))
|
||||
if (RoleGroupHidden.TryGetValue(group, out var value))
|
||||
{
|
||||
RoleGroupHidden[group] = !val;
|
||||
RoleGroupHidden[group] = !value;
|
||||
}
|
||||
foreach (var header in Headers)
|
||||
{
|
||||
@@ -247,7 +246,7 @@ public static class RoleSettingMenuPatches
|
||||
return;
|
||||
}
|
||||
|
||||
scroller.CalculateAndSetYBounds(1 + 1.5f * Headers.Count + RoleOptionSettings.Count, 1f, 6f, 0.43f);
|
||||
scroller.CalculateAndSetYBounds(1.5f * Headers.Count + RoleOptionSettings.Count, 1f, 6f, 0.43f);
|
||||
if (RolePositions.TryGetValue(GameSettingMenuPatches.SelectedModIdx, out var scroll))
|
||||
{
|
||||
scroller.Inner.localPosition = scroll;
|
||||
|
||||
@@ -89,4 +89,3 @@ public class SavePresetPopup(nint ptr) : Minigame(ptr)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -49,4 +49,4 @@ public static class SpriteTools
|
||||
sprite.name = resourcePath;
|
||||
return sprite;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -84,7 +84,7 @@ public static class Extensions
|
||||
analytics.MinigameClosed(data, taskType, realtimeSinceStartup, isComplete);
|
||||
self.StartCoroutine(self.CoDestroySelf());
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Sets the cooldown of a button with a formatted string.
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user