2022-08-04, 13:06
Can anyone help me with two things I'm a bit confused about integrating skin shortcuts into my skin please?
1. When it creates a custom select dialog, how do I reference that window in my skin? Window.IsVisible(selectdialog) doesn't work and the window name in debuggin info is shown as the full path (on windows it's C:\Users\QuizKid\AppData\Roaming\Kodi\addons\skin.copacetic\16x9\DialogSelect.xml) rather than a window id or name. I need to change the visibility of the some underling windows when this custom window is displayed
2. Currently, for my homescreen background artwork, I use a list to populate a multiimage. The content path for the list is a variable like so:
Instead of hardcoding these paths and playlistts, I want to give the user the ability to choose their own path or playlist for each item in their menu. I think I need to do this using a customproperty, but I got a bit lost in the documentation: https://github.com/mikesilvo164/script.s...perties.md
Can anyone give me any indication of how to do this?
Thanks!
1. When it creates a custom select dialog, how do I reference that window in my skin? Window.IsVisible(selectdialog) doesn't work and the window name in debuggin info is shown as the full path (on windows it's C:\Users\QuizKid\AppData\Roaming\Kodi\addons\skin.copacetic\16x9\DialogSelect.xml) rather than a window id or name. I need to change the visibility of the some underling windows when this custom window is displayed
2. Currently, for my homescreen background artwork, I use a list to populate a multiimage. The content path for the list is a variable like so:
xml:
<variable name="Slideshow_Path">
<value condition="Skin.HasSetting(Home_Background_Override_Enabled) + Skin.String(Home_Background_Override)">$INFO[Skin.String(Home_Background_Override)]</value>
<value condition="String.Contains(Container(9000).ListItem.Property(path),music)">musicdb://artists/?albumartistsonly=true</value>
<value condition="String.Contains(Container(9000).ListItem.Property(path),tv)">videodb://tvshows/titles/</value>
<value condition="String.Contains(Container(9000).ListItem.Property(path),sets)">library://video/movies/sets.xml</value>
<value condition="String.Contains(Container(9000).ListItem.Property(path),recentlyaddedmovies)">library://video/movies/recentlyaddedmovies.xml</value>
<value condition="String.Contains(Container(9000).ListItem.Property(path),kids)">special://skin/extras/playlists/kids_movies.xsp</value>
<value condition="String.Contains(Container(9000).ListItem.Property(path),4k)">special://skin/extras/playlists/4k_movies.xsp</value>
<value condition="Library.HasContent(Movies)">videodb://movies/titles/</value>
<value condition="Library.HasContent(TVShows)">videodb://tvshows/titles/</value>
<value condition="Library.HasContent(Music)">musicdb://artists/?albumartistsonly=true</value>
</variable>
Instead of hardcoding these paths and playlistts, I want to give the user the ability to choose their own path or playlist for each item in their menu. I think I need to do this using a customproperty, but I got a bit lost in the documentation: https://github.com/mikesilvo164/script.s...perties.md
Can anyone give me any indication of how to do this?
Thanks!