ShareBubbles: Fixes for 2025r178

This commit is contained in:
NotAKidoS 2025-01-15 16:42:53 -06:00
parent ac9af46bd6
commit 6d30fe1f41
5 changed files with 13 additions and 13 deletions

View file

@ -1462,7 +1462,7 @@ ContentShareMod.init();
public static void Postfix_ViewManager_Start(ViewManager __instance)
{
// Inject the details toolbar patches when the game menu view is loaded
__instance.gameMenuView.Listener.FinishLoad += _ => {
__instance.gameMenuView.Listener.FinishLoad += (_) => {
__instance.gameMenuView.View._view.ExecuteScript(DETAILS_TOOLBAR_PATCHES);
__instance.gameMenuView.View.BindCall("NAKCallShareContent", OnShareContent);
__instance.gameMenuView.View.BindCall("NAKGetContentShares", OnGetContentShares);

View file

@ -27,6 +27,6 @@ using NAK.ShareBubbles.Properties;
namespace NAK.ShareBubbles.Properties;
internal static class AssemblyInfoParams
{
public const string Version = "1.0.3";
public const string Version = "1.0.4";
public const string Author = "NotAKidoS, Exterrata, Noachi, RaidShadowLily, Tejler";
}

View file

@ -14,12 +14,12 @@ public class BubbleInteract : Interactable
return Vector3.Distance(transform.position, sourcePos) < 1.5f;
}
public override void OnInteractDown(ControllerRay controllerRay)
public override void OnInteractDown(InteractionContext context, ControllerRay controllerRay)
{
// Not used
}
public override void OnInteractUp(ControllerRay controllerRay)
public override void OnInteractUp(InteractionContext context, ControllerRay controllerRay)
{
if (PlayerSetup.Instance.GetCurrentPropSelectionMode()
!= PlayerSetup.PropSelectionMode.None)
@ -39,12 +39,12 @@ public class BubbleInteract : Interactable
GetComponentInParent<ShareBubble>().ViewDetailsPage();
}
public override void OnHoverEnter()
public override void OnHoverEnter(InteractionContext context, ControllerRay controllerRay)
{
// Not used
}
public override void OnHoverExit()
public override void OnHoverExit(InteractionContext context, ControllerRay controllerRay)
{
// Not used
}

View file

@ -30,12 +30,12 @@ public class ReturnOnRelease : MonoBehaviour
pickupable.onDrop.AddListener(OnPickupRelease);
}
public void OnPickupGrabbed()
public void OnPickupGrabbed(InteractionContext _)
{
isReturning = false;
}
public void OnPickupRelease()
public void OnPickupRelease(InteractionContext _)
{
isReturning = true;
}

View file

@ -1,8 +1,8 @@
{
"_id": -1,
"_id": 244,
"name": "ShareBubbles",
"modversion": "1.0.2",
"gameversion": "2024r177",
"modversion": "1.0.4",
"gameversion": "2025r178",
"loaderversion": "0.6.1",
"modtype": "Mod",
"author": "NotAKidoS, Exterrata, Noachi, RaidShadowLily, Tejler, Luc",
@ -17,8 +17,8 @@
"requirements": [
"None"
],
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r43/ShareBubbles.dll",
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r45/ShareBubbles.dll",
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/ShareBubbles/",
"changelog": "- Initial release.",
"changelog": "- Fixes for 2025r178",
"embedcolor": "#f61963"
}