2019-04-09, 22:51
Hello all,
As part of the process of migrating the Amber skin to Leia, I am trying to implement having the user choose what main menu option the skin starts in. I am not using script.skinshortcuts for my menu, I have a fixedlist. I was able to achieve this by storing the id of the main menu option the user selects as a skin string, and using
The issue is that by using the always = "true", which works with the id of the element of the list, every time the Home window is loaded the fixedlist positions itself on the element with the dfaultcontrol id, not just when Kodi starts or when the skin is reloaded. If I don't use the always = "true", then I cannot use the id of the element of the list and position it correctly on startup.
I am sorry if I am not explaining myself well. I am also trying not to rewrite the whole menu system to achieve the functionality, as I am just learning to skin.
Any feedback and pointers are completely welcome and will be greatly appreciated!
Regards,
Bart
As part of the process of migrating the Amber skin to Leia, I am trying to implement having the user choose what main menu option the skin starts in. I am not using script.skinshortcuts for my menu, I have a fixedlist. I was able to achieve this by storing the id of the main menu option the user selects as a skin string, and using
in the definition of the fixedlist.xml:<defaultcontrol always="true"></defaultcontrol>
The issue is that by using the always = "true", which works with the id of the element of the list, every time the Home window is loaded the fixedlist positions itself on the element with the dfaultcontrol id, not just when Kodi starts or when the skin is reloaded. If I don't use the always = "true", then I cannot use the id of the element of the list and position it correctly on startup.
I am sorry if I am not explaining myself well. I am also trying not to rewrite the whole menu system to achieve the functionality, as I am just learning to skin.
Any feedback and pointers are completely welcome and will be greatly appreciated!
Regards,
Bart