diff --git a/src/renderer/Voice.tsx b/src/renderer/Voice.tsx index 585326227..5eb0d1095 100644 --- a/src/renderer/Voice.tsx +++ b/src/renderer/Voice.tsx @@ -27,6 +27,8 @@ import { validateClientPeerConfig } from './validateClientPeerConfig'; // @ts-ignore import reverbOgx from 'arraybuffer-loader!../../static/sounds/reverb.ogx'; // @ts-ignore import radioOnSound from '../../static/sounds/radio_on.wav'; // @ts-ignore +import EnableDeadPlayer from '../../static/images/button/EnableDeadPlayerButton.png'; // @ts-ignore +import DisableDeadPlayer from '../../static/images/button/DisableDeadPlayerButton.png'; // @ts-ignore import { CameraLocation, AmongUsMaps, MapType } from '../common/AmongusMap'; import { ObsVoiceState } from '../common/ObsOverlay'; @@ -35,8 +37,6 @@ import Button from '@mui/material/Button'; import IconButton from '@mui/material/IconButton'; import VolumeOff from '@mui/icons-material/VolumeOff'; import VolumeUp from '@mui/icons-material/VolumeUp'; -import HearingIcon from '@mui/icons-material/Hearing'; -import HearingDisabledIcon from '@mui/icons-material/HearingDisabled'; import Mic from '@mui/icons-material/Mic'; import MicOff from '@mui/icons-material/MicOff'; import adapter from 'webrtc-adapter'; @@ -946,7 +946,7 @@ const Voice: React.FC = function ({ t, error: initialError }: VoiceP setDeafened(connectionStuff.current.deafened); }; - connectionStuff.current.toggleMute = () => { + connectionStuff.current.toggleMuteDead = () => { connectionStuff.current.muteDead = !connectionStuff.current.muteDead; setDead(connectionStuff.current.muteDead); } @@ -1404,7 +1404,7 @@ const Voice: React.FC = function ({ t, error: initialError }: VoiceP {gameState.lobbyCode !== 'MENU' && (
- {muteDead ? : } + {muteDead ? : } {mutedState || deafenedState ? : } diff --git a/static/images/button/DisableDeadPlayerButton.png b/static/images/button/DisableDeadPlayerButton.png new file mode 100644 index 000000000..d06c16e0b Binary files /dev/null and b/static/images/button/DisableDeadPlayerButton.png differ diff --git a/static/images/button/EnableDeadPlayerButton.png b/static/images/button/EnableDeadPlayerButton.png new file mode 100644 index 000000000..752ba1a24 Binary files /dev/null and b/static/images/button/EnableDeadPlayerButton.png differ