mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
remove unnecessary qualifiers
This commit is contained in:
1 parent
99346c39e1
commit
8ba82b3072
5 files changed
+6
-6
No files matched your search
@@ -14,7 +14,7 @@ namespace MiraAPI.GameOptions.OptionTypes
|
||||
public float Increment { get; private set; }
|
||||
public NumberSuffixes SuffixType { get; private set; }
|
||||
public bool ZeroInfinity { get; private set; }
|
||||
public ModdedNumberOption(string title, float defaultValue, float min, float max, float increment, NumberSuffixes suffixType, bool zeroInfinity, System.Type roleType) : base(title, defaultValue, roleType)
|
||||
public ModdedNumberOption(string title, float defaultValue, float min, float max, float increment, NumberSuffixes suffixType, bool zeroInfinity, Type roleType) : base(title, defaultValue, roleType)
|
||||
{
|
||||
Min = min;
|
||||
Max = max;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace MiraAPI.GameOptions.OptionTypes
|
||||
{
|
||||
public class ModdedToggleOption : ModdedOption<bool>
|
||||
{
|
||||
public ModdedToggleOption(string title, bool defaultValue, System.Type roleType) : base(title, defaultValue, roleType)
|
||||
public ModdedToggleOption(string title, bool defaultValue, Type roleType) : base(title, defaultValue, roleType)
|
||||
{
|
||||
Data = ScriptableObject.CreateInstance<CheckboxGameSetting>();
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace MiraAPI.Patches
|
||||
if (!_bottomLeft)
|
||||
{
|
||||
var buttons = __instance.transform.Find("Buttons");
|
||||
_bottomLeft = UnityEngine.Object.Instantiate(buttons.Find("BottomRight").gameObject, buttons);
|
||||
_bottomLeft = Object.Instantiate(buttons.Find("BottomRight").gameObject, buttons);
|
||||
}
|
||||
|
||||
foreach (var t in _bottomLeft.GetComponentsInChildren<ActionButton>(true))
|
||||
|
||||
@@ -24,7 +24,7 @@ public static class GameOptionsMenuPatch
|
||||
float num = 2.1f;
|
||||
foreach (IModdedOptionGroup group in GameSettingMenuPatches.selectedMod.OptionGroups)
|
||||
{
|
||||
CategoryHeaderMasked categoryHeaderMasked = UnityEngine.Object.Instantiate(__instance.categoryHeaderOrigin, Vector3.zero, Quaternion.identity, __instance.settingsContainer);
|
||||
CategoryHeaderMasked categoryHeaderMasked = Object.Instantiate(__instance.categoryHeaderOrigin, Vector3.zero, Quaternion.identity, __instance.settingsContainer);
|
||||
categoryHeaderMasked.SetHeader(CustomStringName.CreateAndRegister(group.GroupName), 20);
|
||||
if (group.GroupColor != Color.clear)
|
||||
{
|
||||
@@ -62,7 +62,7 @@ public static class GameOptionsMenuPatch
|
||||
}
|
||||
}
|
||||
|
||||
CategoryHeaderMasked ungroupedHeader = UnityEngine.Object.Instantiate(__instance.categoryHeaderOrigin, Vector3.zero, Quaternion.identity, __instance.settingsContainer);
|
||||
CategoryHeaderMasked ungroupedHeader = Object.Instantiate(__instance.categoryHeaderOrigin, Vector3.zero, Quaternion.identity, __instance.settingsContainer);
|
||||
ungroupedHeader.SetHeader(CustomStringName.CreateAndRegister("Ungrouped Options"), 20);
|
||||
ungroupedHeader.transform.localScale = Vector3.one * 0.63f;
|
||||
ungroupedHeader.transform.localPosition = new Vector3(-0.903f, num, -2f);
|
||||
|
||||
@@ -186,7 +186,7 @@ namespace MiraAPI.Patches.Options
|
||||
roleOptionSetting.labelSprite.color = customRole.RoleColor;
|
||||
roleOptionSetting.titleText.color = customRole.RoleColor.DarkenColor();
|
||||
roleOptionSetting.OnValueChanged = new Action<OptionBehaviour>(ValueChanged);
|
||||
roleOptionSetting.titleText.horizontalAlignment = TMPro.HorizontalAlignmentOptions.Left;
|
||||
roleOptionSetting.titleText.horizontalAlignment = HorizontalAlignmentOptions.Left;
|
||||
roleOptionSetting.SetClickMask(__instance.ButtonClickMask);
|
||||
__instance.roleChances.Add(roleOptionSetting);
|
||||
|
||||
|
||||
Reference in new issue
Block a user