Skip to content

Commit

Permalink
Add current audio/subtitle lang to osd
Browse files Browse the repository at this point in the history
Add language identifiers to OSD control.
  • Loading branch information
kcook98765 committed Feb 10, 2022
1 parent 704e2a5 commit c2c9350
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
34 changes: 31 additions & 3 deletions 1080i/Includes_OSD.xml
Original file line number Diff line number Diff line change
Expand Up @@ -498,13 +498,41 @@
<onfocus condition="!String.IsEmpty(Window(Home).Property(OSDExtendedInfo))">ClearProperty(OSDExtendedInfo,Home)</onfocus>
<onfocus>ClearProperty(OSD_Menu,Home)</onfocus>
</control>


<control type="button" id="10018">
<centertop>50%</centertop>
<description>Audio</description>
<width>55</width>
<height>48</height>
<label>$INFO[VideoPlayer.AudioLanguage,[UPPERCASE],[/UPPERCASE]]</label>
<textcolor>main_fg_70</textcolor>
<focusedcolor>Highlight</focusedcolor>
<shadowcolor>Shadow</shadowcolor>
<font>font_fps</font>
<align>right</align>
<aligny>top</aligny>
<textoffsetx>0</textoffsetx>
<texturefocus colordiffuse="$VAR[ColorHighlight]">osd/audio-settings.png</texturefocus>
<texturenofocus colordiffuse="main_fg_70">osd/audio-settings.png</texturenofocus>
<onclick>AudioNextLanguage</onclick>
<visible>Window.IsVisible(videoosd)</visible>
<visible>!VideoPlayer.Content(musicvideos)</visible>
<visible>!String.IsEmpty(VideoPlayer.AudioLanguage)</visible>
</control>


<control type="button" id="18">
<centertop>50%</centertop>
<description>Subs</description>
<width>48</width>
<width>55</width>
<height>48</height>
<label/>
<font/>
<label>$INFO[VideoPlayer.SubtitlesLanguage,[UPPERCASE],[/UPPERCASE]]</label>
<textcolor>main_fg_70</textcolor>
<font>font_fps</font>
<align>right</align>
<aligny>top</aligny>
<textoffsetx>0</textoffsetx>
<texturefocus colordiffuse="$VAR[ColorHighlight]">osd/subs.png</texturefocus>
<texturenofocus colordiffuse="main_fg_70">osd/subs.png</texturenofocus>
<onclick condition="Skin.HasSetting(OSDSubtitleSettings)">ActivateWindow(osdsubtitlesettings)</onclick>
Expand Down
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="skin.aura" name="Aura" provider-name="kcook98765" version="2.0.21">
<addon id="skin.aura" name="Aura" provider-name="kcook98765" version="2.0.22">
<requires>
<import addon="xbmc.gui" version="5.15.0" />
<import addon="script.skinshortcuts" version="0.4.0"/>
Expand Down

0 comments on commit c2c9350

Please sign in to comment.