Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1818

Subtitles Active

$
0
0
Is there a way to determine if subtitles are active?

I'm trying to build a simple button on VideoOSD.xml that will simply toggle the subtitles and I want a different image presented if they are enabled vs. when they are not.

Code:
<control type="togglebutton" id="100101">
    <width>70</width>
    <height>41</height>
    <label>31351</label>
    <altlabel>208</altlabel>
    <font/>
    <texturefocus>subtitles/icon_close_caption.png</texturefocus>
    <texturenofocus colordiffuse="99FFFFFF">subtitles/icon_close_caption.png</texturenofocus>
    <usealttexture>Player.SUBTITLESACTIVE</usealttexture>
    <alttexturefocus colordiffuse="FFFF0000">subtitles/icon_close_caption.png</alttexturefocus>
    <alttexturenofocus colordiffuse="99FF0000">subtitles/icon_close_caption.png</alttexturenofocus>
    <onclick>ShowSubtitles</onclick>
</control>

I'm looking for what is needed in the <usealttexture> tag. Also if there is more functionality (ex. when the video has subtitles available) that would be great.

Viewing all articles
Browse latest Browse all 1818

Latest Images

Trending Articles



Latest Images