mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 06:49:22 +00:00
[CustomSpawnPoint] Fixes for 2025r180
This commit is contained in:
parent
1a591749c6
commit
7deddd88ea
3 changed files with 14 additions and 14 deletions
|
@ -17,7 +17,7 @@ using System.Reflection;
|
||||||
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/CustomSpawnPoint"
|
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/CustomSpawnPoint"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
|
[assembly: MelonGame("ChilloutVR", "ChilloutVR")]
|
||||||
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
||||||
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
||||||
[assembly: MelonColor(255, 246, 25, 99)] // red-pink
|
[assembly: MelonColor(255, 246, 25, 99)] // red-pink
|
||||||
|
@ -27,6 +27,6 @@ using System.Reflection;
|
||||||
namespace NAK.CustomSpawnPoint.Properties;
|
namespace NAK.CustomSpawnPoint.Properties;
|
||||||
internal static class AssemblyInfoParams
|
internal static class AssemblyInfoParams
|
||||||
{
|
{
|
||||||
public const string Version = "1.0.2";
|
public const string Version = "1.0.3";
|
||||||
public const string Author = "NotAKidoS";
|
public const string Author = "NotAKidoS";
|
||||||
}
|
}
|
|
@ -41,20 +41,20 @@ internal static class SpawnPointManager
|
||||||
{
|
{
|
||||||
while (ViewManager.Instance == null)
|
while (ViewManager.Instance == null)
|
||||||
yield return null;
|
yield return null;
|
||||||
while (ViewManager.Instance.gameMenuView == null)
|
while (ViewManager.Instance.cohtmlView == null)
|
||||||
yield return null;
|
yield return null;
|
||||||
while (ViewManager.Instance.gameMenuView.Listener == null)
|
while (ViewManager.Instance.cohtmlView.Listener == null)
|
||||||
yield return null;
|
yield return null;
|
||||||
|
|
||||||
ViewManager.Instance.OnUiConfirm.AddListener(OnClearSpawnpointConfirm);
|
ViewManager.Instance.OnUiConfirm.AddListener(OnClearSpawnpointConfirm);
|
||||||
ViewManager.Instance.gameMenuView.Listener.FinishLoad += (_) =>
|
ViewManager.Instance.cohtmlView.Listener.FinishLoad += (_) =>
|
||||||
{
|
{
|
||||||
ViewManager.Instance.gameMenuView.View._view.ExecuteScript(spawnpointJs);
|
ViewManager.Instance.cohtmlView.View._view.ExecuteScript(spawnpointJs);
|
||||||
};
|
};
|
||||||
ViewManager.Instance.gameMenuView.Listener.ReadyForBindings += () =>
|
ViewManager.Instance.cohtmlView.Listener.ReadyForBindings += () =>
|
||||||
{
|
{
|
||||||
// listen for setting the spawn point on our custom button
|
// listen for setting the spawn point on our custom button
|
||||||
ViewManager.Instance.gameMenuView.View.BindCall("NAKCallSetSpawnpoint", SetSpawnPoint);
|
ViewManager.Instance.cohtmlView.View.BindCall("NAKCallSetSpawnpoint", SetSpawnPoint);
|
||||||
};
|
};
|
||||||
|
|
||||||
// create our custom spawn point object
|
// create our custom spawn point object
|
||||||
|
@ -179,7 +179,7 @@ internal static class SpawnPointManager
|
||||||
|
|
||||||
private static void UpdateMenuButtonState(bool hasSpawnpoint, bool isInWorld)
|
private static void UpdateMenuButtonState(bool hasSpawnpoint, bool isInWorld)
|
||||||
{
|
{
|
||||||
ViewManager.Instance.gameMenuView.View.TriggerEvent("NAKUpdateSpawnpointStatus", hasSpawnpoint.ToString(), isInWorld.ToString());
|
ViewManager.Instance.cohtmlView.View.TriggerEvent("NAKUpdateSpawnpointStatus", hasSpawnpoint.ToString(), isInWorld.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ClearCurrentWorldState()
|
private static void ClearCurrentWorldState()
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"_id": 228,
|
"_id": 228,
|
||||||
"name": "CustomSpawnPoint",
|
"name": "CustomSpawnPoint",
|
||||||
"modversion": "1.0.2",
|
"modversion": "1.0.3",
|
||||||
"gameversion": "2025r179",
|
"gameversion": "2025r180",
|
||||||
"loaderversion": "0.6.1",
|
"loaderversion": "0.7.2",
|
||||||
"modtype": "Mod",
|
"modtype": "Mod",
|
||||||
"author": "NotAKidoS",
|
"author": "NotAKidoS",
|
||||||
"description": "Replaces the unused Images button in the World Details page with a button to set a custom spawn point.",
|
"description": "Replaces the unused Images button in the World Details page with a button to set a custom spawn point.",
|
||||||
|
@ -17,8 +17,8 @@
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"None"
|
"None"
|
||||||
],
|
],
|
||||||
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r46/CustomSpawnPoint.dll",
|
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r47/CustomSpawnPoint.dll",
|
||||||
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/CustomSpawnPoint/",
|
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/CustomSpawnPoint/",
|
||||||
"changelog": "- Recompiled for 2025r179",
|
"changelog": "- Fixes for 2025r180",
|
||||||
"embedcolor": "#f61963"
|
"embedcolor": "#f61963"
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue