[Update] UI: VRC ChatBoxの通知音のON/OFF 設定項目追加
This commit is contained in:
1 parent
4b61178b0e
commit
fd0069cb6b
7 files changed
+62
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
useEnableVrcMicMuteSync,
|
||||
useEnableSendMessageToVrc,
|
||||
useEnableSendReceivedMessageToVrc,
|
||||
useEnableNotificationVrcSfx,
|
||||
} from "@logics_configs";
|
||||
|
||||
import {
|
||||
@@ -25,6 +26,8 @@ import { Checkbox } from "@common_components";
|
||||
import OpenFolderSvg from "@images/open_folder.svg?react";
|
||||
|
||||
export const Others = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<div>
|
||||
@@ -34,6 +37,10 @@ export const Others = () => {
|
||||
<VrcMicMuteSyncContainer />
|
||||
<SendMessageToVrcContainer />
|
||||
</div>
|
||||
<div>
|
||||
<SectionLabelComponent label={t("config_page.others.section_label_sounds")} />
|
||||
<EnableNotificationVrcSfxContainer />
|
||||
</div>
|
||||
<div>
|
||||
<SectionLabelComponent label="Speaker2Chatbox" />
|
||||
<SendReceivedMessageToVrcContainer />
|
||||
@@ -118,6 +125,19 @@ const SendMessageToVrcContainer = () => {
|
||||
};
|
||||
|
||||
|
||||
const EnableNotificationVrcSfxContainer = () => {
|
||||
const { t } = useTranslation();
|
||||
const { currentEnableNotificationVrcSfx, toggleEnableNotificationVrcSfx } = useEnableNotificationVrcSfx();
|
||||
|
||||
return (
|
||||
<CheckboxContainer
|
||||
label={t("config_page.others.notification_vrc_sfx.label")}
|
||||
variable={currentEnableNotificationVrcSfx}
|
||||
toggleFunction={toggleEnableNotificationVrcSfx}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
const SendReceivedMessageToVrcContainer = () => {
|
||||
const { t } = useTranslation();
|
||||
const { currentEnableSendReceivedMessageToVrc, toggleEnableSendReceivedMessageToVrc } = useEnableSendReceivedMessageToVrc();
|
||||
|
||||
Reference in new issue
Block a user