ShareBubbles: initial commit

This commit is contained in:
NotAKidoS 2024-12-02 20:06:26 -06:00
parent fe768029eb
commit 7b73452df6
39 changed files with 4901 additions and 0 deletions

View file

@ -0,0 +1,51 @@
using MelonLoader;
namespace NAK.ShareBubbles;
// TODO:
// Setting for ShareBubbles scaling with player size
// Setting for receiving notification when a direct share is received
// Setting for ShareBubble being interactable outside of the UI buttons (Grab & Click)
// Store last Visibility, Lifetime, and Access Control settings for ShareBubble placement in hidden melon preferences
public static class ModSettings
{
#region Constants & Category
internal const string ModName = nameof(ShareBubbles); // TODO idea: BTKUI player page button to remove player's ShareBubbles ?
//internal const string SM_SettingsCategory = "Share Bubbles Mod";
private static readonly MelonPreferences_Category Category =
MelonPreferences.CreateCategory(ModName);
#endregion Constants & Category
#region Debug Settings
internal static readonly MelonPreferences_Entry<bool> Debug_NetworkInbound =
Category.CreateEntry("debug_inbound", false, display_name: "Debug Inbound", description: "Log inbound Mod Network updates.");
internal static readonly MelonPreferences_Entry<bool> Debug_NetworkOutbound =
Category.CreateEntry("debug_outbound", false, display_name: "Debug Outbound", description: "Log outbound Mod Network updates.");
#endregion Debug Settings
#region Initialization
internal static void Initialize()
{
}
#endregion Initialization
#region Setting Changed Callbacks
// private static void OnPlayerUpAlignmentThresholdChanged(float oldValue, float newValue)
// {
// Entry_PlayerUpAlignmentThreshold.Value = Mathf.Clamp(newValue, 0f, 180f);
// }
#endregion Setting Changed Callbacks
}