Kodi Community Forum

Full Version: default button in OSD
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In OSD menu the default highlighted button is pause. It would be nice to make the subtitle button as the default, or make an option to choose one.
That's easy, simply change the default focus.

<onfocus>SetFocus(14)</onfocus>

where "14" is the button ID

<control type="button" id="14">
<description>OSD Subtitles</description>
<include>Animation_ButtonFocus</include>
<height>60</height>
<width>60</width>
<texturefocus>osd/osd_button_sub_fo.png</texturefocus>
<texturenofocus>osd/osd_button_sub_nf.png</texturenofocus>
<onclick>Close</onclick>
<onclick>ShowSubtitles</onclick>
<visible>VideoPlayer.HasSubtitles</visible>
</control>
So I got bored and implemented this in Metropolis, it's in my branch if the author wants it.
Image