2024-12-30, 05:30
I'm stuck and I've tried multiple methods and used Github to try to figure out what I'm doing wrong. I took the TMDB recommended method MikeS help get going which works like a champ. i modeled the controls of the old embruary functionality and it is almost entirely working. The example I'm trying to is use TMDB helper to get the images to create the slider for the selected Actor in a gallery similar to the recommended movies script. The logic and operation are working on button hover/select, the labels show up but I can't for the life of me figure out why the panels are not showing up. I've even tried the example on TMDB helper with a direct link but that image never shows up either. The visibility is the same for the labels and the panels, so in theory, they should be visible at the same time. I think I have the parameters right but everything I've tried, no panels, only labels.... not sure what I'm missing.
EDIT: This is all being done in Includes_InfoDialogs.xml
Here is a video of it in action and I'll post the code below. Any ideas? Thx.
http://www.kittmaster.com/imagedump/kodi...sible.html
Logic controller:
Slider control include recommendation uses and used for logic controller:
UPDATE EDIT:
Here is the recommended panel working using the same code which uses the same "content" include (pasted below):
http://kittmaster.com/imagedump/kodi/ski...oller.html
EDIT: This is all being done in Includes_InfoDialogs.xml
Here is a video of it in action and I'll post the code below. Any ideas? Thx.
http://www.kittmaster.com/imagedump/kodi...sible.html
Logic controller:
xml:
<!-- Buttons List -->
<control type="list" id="9000">
<visible>String.IsEqual(ListItem.Property(item.type),person)</visible>
<top>555</top>
<left>-10</left>
<right>25</right>
<height>80</height>
<onup condition="Container(9000).Hasfocus(100001)">SetFocus(20052)</onup>
<onup condition="Container(9000).Hasfocus(100002)">SetFocus(20053)</onup>
<onup condition="Container(9000).Hasfocus(100003)">SetFocus(20054)</onup>
<include>InfoDialogButtons</include>
<content>
<item id="100001">
<description>Movies</description>
<label></label>
<label2>$LOCALIZE[342]</label2>
</item>
<item id="100002">
<description>TV Shows</description>
<label></label>
<label2>$LOCALIZE[20343]</label2>
</item>
<item id="100003">
<description>Images</description>
<label></label>
<label2>$LOCALIZE[1213]</label2>
</item>
</content>
</control>
<control type="group" id="9001"> <!-- Recommendations Rolling Panel & Label -->
<visible>String.IsEqual(ListItem.Property(item.type),person)</visible>
<top>300</top>
<right>25</right>
<control type="label">
<visible>Container(9000).HasFocus(100002)</visible>
<top>400</top>
<height>40</height>
<font>Font30_Reg</font>
<label>$LOCALIZE[32020]:</label>
<textcolor>$VAR[PanelHighlightColorVar]</textcolor>
</control>
<control type="label">
<visible>Container(9000).HasFocus(100003)</visible>
<top>440</top>
<height>40</height>
<font>Font30_Reg</font>
<label>Death would be more merciful than TMDB Helper</label>
<textcolor>$VAR[PanelHighlightColorVar]</textcolor>
</control>
<control type="panel" id="20053">
<include content="DialogExtraInfo">
<param name="visible">Container(9000).HasFocus(100002)</param>
<!-- <param name="art">plugin://plugin.video.themoviedb.helper?info=images&type=person&tmdb_id=$INFO[ListItem.Property(tmdb_id)]</param> -->
<param name="art">plugin://plugin.video.themoviedb.helper?info=images&type=person&tmdb_id=1100</param>
</include>
</control>
<control type="panel" id="20054">
<include content="DialogExtraInfo">
<param name="visible">Container(9000).HasFocus(100003)</param>
<!-- <param name="art">plugin://plugin.video.themoviedb.helper?info=images&type=person&tmdb_id=$INFO[ListItem.Property(tmdb_id)]</param> -->
<param name="art">plugin://plugin.video.themoviedb.helper?info=images&type=person&tmdb_id=1100</param>
</include>
</control>
</control>
<control type="textbox"> <!-- Plot(s) Information -->
<height>130</height>
<top>410</top>
<include>AutoScrollPlot</include>
<label fallback="$INFO[Window.Property(plot)]">$INFO[Container.ListItem.Plot]</label>
</control>
Slider control include recommendation uses and used for logic controller:
xml:
<include name="DialogExtraInfo">
<!-- <param name="PanelID" /> --> <!-- Added CMB -->
<param name="visible"/>
<param name="labelvisible">false</param>
<param name="overlayiconvisible">false</param>
<param name="art">$INFO[ListItem.Thumb]</param>
<param name="art">$INFO[ListItem.icon]</param>
<param name="art">$INFO[ListItem.Poster]</param> <!-- Added CMB -->
<!-- <param name="art">$INFO[ListItem.Thumb]</param> CMB -->
<!-- <param name="art">$INFO[ListItem.icon]</param> CMB -->
<param name="aspect">stretch</param>
<param name="diffuse">diffuse/rounded5-230x345.png</param>
<param name="width">235.8</param>
<param name="height">344</param>
<param name="containerheight">370</param>
<param name="label">$INFO[ListItem.Label]</param>
<param name="label2">$INFO[ListItem.Label2]</param>
<definition>
<animation type="Conditional" condition="$PARAM[visible]">
<effect type="fade" start="50" end="100" time="400"/>
<effect type="slide" start="1920" end="0" time="0"/>
</animation>
<animation type="Conditional" condition="![$PARAM[visible]]">
<effect type="fade" start="100" end="0" time="400"/>
<effect type="slide" start="0" end="1920" time="0"/>
</animation>
<left>-10</left>
<width>1179</width>
<height>$PARAM[containerheight]</height>
<ondown>9000</ondown>
<orientation>horizontal</orientation>
<include>ContainerScrollTime</include>
<itemlayout width="$PARAM[width]" height="$PARAM[height]">
<include content="ViewArtwork">
<param name="art">$PARAM[art]</param>
<param name="aspect">$PARAM[aspect]</param>
<param name="texturefadetime"/>
<param name="diffuse">$PARAM[diffuse]</param>
</include>
<control type="image">
<visible>$PARAM[labelvisible]</visible>
<left>10</left>
<right>10</right>
<bottom>10</bottom>
<height>90</height>
<texture border="5">panels/art-overlay.png</texture>
</control>
<control type="label">
<visible>$PARAM[labelvisible]</visible>
<left>15</left>
<right>15</right>
<bottom>43</bottom>
<height>30</height>
<font>Font25_Cond</font>
<label>$PARAM[label]</label>
<textcolor>$VAR[PanelTextColorVar]</textcolor>
</control>
<control type="label">
<visible>$PARAM[labelvisible]</visible>
<left>15</left>
<right>15</right>
<bottom>14</bottom>
<height>30</height>
<font>Font25_Cond</font>
<label>$PARAM[label2]</label>
<textcolor>$VAR[PanelSubTextColorVar]</textcolor>
</control>
<control type="image">
<visible>$PARAM[overlayiconvisible]</visible>
<top>18</top>
<right>18</right>
<width>45</width>
<height>45</height>
<aspectratio>keep</aspectratio>
<texture colordiffuse="$VAR[PanelHighlightColorVar]">$VAR[VideoInfoOverlayVar]</texture>
</control>
<control type="label">
<visible>$PARAM[overlayiconvisible] + Integer.IsGreater(Container.ListItem.Property(unwatchedepisodes),0)</visible>
<top>20</top>
<right>20</right>
<width>40</width>
<height>40</height>
<align>center</align>
<font>Font20_Cond_Bold</font>
<label>$INFO[Container.ListItem.Property(unwatchedepisodes)]</label>
<textcolor>$VAR[PanelHighlightColorVar]</textcolor>
</control>
</itemlayout>
<focusedlayout width="$PARAM[width]" height="$PARAM[height]">
<control type="image">
<texture border="10" colordiffuse="$VAR[PanelHighlightColorVar]">buttons/panel-select-focus.png</texture>
</control>
<include content="ViewArtwork">
<param name="art">$PARAM[art]</param>
<param name="aspect">$PARAM[aspect]</param>
<param name="texturefadetime"/>
<param name="diffuse">$PARAM[diffuse]</param>
</include>
<control type="image">
<visible>$PARAM[labelvisible]</visible>
<left>10</left>
<right>10</right>
<bottom>10</bottom>
<height>90</height>
<texture border="5">panels/art-overlay.png</texture>
</control>
<control type="label">
<visible>$PARAM[labelvisible]</visible>
<left>15</left>
<right>15</right>
<bottom>43</bottom>
<height>30</height>
<font>Font25_Cond</font>
<label>$PARAM[label]</label>
<textcolor>$VAR[PanelTextColorVar]</textcolor>
</control>
<control type="label">
<visible>$PARAM[labelvisible]</visible>
<left>15</left>
<right>15</right>
<bottom>14</bottom>
<height>30</height>
<font>Font25_Cond</font>
<label>$PARAM[label2]</label>
<textcolor>$VAR[PanelSubTextColorVar]</textcolor>
</control>
<control type="image">
<visible>$PARAM[overlayiconvisible]</visible>
<top>18</top>
<right>18</right>
<width>45</width>
<height>45</height>
<aspectratio>keep</aspectratio>
<texture colordiffuse="$VAR[PanelHighlightColorVar]">$VAR[VideoInfoOverlayVar]</texture>
</control>
<control type="label">
<visible>$PARAM[overlayiconvisible] + Integer.IsGreater(Container.ListItem.Property(unwatchedepisodes),0)</visible>
<top>20</top>
<right>20</right>
<width>40</width>
<height>40</height>
<align>center</align>
<font>Font20_Cond_Bold</font>
<label>$INFO[Container.ListItem.Property(unwatchedepisodes)]</label>
<textcolor>$VAR[PanelHighlightColorVar]</textcolor>
</control>
</focusedlayout>
</definition>
</include>
UPDATE EDIT:
Here is the recommended panel working using the same code which uses the same "content" include (pasted below):
http://kittmaster.com/imagedump/kodi/ski...oller.html
xml:
<control type="group"> <!-- Recommendations Rolling Panel & Label -->
<top>500</top>
<left>733</left>
<right>25</right>
<control type="grouplist" id="6000">
<top>20</top>
<control type="label">
<top>0</top>
<height>40</height>
<font>Font30_Reg</font>
<label>$LOCALIZE[32020]:</label>
<textcolor>$VAR[PanelHighlightColorVar]</textcolor>
</control>
<control type="panel" id="10060">
<include content="DialogExtraInfo">
<param name="art">$INFO[ListItem.Art(poster)]</param>
<param name="visible">String.IsEqual(Window.Property(List_10060_Visible),True)</param>
<param name="aspect">scale</param>
<param name="labelvisible">true</param>
<param name="overlayiconvisible">true</param>
</include>
</control>
</control>
<control type="textbox"> <!-- Plot(s) Information -->
<height>130</height>
<top>410</top>
<include>AutoScrollPlot</include>
<label fallback="$INFO[Window.Property(plot)]">$INFO[Container.ListItem.Plot]</label>
</control>
</control>