Skip to content

Commit

Permalink
settings: Add options for closecaption and cc_subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
JJL772 committed Feb 2, 2025
1 parent f7d5700 commit 047de27
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion layout/pages/settings/audio.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

<BaseAudioSettings id="SettingsPageContainer" class="settings-page__container">

<!-- Volume settings sub section -->

<Panel id="VolumeSubSection" class="settings-group">

<Panel class="settings-group__header">
Expand Down Expand Up @@ -120,7 +122,35 @@

</Panel>

<Panel class="settings-page__spacer" />
<!-- Closed Captions Section -->

<Panel id="AudioClosedCaptionsSubSection" class="settings-group">

<Panel class="settings-group__header">

<Label class="settings-group__title" text="#Settings_ClosedCaptions_Title" tags="audio,sound,closedcaptions" />

<TooltipPanel class="settings-group__reset" tooltip="#Settings_General_Reset">
<Button class="button" onactivate="SettingsShared.resetSettings('AudioClosedCaptionsSubSection');">
<Image class="button__icon" src="file://{images}/reset.svg" />
</Button>
</TooltipPanel>

</Panel>

<SettingsEnum text="#Settings_ClosedCaptions_Enable" convar="closecaption" hasdocspage="false">
<RadioButton group="closedcaptions" text="#Common_Off" value="0" />
<RadioButton group="closedcaptions" text="#Common_On" value="1" />
</SettingsEnum>

<SettingsEnum text="#Settings_ClosedCaptions_Subtitles" convar="cc_subtitles" hasdocspage="false">
<RadioButton group="cc_subtitles" text="#Common_Off" value="0" />
<RadioButton group="cc_subtitles" text="#Common_On" value="1" />
</SettingsEnum>

</Panel>

<!-- Audio Devices Section -->

<Panel id="AudioDevicesSubSection" class="settings-group">

Expand Down

0 comments on commit 047de27

Please sign in to comment.