[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

@@ -518,6 +518,10 @@ def callbackSetMessageFormat(value):
if len(value) > 0:
config.MESSAGE_FORMAT = value
def callbackSetEnableSendMessageToVrc(value):
print("callbackSetEnableSendMessageToVrc", value)
config.ENABLE_SEND_MESSAGE_TO_VRC = value
def callbackSetStartupOscEnabledCheck(value):
print("callbackSetStartupOscEnabledCheck", value)
config.STARTUP_OSC_ENABLED_CHECK = value
@@ -626,7 +630,7 @@ view.register(
"callback_set_enable_notice_xsoverlay": callbackSetEnableNoticeXsoverlay,
"callback_set_enable_auto_export_message_logs": callbackSetEnableAutoExportMessageLogs,
"callback_set_message_format": callbackSetMessageFormat,
"callback_set_enable_send_message_to_vrc": callbackSetEnableSendMessageToVrc,
"callback_set_startup_osc_enabled_check": callbackSetStartupOscEnabledCheck,
# Advanced Settings Tab