mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
make gamemode use assignable from / instance
This commit is contained in:
1 parent
317e0b6ea9
commit
04b7a9905d
2 files changed
+1
-4
No files matched your search
@@ -81,9 +81,6 @@ public static class GameModeOption
|
||||
if (category)
|
||||
category.gameObject.transform.localPosition -= new Vector3(0, 1.3f, 0);
|
||||
}
|
||||
|
||||
var showOpts = CustomGameModeManager.ActiveMode.ShowNormalGameSettings;
|
||||
|
||||
CategoryHeaderMasked categoryHeaderMasked = Object.Instantiate(__instance.categoryHeaderOrigin, Vector3.zero, Quaternion.identity, __instance.settingsContainer);
|
||||
categoryHeaderMasked.SetHeader(CustomName, 20);
|
||||
categoryHeaderMasked.transform.localScale = Vector3.one * 0.63f;
|
||||
|
||||
@@ -177,7 +177,7 @@ public static class RoleSettingMenuPatches
|
||||
foreach (var grouping in sortedRoleGroups)
|
||||
{
|
||||
if (!grouping.Any() ||
|
||||
grouping.All(x=> x.Configuration.HideSettings || !x.VisibleInSettings() || x.Configuration.AssociatedGameMode != CustomGameModeManager.ActiveMode?.GetType()))
|
||||
grouping.All(x=> x.Configuration.HideSettings || !x.VisibleInSettings() || !x.Configuration.AssociatedGameMode.IsInstanceOfType(CustomGameModeManager.ActiveMode)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user