Fix notifications crashing and table buttons moving on hover

This commit is contained in:
Natsumi
2025-06-21 14:06:50 +12:00
parent 921070da71
commit 2612ea38f0
5 changed files with 19 additions and 17 deletions

View File

@@ -89,7 +89,7 @@ namespace VRCX
/// <param name="body">The content of the notification.</param>
/// <param name="timeout">[CURRENTLY UNUSED]The timeout of the notification.</param>
/// <param name="image">The image of the notification.</param>
public void OVRTNotification(bool hudNotification, bool wristNotification, string title, string body, int timeout, int opacity, string image = "")
public void OVRTNotification(bool hudNotification, bool wristNotification, string title, string body, int timeout, double opacity, string image = "")
{
List<OvrtMessage> messages = [];

View File

@@ -13,7 +13,7 @@ namespace VRCX
/// <param name="content">The content of the notification.</param>
/// <param name="timeout">The duration of the notification in milliseconds.</param>
/// <param name="image">The optional image to display in the notification.</param>
public void XSNotification(string title, string content, int timeout, int opacity, string image = "")
public void XSNotification(string title, string content, int timeout, double opacity, string image = "")
{
var broadcastSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
var endPoint = new IPEndPoint(IPAddress.Loopback, 42069);
@@ -44,7 +44,7 @@ namespace VRCX
audioPath = string.Empty,
useBase64Icon = useBase64Icon,
icon = icon,
opacity = opacity / 100f
opacity = (float)opacity
};
var byteBuffer = JsonSerializer.SerializeToUtf8Bytes(msg);