👍️[Update] Model : Add send only translated messages overlay #32 for web_ui

This commit is contained in:
misyaguziya
2024-12-02 11:07:09 +09:00
parent e25abe11eb
commit c0942b0fbc
4 changed files with 30 additions and 6 deletions

View File

@@ -810,6 +810,17 @@ class Config:
self._OVERLAY_LARGE_LOG_SETTINGS[key] = float(value)
self.saveConfig(inspect.currentframe().f_code.co_name, self.OVERLAY_LARGE_LOG_SETTINGS)
@property
@json_serializable('OVERLAY_SHOW_ONLY_TRANSLATED_MESSAGE')
def OVERLAY_SHOW_ONLY_TRANSLATED_MESSAGE(self):
return self._OVERLAY_SHOW_ONLY_TRANSLATED_MESSAGE
@OVERLAY_SHOW_ONLY_TRANSLATED_MESSAGE.setter
def OVERLAY_SHOW_ONLY_TRANSLATED_MESSAGE(self, value):
if isinstance(value, bool):
self._OVERLAY_SHOW_ONLY_TRANSLATED_MESSAGE = value
self.saveConfig(inspect.currentframe().f_code.co_name, value)
@property
@json_serializable('SEND_MESSAGE_TO_VRC')
def SEND_MESSAGE_TO_VRC(self):
@@ -1108,6 +1119,7 @@ class Config:
"ui_scaling": 1.0,
"tracker": "LeftHand",
}
self._OVERLAY_SHOW_ONLY_TRANSLATED_MESSAGE = False
self._SEND_MESSAGE_TO_VRC = True
self._SEND_RECEIVED_MESSAGE_TO_VRC = False
self._LOGGER_FEATURE = False