Skip to content

Commit 7864172

Browse files
committed
Change most base classes to ResoniteBugFixMonkey
1 parent b74a63a commit 7864172

37 files changed

+59
-156
lines changed

CommunityBugFixCollection/AnyProtocolHyperlinks.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Elements.Core;
22
using FrooxEngine;
33
using HarmonyLib;
4-
using MonkeyLoader.Resonite;
54
using System;
65
using System.Collections.Generic;
76
using System.Diagnostics;
@@ -11,12 +10,10 @@ namespace CommunityBugFixCollection
1110
{
1211
[HarmonyPatch]
1312
[HarmonyPatchCategory(nameof(AnyProtocolHyperlinks))]
14-
internal sealed class AnyProtocolHyperlinks : ResoniteMonkey<AnyProtocolHyperlinks>
13+
internal sealed class AnyProtocolHyperlinks : ResoniteBugFixMonkey<AnyProtocolHyperlinks>
1514
{
1615
public override IEnumerable<string> Authors => Contributors.Banane9;
1716

18-
public override bool CanBeDisabled => true;
19-
2017
[HarmonyPrefix]
2118
[HarmonyPatch(typeof(HyperlinkOpenDialog), nameof(HyperlinkOpenDialog.Open))]
2219
private static bool HyperlinkOpenDialogOpenPrefix(HyperlinkOpenDialog __instance)
@@ -54,7 +51,7 @@ private static bool HyperlinkOpenPostfix(bool __result, Hyperlink __instance)
5451

5552
__instance._lastOpened = url;
5653

57-
Userspace.UserspaceWorld.RunSynchronously(delegate
54+
Userspace.UserspaceWorld.RunSynchronously(() =>
5855
{
5956
Slot slot = Userspace.UserspaceWorld.AddSlot("Hyperlink");
6057
slot.PositionInFrontOfUser(float3.Backward);

CommunityBugFixCollection/BetterGridWorldPreset.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Elements.Core;
22
using FrooxEngine;
33
using HarmonyLib;
4-
using MonkeyLoader.Resonite;
54
using System;
65
using System.Collections.Generic;
76
using System.Text;
@@ -10,12 +9,10 @@ namespace CommunityBugFixCollection
109
{
1110
[HarmonyPatchCategory(nameof(BetterGridWorldPreset))]
1211
[HarmonyPatch(typeof(WorldPresets), nameof(WorldPresets.Grid))]
13-
internal sealed class BetterGridWorldPreset : ResoniteMonkey<BetterGridWorldPreset>
12+
internal sealed class BetterGridWorldPreset : ResoniteBugFixMonkey<BetterGridWorldPreset>
1413
{
1514
public override IEnumerable<string> Authors => Contributors.Banane9;
1615

17-
public override bool CanBeDisabled => true;
18-
1916
private static bool Prefix(World w)
2017
{
2118
if (!Enabled)

CommunityBugFixCollection/BreakDragAndDropCopiedComponentDrives.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using HarmonyLib;
55
using MonkeyLoader;
66
using MonkeyLoader.Meta;
7-
using MonkeyLoader.Resonite;
87
using NuGet.Versioning;
98
using System;
109
using System.Collections.Generic;
@@ -14,12 +13,10 @@ namespace CommunityBugFixCollection
1413
{
1514
[HarmonyPatchCategory(nameof(BreakDragAndDropCopiedComponentDrives))]
1615
[HarmonyPatch(typeof(SlotComponentReceiver), nameof(SlotComponentReceiver.TryReceive))]
17-
internal sealed class BreakDragAndDropCopiedComponentDrives : ResoniteMonkey<BreakDragAndDropCopiedComponentDrives>
16+
internal sealed class BreakDragAndDropCopiedComponentDrives : ResoniteBugFixMonkey<BreakDragAndDropCopiedComponentDrives>
1817
{
1918
public override IEnumerable<string> Authors => Contributors.Banane9;
2019

21-
public override bool CanBeDisabled => true;
22-
2320
protected override bool OnEngineReady()
2421
{
2522
var integrationMod = Mod.Loader.Get<Mod>().ById("MonkeyLoader.GamePacks.Resonite");

CommunityBugFixCollection/CenteredNotifications.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using FrooxEngine;
22
using HarmonyLib;
3-
using MonkeyLoader.Resonite;
43
using System;
54
using System.Collections.Generic;
65
using System.Text;
@@ -12,12 +11,10 @@ namespace CommunityBugFixCollection
1211
{
1312
[HarmonyPatchCategory(nameof(CenteredNotifications))]
1413
[HarmonyPatch(typeof(NotificationPanel), nameof(NotificationPanel.OnCommonUpdate))]
15-
internal class CenteredNotifications : ResoniteMonkey<CenteredNotifications>
14+
internal class CenteredNotifications : ResoniteBugFixMonkey<CenteredNotifications>
1615
{
1716
public override IEnumerable<string> Authors => Contributors.Art0007i;
1817

19-
public override bool CanBeDisabled => true;
20-
2118
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> codes)
2219
{
2320
foreach (var code in codes)

CommunityBugFixCollection/CheckSelfForDuplicateSlot.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using FrooxEngine;
22
using HarmonyLib;
3-
using MonkeyLoader.Resonite;
43
using System;
54
using System.Collections.Generic;
65
using System.Reflection.Emit;
@@ -10,12 +9,10 @@ namespace CommunityBugFixCollection
109
{
1110
[HarmonyPatch(typeof(Slot), nameof(Slot.Duplicate))]
1211
[HarmonyPatchCategory(nameof(CheckSelfForDuplicateSlot))]
13-
internal sealed class CheckSelfForDuplicateSlot : ResoniteMonkey<CheckSelfForDuplicateSlot>
12+
internal sealed class CheckSelfForDuplicateSlot : ResoniteBugFixMonkey<CheckSelfForDuplicateSlot>
1413
{
1514
public override IEnumerable<string> Authors => Contributors.Banane9;
1615

17-
public override bool CanBeDisabled => true;
18-
1916
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
2017
{
2118
var isChildOfMethod = AccessTools.DeclaredMethod(typeof(Slot), nameof(Slot.IsChildOf));

CommunityBugFixCollection/ColorDisplayValueProxy.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using FrooxEngine.ProtoFlux;
44
using FrooxEngine.ProtoFlux.Runtimes.Execution.Nodes;
55
using HarmonyLib;
6-
using MonkeyLoader.Resonite;
76
using System;
87
using System.Collections.Generic;
98
using System.Text;
@@ -12,12 +11,10 @@ namespace CommunityBugFixCollection
1211
{
1312
[HarmonyPatchCategory(nameof(ColorDisplayValueProxy))]
1413
[HarmonyPatch(typeof(ValueDisplay<color>), nameof(ValueDisplay<color>.BuildContentUI))]
15-
internal sealed class ColorDisplayValueProxy : ResoniteMonkey<ColorDisplayValueProxy>
14+
internal sealed class ColorDisplayValueProxy : ResoniteBugFixMonkey<ColorDisplayValueProxy>
1615
{
1716
public override IEnumerable<string> Authors => Contributors.Banane9;
1817

19-
public override bool CanBeDisabled => true;
20-
2118
private static void Postfix(ValueDisplay<color> __instance, ProtoFluxNodeVisual visual)
2219
{
2320
if (!Enabled)

CommunityBugFixCollection/ColorXNodeNamesSpacing.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Elements.Core;
22
using HarmonyLib;
3-
using MonkeyLoader.Resonite;
43
using System;
54
using System.Collections.Generic;
65
using System.Text;
@@ -9,12 +8,10 @@ namespace CommunityBugFixCollection
98
{
109
[HarmonyPatchCategory(nameof(ColorXNodeNamesSpacing))]
1110
[HarmonyPatch(typeof(StringHelper), nameof(StringHelper.BeautifyName))]
12-
internal sealed class ColorXNodeNamesSpacing : ResoniteMonkey<ColorXNodeNamesSpacing>
11+
internal sealed class ColorXNodeNamesSpacing : ResoniteBugFixMonkey<ColorXNodeNamesSpacing>
1312
{
1413
public override IEnumerable<string> Authors => Contributors.Banane9;
1514

16-
public override bool CanBeDisabled => true;
17-
1815
private static string Postfix(string __result)
1916
{
2017
if (!Enabled)

CommunityBugFixCollection/ConsistentContextMenuAngularSize.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Elements.Core;
22
using FrooxEngine;
33
using HarmonyLib;
4-
using MonkeyLoader.Resonite;
54
using System;
65
using System.Collections.Generic;
76
using System.Text;
@@ -10,12 +9,10 @@ namespace CommunityBugFixCollection
109
{
1110
[HarmonyPatchCategory(nameof(ConsistentContextMenuAngularSize))]
1211
[HarmonyPatch(typeof(ContextMenu), nameof(ContextMenu.OnCommonUpdate))]
13-
internal sealed class ConsistentContextMenuAngularSize : ResoniteMonkey<ConsistentContextMenuAngularSize>
12+
internal sealed class ConsistentContextMenuAngularSize : ResoniteBugFixMonkey<ConsistentContextMenuAngularSize>
1413
{
1514
public override IEnumerable<string> Authors => Contributors.Banane9;
1615

17-
public override bool CanBeDisabled => true;
18-
1916
private static void Postfix(ContextMenu __instance)
2017
{
2118
if (!Enabled || !__instance.IsVisible || !__instance.IsUnderLocalUser)

CommunityBugFixCollection/CorrectByteCasting.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using HarmonyLib;
2-
using MonkeyLoader.Resonite;
32
using ProtoFlux.Core;
43
using ProtoFlux.Runtimes.Execution;
54
using ProtoFlux.Runtimes.Execution.Nodes.Casts;
@@ -11,12 +10,10 @@
1110

1211
namespace CommunityBugFixCollection
1312
{
14-
internal sealed class CorrectByteCasting : ResoniteMonkey<CorrectByteCasting>
13+
internal sealed class CorrectByteCasting : ResoniteBugFixMonkey<CorrectByteCasting>
1514
{
1615
public override IEnumerable<string> Authors => Contributors.Banane9;
1716

18-
public override bool CanBeDisabled => true;
19-
2017
protected override bool OnEngineReady()
2118
{
2219
var targets = AccessTools.GetTypesFromAssembly(typeof(Cast_byte_To_int).Assembly)

CommunityBugFixCollection/CorrectMaterialGizmoScaling.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Elements.Core;
22
using FrooxEngine;
33
using HarmonyLib;
4-
using MonkeyLoader.Resonite;
54
using System;
65
using System.Collections.Generic;
76
using System.Text;
@@ -10,12 +9,10 @@ namespace CommunityBugFixCollection
109
{
1110
[HarmonyPatchCategory(nameof(CorrectMaterialGizmoScaling))]
1211
[HarmonyPatch(typeof(MaterialGizmo), nameof(MaterialGizmo.PositionInFrontOfUser))]
13-
internal sealed class CorrectMaterialGizmoScaling : ResoniteMonkey<CorrectMaterialGizmoScaling>
12+
internal sealed class CorrectMaterialGizmoScaling : ResoniteBugFixMonkey<CorrectMaterialGizmoScaling>
1413
{
1514
public override IEnumerable<string> Authors => Contributors.Banane9;
1615

17-
public override bool CanBeDisabled => true;
18-
1916
// Apply default scale for inspector UI before it gets user-scaled again by PositionInFrontOfUser
2017
private static void Prefix(MaterialGizmo __instance)
2118
{

0 commit comments

Comments
 (0)