2017-04-13, 16:24
I found this thread when looking to accomplish exactly the same thing.
I want to add a subtitle offset button on the mimic skin OSD controls and I have figured it out.
The onclick event should be Action(SubtitleDelay).
I edited my VideoOSD.xml and added a new button right next to the OSDSubtitles one.
My button looks like this :
I am using the Teletext (TXT) icon because it already existed and I dont know how to skin Kodi and add new assets to mix.
I want to add a subtitle offset button on the mimic skin OSD controls and I have figured it out.
The onclick event should be Action(SubtitleDelay).
I edited my VideoOSD.xml and added a new button right next to the OSDSubtitles one.
My button looks like this :
Quote:<control type="button" id="707">
<texturefocus>osd/buttons/OSDTeleText.png</texturefocus>
<texturenofocus>osd/buttons/OSDTeleText2.png</texturenofocus>
<label>-</label>
<width>100</width>
<height>64</height>
<font>-</font>
<onclick>Action(SubtitleDelay)</onclick>
<colordiffuse>$VAR[ColorTextVar]</colordiffuse>
</control>
I am using the Teletext (TXT) icon because it already existed and I dont know how to skin Kodi and add new assets to mix.