2022-03-13, 16:30
the widgets item limit - now most peeps just change 100 to whatever, but it is ever so simple to proper incorporate it into the settings
find in SkinSettings.xml the setting for the widget item limit (ive added 2 extra, 250 & 500)
<control type="button" id="151">
<width>1125</width>
<height>60</height>
<font>font13</font>
<label>$LOCALIZE[31982]</label>
<label2>$VAR[CustomWidgetsValue]</label2>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<include>MenuButton</include>
<onclick condition="String.IsEmpty(Skin.String(CustomWidgets))">Skin.SetString(CustomWidgets,20)</onclick>
<onclick condition="Skin.String(CustomWidgets,20)">Skin.SetString(CustomWidgets,30)</onclick>
<onclick condition="Skin.String(CustomWidgets,30)">Skin.SetString(CustomWidgets,40)</onclick>
<onclick condition="Skin.String(CustomWidgets,40)">Skin.SetString(CustomWidgets,50)</onclick>
<onclick condition="Skin.String(CustomWidgets,50)">Skin.SetString(CustomWidgets,75)</onclick>
<onclick condition="Skin.String(CustomWidgets,75)">Skin.SetString(CustomWidgets,100)</onclick>
<onclick condition="Skin.String(CustomWidgets,100)">Skin.SetString(CustomWidgets,250)</onclick>
<onclick condition="Skin.String(CustomWidgets,250)">Skin.SetString(CustomWidgets,500)</onclick>
<onclick condition="Skin.String(CustomWidgets,500)">Skin.Reset(CustomWidgets)</onclick>
</control>
open IncludesHomeWidget.xml
you need to add to a few blocks
<include name="UPnP_RecentMovies">
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + String.IsEmpty(Skin.String(CustomWidgets))">UPnP_RecentMovies10</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,20)">UPnP_RecentMovies20</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,30)">UPnP_RecentMovies30</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,40)">UPnP_RecentMovies40</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,50)">UPnP_RecentMovies50</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,75)">UPnP_RecentMovies75</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,100)">UPnP_RecentMovies100</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,250)">UPnP_RecentMovies250</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,500)">UPnP_RecentMovies500</include>
</include>
<include name="UPnP_RecentMovies10">
<content target="video" limit="10">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies20">
<content target="video" limit="20">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies30">
<content target="video" limit="30">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies40">
<content target="video" limit="40">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies50">
<content target="video" limit="50">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies75">
<content target="video" limit="75">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies100">
<content target="video" limit="100">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies250">
<content target="video" limit="250">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies500">
<content target="video" limit="500">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="VideoNodeContent">
<include condition="String.IsEmpty(Skin.String(CustomWidgets))">VideoNodeContent10</include>
<include condition="Skin.String(CustomWidgets,20)">VideoNodeContent20</include>
<include condition="Skin.String(CustomWidgets,30)">VideoNodeContent30</include>
<include condition="Skin.String(CustomWidgets,40)">VideoNodeContent40</include>
<include condition="Skin.String(CustomWidgets,50)">VideoNodeContent50</include>
<include condition="Skin.String(CustomWidgets,75)">VideoNodeContent75</include>
<include condition="Skin.String(CustomWidgets,100)">VideoNodeContent100</include>
<include condition="Skin.String(CustomWidgets,250)">VideoNodeContent250</include>
<include condition="Skin.String(CustomWidgets,500)">VideoNodeContent500</include>
</include>
<include name="VideoNodeContent10">
<content target="video" limit="10">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent20">
<content target="video" limit="20">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent30">
<content target="video" limit="30">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent40">
<content target="video" limit="40">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent50">
<content target="video" limit="50">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent75">
<content target="video" limit="75">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent100">
<content target="video" limit="100">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent250">
<content target="video" limit="250">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent500">
<content target="video" limit="500">$VAR[VideoNodeContent]</content>
</include>
<include name="CustomWidgetContent">
<include condition="String.IsEmpty(Skin.String(CustomWidgets))">CustomWidgetContent10</include>
<include condition="Skin.String(CustomWidgets,20)">CustomWidgetContent20</include>
<include condition="Skin.String(CustomWidgets,30)">CustomWidgetContent30</include>
<include condition="Skin.String(CustomWidgets,40)">CustomWidgetContent40</include>
<include condition="Skin.String(CustomWidgets,50)">CustomWidgetContent50</include>
<include condition="Skin.String(CustomWidgets,75)">CustomWidgetContent75</include>
<include condition="Skin.String(CustomWidgets,100)">CustomWidgetContent100</include>
<include condition="Skin.String(CustomWidgets,250)">CustomWidgetContent250</include>
<include condition="Skin.String(CustomWidgets,500)">CustomWidgetContent500</include>
</include>
<include name="CustomWidgetContent10">
<content target="videos" limit="10">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent20">
<content target="videos" limit="20">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent30">
<content target="videos" limit="30">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent40">
<content target="videos" limit="40">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent50">
<content target="videos" limit="50">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent75">
<content target="videos" limit="75">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent100">
<content target="videos" limit="100">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent250">
<content target="videos" limit="250">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent500">
<content target="videos" limit="500">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
</includes>
save all
now when you go into the skin settings there will be 2 extra options for the widget item limit.
find in SkinSettings.xml the setting for the widget item limit (ive added 2 extra, 250 & 500)
<control type="button" id="151">
<width>1125</width>
<height>60</height>
<font>font13</font>
<label>$LOCALIZE[31982]</label>
<label2>$VAR[CustomWidgetsValue]</label2>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<include>MenuButton</include>
<onclick condition="String.IsEmpty(Skin.String(CustomWidgets))">Skin.SetString(CustomWidgets,20)</onclick>
<onclick condition="Skin.String(CustomWidgets,20)">Skin.SetString(CustomWidgets,30)</onclick>
<onclick condition="Skin.String(CustomWidgets,30)">Skin.SetString(CustomWidgets,40)</onclick>
<onclick condition="Skin.String(CustomWidgets,40)">Skin.SetString(CustomWidgets,50)</onclick>
<onclick condition="Skin.String(CustomWidgets,50)">Skin.SetString(CustomWidgets,75)</onclick>
<onclick condition="Skin.String(CustomWidgets,75)">Skin.SetString(CustomWidgets,100)</onclick>
<onclick condition="Skin.String(CustomWidgets,100)">Skin.SetString(CustomWidgets,250)</onclick>
<onclick condition="Skin.String(CustomWidgets,250)">Skin.SetString(CustomWidgets,500)</onclick>
<onclick condition="Skin.String(CustomWidgets,500)">Skin.Reset(CustomWidgets)</onclick>
</control>
open IncludesHomeWidget.xml
you need to add to a few blocks
<include name="UPnP_RecentMovies">
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + String.IsEmpty(Skin.String(CustomWidgets))">UPnP_RecentMovies10</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,20)">UPnP_RecentMovies20</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,30)">UPnP_RecentMovies30</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,40)">UPnP_RecentMovies40</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,50)">UPnP_RecentMovies50</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,75)">UPnP_RecentMovies75</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,100)">UPnP_RecentMovies100</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,250)">UPnP_RecentMovies250</include>
<include condition="Skin.HasSetting(UPnP_Mode) + Skin.String(UPnPServer,Kodi) + Skin.String(CustomWidgets,500)">UPnP_RecentMovies500</include>
</include>
<include name="UPnP_RecentMovies10">
<content target="video" limit="10">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies20">
<content target="video" limit="20">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies30">
<content target="video" limit="30">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies40">
<content target="video" limit="40">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies50">
<content target="video" limit="50">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies75">
<content target="video" limit="75">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies100">
<content target="video" limit="100">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies250">
<content target="video" limit="250">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="UPnP_RecentMovies500">
<content target="video" limit="500">$INFO[Skin.String(UPnP_Path)]library%3a%2f%2fvideo%2frecentlyaddedmovies.xml%2f/</content>
</include>
<include name="VideoNodeContent">
<include condition="String.IsEmpty(Skin.String(CustomWidgets))">VideoNodeContent10</include>
<include condition="Skin.String(CustomWidgets,20)">VideoNodeContent20</include>
<include condition="Skin.String(CustomWidgets,30)">VideoNodeContent30</include>
<include condition="Skin.String(CustomWidgets,40)">VideoNodeContent40</include>
<include condition="Skin.String(CustomWidgets,50)">VideoNodeContent50</include>
<include condition="Skin.String(CustomWidgets,75)">VideoNodeContent75</include>
<include condition="Skin.String(CustomWidgets,100)">VideoNodeContent100</include>
<include condition="Skin.String(CustomWidgets,250)">VideoNodeContent250</include>
<include condition="Skin.String(CustomWidgets,500)">VideoNodeContent500</include>
</include>
<include name="VideoNodeContent10">
<content target="video" limit="10">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent20">
<content target="video" limit="20">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent30">
<content target="video" limit="30">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent40">
<content target="video" limit="40">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent50">
<content target="video" limit="50">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent75">
<content target="video" limit="75">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent100">
<content target="video" limit="100">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent250">
<content target="video" limit="250">$VAR[VideoNodeContent]</content>
</include>
<include name="VideoNodeContent500">
<content target="video" limit="500">$VAR[VideoNodeContent]</content>
</include>
<include name="CustomWidgetContent">
<include condition="String.IsEmpty(Skin.String(CustomWidgets))">CustomWidgetContent10</include>
<include condition="Skin.String(CustomWidgets,20)">CustomWidgetContent20</include>
<include condition="Skin.String(CustomWidgets,30)">CustomWidgetContent30</include>
<include condition="Skin.String(CustomWidgets,40)">CustomWidgetContent40</include>
<include condition="Skin.String(CustomWidgets,50)">CustomWidgetContent50</include>
<include condition="Skin.String(CustomWidgets,75)">CustomWidgetContent75</include>
<include condition="Skin.String(CustomWidgets,100)">CustomWidgetContent100</include>
<include condition="Skin.String(CustomWidgets,250)">CustomWidgetContent250</include>
<include condition="Skin.String(CustomWidgets,500)">CustomWidgetContent500</include>
</include>
<include name="CustomWidgetContent10">
<content target="videos" limit="10">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent20">
<content target="videos" limit="20">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent30">
<content target="videos" limit="30">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent40">
<content target="videos" limit="40">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent50">
<content target="videos" limit="50">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent75">
<content target="videos" limit="75">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent100">
<content target="videos" limit="100">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent250">
<content target="videos" limit="250">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
<include name="CustomWidgetContent500">
<content target="videos" limit="500">$INFO[Container(9000).ListItem.Property(WidgetSet)]</content>
</include>
</includes>
save all
now when you go into the skin settings there will be 2 extra options for the widget item limit.