Kodi Community Forum
Auto-Close OSD (FIX) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Arctic: Zephyr - Reloaded (https://forum.kodi.tv/forumdisplay.php?fid=221)
+---- Thread: Auto-Close OSD (FIX) (/showthread.php?tid=337590)



Auto-Close OSD (FIX) - LloydShow - 2018-11-18

Hi guys,

So I've been making a few small changes to Arctic Zephyr and I've come up with a solution for how to auto-close the OSD.

In SkinSettings.xml replace this:
xml:
<control type="radiobutton" id="9239" description="Open music visualisation">
<width>1310</width>
<visible>ControlGroup(9100).HasFocus(9103)</visible>
<include>DefSettingsButton</include>
<label>Open music visualisation automatically</label>
<selected>Skin.HasSetting(osd.gotofullscreen)</selected>
<onclick>Skin.ToggleSetting(osd.gotofullscreen)</onclick>
</control>

With this:
xml:
<control type="button" id="9239" description="Close OSD Auto">
<width>1310</width>
<visible>ControlGroup(9100).HasFocus(9103)</visible>
<include>DefSettingsButton</include>
<label>Auto Close OSD</label>
<label2>$INFO[Skin.String(SkinHelper.AutoCloseVideoOSD)]</label2>
<onclick condition="!String.IsEmpty(SkinHelper.AutoCloseVideoOSD)">Skin.Reset(SkinHelper.AutoCloseVideoOSD)</onclick>
<onclick condition="String.IsEmpty(SkinHelper.AutoCloseVideoOSD)">Skin.SetNumeric(SkinHelper.AutoCloseVideoOSD)</onclick>
</control>

Now in Settings under Video/Music OSD you will have a setting for Auto Close OSD. When you select it you will have the option to set how many seconds until the OSD auto-closes.

Yes this does replace the function "Open Music Visualisation". I don't use or listen to music on Kodi so this isn't an issue for me. If it is for you choose another function to replace as I can't figure out how to add Auto-Close as a new setting yet.

Make sure script.skin.helper.service is installed.


RE: Auto-Close OSD (FIX) - LloydShow - 2018-11-23

Should add I can't get this to work with Jarvis. Any suggestions?