[Update] add config variable and callback, ENABLE_SEND_MESSAGE_TO_VRC and callbackSetEnableSendMessageToVrc.

add Config Window Setting Item(Send Message To VRChat)
This commit is contained in:
Sakamoto Shiina
2023-09-17 12:01:23 +09:00
parent 43133ac7ad
commit 6f5b7983a9
4 changed files with 30 additions and 14 deletions

View File

@@ -388,6 +388,16 @@ class Config:
if type(value) is bool:
self._ENABLE_OSC = value
@property
def ENABLE_SEND_MESSAGE_TO_VRC(self):
return self._ENABLE_SEND_MESSAGE_TO_VRC
@ENABLE_SEND_MESSAGE_TO_VRC.setter
def ENABLE_SEND_MESSAGE_TO_VRC(self, value):
if type(value) is bool:
self._ENABLE_SEND_MESSAGE_TO_VRC = value
saveJson(self.PATH_CONFIG, inspect.currentframe().f_code.co_name, value)
@property
def STARTUP_OSC_ENABLED_CHECK(self):
return self._STARTUP_OSC_ENABLED_CHECK
@@ -517,6 +527,7 @@ class Config:
self._ENABLE_AUTO_CLEAR_MESSAGE_BOX = True
self._ENABLE_NOTICE_XSOVERLAY = False
self._ENABLE_OSC = False
self._ENABLE_SEND_MESSAGE_TO_VRC = True
self._STARTUP_OSC_ENABLED_CHECK = True
self._UPDATE_FLAG = False
self._GITHUB_URL = "https://api.github.com/repos/misyaguziya/VRCT/releases/latest"