From 9d95c508b797b1ba2b6b3c43e4a49c7148992971 Mon Sep 17 00:00:00 2001 From: misygauziya Date: Tue, 25 Jul 2023 11:26:54 +0900 Subject: [PATCH] =?UTF-8?q?[Update]=20XSOverlay=E3=81=AE=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=AEparameter=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notification.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/notification.py b/notification.py index 5d3d0898..61e18725 100644 --- a/notification.py +++ b/notification.py @@ -20,8 +20,8 @@ import json import base64 def notification_xsoverlay( - endpoint:tuple=("127.0.0.1", 42069), messageType:int=0, index:int=0, timeout:float=1, - height:float=120.0, opacity:float=1.0, volume:float=0.5, audioPath:str="default", + endpoint:tuple=("127.0.0.1", 42069), messageType:int=1, index:int=0, timeout:float=2, + height:float=120.0, opacity:float=1.0, volume:float=0.0, audioPath:str="", title:str="", content:str="", useBase64Icon:bool=False, icon:str="default", sourceApp:str="" ) -> int: @@ -54,8 +54,7 @@ def notification_xsoverlay( "sourceApp": sourceApp, } msg_str = json.dumps(data_msg) - msg_byte = msg_str.encode("utf-8") - response = sock.sendto(msg_byte, endpoint) + response = sock.sendto(msg_str.encode("utf-8"), endpoint) sock.close() return response @@ -64,7 +63,7 @@ def notification_xsoverlay_for_vrct(content:str="") -> int: title="VRCT", content=content, useBase64Icon=True, - icon="./img/app.ico", + icon="./img/xsoverlay.png", sourceApp="VRCT" ) return response