Change Default GUI Sounds In New Skin
#1
I am working on a Mario Galaxy theme for Kodi 18 (Aeon-Nox Sylvo type). I have the skin working fine. I also created some gui sounds to go with it and made them as a separate add-on. I have it all working, I even have the skin downloading the gui sounds as a dependency, but I can't figure out how to have them used as the default gui sounds when the skin is installed.

Any help would be much appreciated.
Kodi v20.1 with goodies from the PSMC Collection / Using on PC's, Nvidea Shields, and other Android TV Boxes
Reply
#2
Use my helper script.

Code:

<onload condition="!Skin.HasSetting(setdefaultsound)">RunScript(script.embuary.helper,action=setkodisetting,setting=lookandfeel.soundskin,value=resource.uisounds.MYUISOUNDS)</onload>
<onload condition="!Skin.HasSetting(setdefaultsound)">Skin.ToggleSetting(setdefaultsound)</onload>

Edit:
But be aware. UI sounds is a global setting. You should never toggle global settings without letting the user know or asking him. So a yes/no dialog is the correct way to go.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#3
(2019-06-20, 15:34)sualfred Wrote: Use my helper script.

Code:

<onload condition="!Skin.HasSetting(setdefaultsound)">RunScript(script.embuary.helper,action=setkodisetting,setting=lookandfeel.soundskin,value=resource.uisounds.MYUISOUNDS)</onload>
<onload condition="!Skin.HasSetting(setdefaultsound)">Skin.ToggleSetting(setdefaultsound)</onload>

Edit:
But be aware. UI sounds is a global setting. You should never toggle global settings without letting the user know or asking him. So a yes/no dialog is the correct way to go.

Thank you, and thank you for the warning, I actually put it in the changelog to enable the sounds if they wished to use them.
Kodi v20.1 with goodies from the PSMC Collection / Using on PC's, Nvidea Shields, and other Android TV Boxes
Reply

Logout Mark Read Team Forum Stats Members Help
Change Default GUI Sounds In New Skin0