Add visual indicator when the game is muted.

This commit is contained in:
Paul Chote
2020-02-22 13:26:33 +00:00
committed by Matthias Mailänder
parent 3f601e1ec1
commit 85faa5edf6
8 changed files with 185 additions and 0 deletions

View File

@@ -2,6 +2,26 @@ Container@OBSERVER_WIDGETS:
Logic: MenuButtonsChromeLogic
Children:
LogicKeyListener@OBSERVER_KEY_LISTENER:
Container@MUTE_INDICATOR:
Logic: MuteIndicatorLogic
X: WINDOW_RIGHT - WIDTH - 260
Y: 5
Width: 200
Height: 25
Children:
Image@ICON:
X: PARENT_RIGHT - WIDTH
Y: 1
Width: 24
Height: 24
ImageCollection: sidebar-bits
ImageName: indicator-muted
Label@LABEL:
Width: PARENT_RIGHT - 30
Height: 25
Align: Right
Text: Audio Muted
Contrast: true
MenuButton@OPTIONS_BUTTON:
X: 5
Y: 5

View File

@@ -264,6 +264,26 @@ Container@PLAYER_WIDGETS:
Y: 5
ImageCollection: stance-icons
ImageName: hold-fire
Container@MUTE_INDICATOR:
Logic: MuteIndicatorLogic
X: WINDOW_RIGHT - WIDTH - 245
Y: 5
Width: 200
Height: 25
Children:
Image@ICON:
X: PARENT_RIGHT - WIDTH
Y: 1
Width: 24
Height: 24
ImageCollection: sidebar-bits
ImageName: indicator-muted
Label@LABEL:
Width: PARENT_RIGHT - 30
Height: 25
Align: Right
Text: Audio Muted
Contrast: true
Image@SIDEBAR_BACKGROUND_TOP:
Logic: AddFactionSuffixLogic
X: WINDOW_RIGHT - 235