2018-11-18, 01:26
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:
With this:
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.
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.