Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Suggestion of new views to Amber
#16
(2019-08-25, 01:19)edjalmo Wrote: I found a way!
You guys know easier ways to do that, but that's the only way I found it.
Check here: https://pastebin.com/E1Bj4jM4
Please tell me if I'm doing it wrong.
@edjalmo, it is fine to do it like that, it is just more code. You need to make sure that you are not getting more than one image shown at the same time, ensure your visibility conditions do not overlap.

Regards,

Bart
Reply
#17
(2019-08-25, 01:27)bsoriano Wrote:
(2019-08-25, 01:19)edjalmo Wrote: I found a way!
You guys know easier ways to do that, but that's the only way I found it.
Check here: https://pastebin.com/E1Bj4jM4
Please tell me if I'm doing it wrong.
@edjalmo, it is fine to do it like that, it is just more code. You need to make sure that you are not getting more than one image shown at the same time, ensure your visibility conditions do not overlap.

Regards,

Bart 

Right! For what I could noticed I not overlap conditions yet Smile
One thing I lost making this way was the shadow behind the images that is a feature of Amber. How can I use it?
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply
#18
(2019-08-25, 01:47)edjalmo Wrote:
(2019-08-25, 01:27)bsoriano Wrote:
(2019-08-25, 01:19)edjalmo Wrote: I found a way!
You guys know easier ways to do that, but that's the only way I found it.
Check here: https://pastebin.com/E1Bj4jM4
Please tell me if I'm doing it wrong.
@edjalmo, it is fine to do it like that, it is just more code. You need to make sure that you are not getting more than one image shown at the same time, ensure your visibility conditions do not overlap.

Regards,

Bart   

Right! For what I could noticed I not overlap conditions yet Smile
One thing I lost making this way was the shadow behind the images that is a feature of Amber. How can I use it?  
@edjalmo, this is the code for shadowedimage, I think you can figure it out from there.  Basically, it is the same image, offset by a few pixels, but with a colordiffuse of the shadow color.

xml:

<include name="ShadowedImage">
        <param name="top">0</param>
        <param name="left">0</param>
        <param name="width"/>
        <param name="height"/>
        <param name="shadowoffset">8</param>
        <param name="shadowcolor">HeavyShadow</param>
        <param name="texture">$INFO[ListItem.Icon]</param>
        <param name="aspect">keep</param>
        <param name="align">center</param>
        <param name="aligny">center</param>
        <param name="visibility">true</param>
        <definition>
            <control type="group">
                <top>$PARAM[top]</top>
                <left>$PARAM[left]</left>
                <visible>$PARAM[visibility]</visible>
                <control type="image" description="Icon Shadow">
                    <top>$PARAM[shadowoffset]</top>
                    <left>$PARAM[shadowoffset]</left>
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <texture colordiffuse="$PARAM[shadowcolor]">$PARAM[texture]</texture>
                    <aspectratio align="$PARAM" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
                <control type="image" description="Icon">
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <texture>$PARAM[texture]</texture>
                    <aspectratio align="$PARAM" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
            </control>
        </definition>
    </include>

In fact, you can try using the include in your view, pass it a param "aspect" with the value "keep" for the back folder and all seasons images, and pass it the param "visibility" to match the visibility condition you have for each image type.  For example, for the all seasons, it could be something like this:

xml:

<include content="ShadowedImage">
    <param name="top">10</param>
    <param name="left">185</param>
    <param name="width">410</param>
    <param name="height">231</param>
    <param name="shadowoffset">8</param>
    <param name="texture">DefaultFolder.png</param>
    <param name="scale">keep</param>
    <param name="visibility">[Container.Content(seasons) + String.IsEmpty(ListItem.Season)]</param>
</include>

Hope this helps.

Regards,

Bart
Reply
#19
(2019-08-25, 02:32)bsoriano Wrote:
(2019-08-25, 01:47)edjalmo Wrote:
(2019-08-25, 01:27)bsoriano Wrote: @edjalmo, it is fine to do it like that, it is just more code. You need to make sure that you are not getting more than one image shown at the same time, ensure your visibility conditions do not overlap.

Regards,

Bart   

Right! For what I could noticed I not overlap conditions yet Smile
One thing I lost making this way was the shadow behind the images that is a feature of Amber. How can I use it?     
@edjalmo, this is the code for shadowedimage, I think you can figure it out from there.  Basically, it is the same image, offset by a few pixels, but with a colordiffuse of the shadow color.

xml:

<include name="ShadowedImage">
        <param name="top">0</param>
        <param name="left">0</param>
        <param name="width"/>
        <param name="height"/>
        <param name="shadowoffset">8</param>
        <param name="shadowcolor">HeavyShadow</param>
        <param name="texture">$INFO[ListItem.Icon]</param>
        <param name="aspect">keep</param>
        <param name="align">center</param>
        <param name="aligny">center</param>
        <param name="visibility">true</param>
        <definition>
            <control type="group">
                <top>$PARAM[top]</top>
                <left>$PARAM[left]</left>
                <visible>$PARAM[visibility]</visible>
                <control type="image" description="Icon Shadow">
                    <top>$PARAM[shadowoffset]</top>
                    <left>$PARAM[shadowoffset]</left>
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <texture colordiffuse="$PARAM[shadowcolor]">$PARAM[texture]</texture>
                    <aspectratio align="$PARAM" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
                <control type="image" description="Icon">
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <texture>$PARAM[texture]</texture>
                    <aspectratio align="$PARAM" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
            </control>
        </definition>
    </include>

In fact, you can try using the include in your view, pass it a param "aspect" with the value "keep" for the back folder and all seasons images, and pass it the param "visibility" to match the visibility condition you have for each image type.  For example, for the all seasons, it could be something like this:

xml:

<include content="ShadowedImage">
    <param name="top">10</param>
    <param name="left">185</param>
    <param name="width">410</param>
    <param name="height">231</param>
    <param name="shadowoffset">8</param>
    <param name="texture">DefaultFolder.png</param>
    <param name="scale">keep</param>
    <param name="visibility">[Container.Content(seasons) + String.IsEmpty(ListItem.Season)]</param>
</include>

Hope this helps.

Regards,

Bart   
Thanks!
That's what I was looking for: how use aspectration inside a param Smile
I have an problem here: if I use $PARAM[image] or $VAR[Fanart] as an image, they will show another DefaultFolder.png in background with aspect ration scaled. I think is because in some place $VAR[Fanart] was declared with DefaulFolder together.
What I did to contorn this was creating 4 ShadowedImage with different aspect ration and visibility condition: one for DefaultFolder(without image just aspectration=keep), one for episodes ($INFO[ListItem.Art(thumb)] and aspectration=scale), one for movies/tvshows/season/artist ($INFO[ListItem.Art(fanart)] and aspectration=scale) and one for albums/musicvideos/addon ($INFO[ListItem.Art(thumb)] and aspectration=keep).

The last thing here (I hope): how can I use animations inside param? I'm thinking in use something like this 
xml:
<animation effect="zoom" end="110" center="auto" time="200">Focus</animation>

Current code: https://pastebin.com/aT4iKQEp
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply
#20
(2019-08-25, 19:15)edjalmo Wrote:
(2019-08-25, 02:32)bsoriano Wrote:
(2019-08-25, 01:47)edjalmo Wrote: Right! For what I could noticed I not overlap conditions yet Smile
One thing I lost making this way was the shadow behind the images that is a feature of Amber. How can I use it?     
@edjalmo, this is the code for shadowedimage, I think you can figure it out from there.  Basically, it is the same image, offset by a few pixels, but with a colordiffuse of the shadow color.

xml:

<include name="ShadowedImage">
        <param name="top">0</param>
        <param name="left">0</param>
        <param name="width"/>
        <param name="height"/>
        <param name="shadowoffset">8</param>
        <param name="shadowcolor">HeavyShadow</param>
        <param name="texture">$INFO[ListItem.Icon]</param>
        <param name="aspect">keep</param>
        <param name="align">center</param>
        <param name="aligny">center</param>
        <param name="visibility">true</param>
        <definition>
            <control type="group">
                <top>$PARAM[top]</top>
                <left>$PARAM[left]</left>
                <visible>$PARAM[visibility]</visible>
                <control type="image" description="Icon Shadow">
                    <top>$PARAM[shadowoffset]</top>
                    <left>$PARAM[shadowoffset]</left>
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <texture colordiffuse="$PARAM[shadowcolor]">$PARAM[texture]</texture>
                    <aspectratio align="$PARAM" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
                <control type="image" description="Icon">
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <texture>$PARAM[texture]</texture>
                    <aspectratio align="$PARAM" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
            </control>
        </definition>
    </include>

In fact, you can try using the include in your view, pass it a param "aspect" with the value "keep" for the back folder and all seasons images, and pass it the param "visibility" to match the visibility condition you have for each image type.  For example, for the all seasons, it could be something like this:

xml:

<include content="ShadowedImage">
    <param name="top">10</param>
    <param name="left">185</param>
    <param name="width">410</param>
    <param name="height">231</param>
    <param name="shadowoffset">8</param>
    <param name="texture">DefaultFolder.png</param>
    <param name="scale">keep</param>
    <param name="visibility">[Container.Content(seasons) + String.IsEmpty(ListItem.Season)]</param>
</include>

Hope this helps.

Regards,

Bart    
Thanks!
That's what I was looking for: how use aspectration inside a param Smile
I have an problem here: if I use $PARAM[image] or $VAR[Fanart] as an image, they will show another DefaultFolder.png in background with aspect ration scaled. I think is because in some place $VAR[Fanart] was declared with DefaulFolder together.
What I did to contorn this was creating 4 ShadowedImage with different aspect ration and visibility condition: one for DefaultFolder(without image just aspectration=keep), one for episodes ($INFO[ListItem.Art(thumb)] and aspectration=scale), one for movies/tvshows/season/artist ($INFO[ListItem.Art(fanart)] and aspectration=scale) and one for albums/musicvideos/addon ($INFO[ListItem.Art(thumb)] and aspectration=keep).

The last thing here (I hope): how can I use animations inside param? I'm thinking in use something like this 
xml:
<animation effect="zoom" end="110" center="auto" time="200">Focus</animation>

Current code: https://pastebin.com/aT4iKQEp 
@edjalmo , the first issue you mention is because one of the itemlayouts/focusedlayouts for BigList chooses $VAR[Square] as the image, and that has DefaultFolder.png as one of its values, if ListItem.IsParentFolder.  Change that itemlayout/focusedlayout (it is around line 295 of your code).

As for animations as PARAMs, you can use them, they just need to be <include>s.  Please take a look at this code from Arctic Zephyr 2 to understand what I am talking about:

xml:

<include name="View_Group">
        <param name="infohide" default="true" />
        <param name="animation" default="Animation_Common" />
        <param name="bottom" default="view_bottom" />
        <definition>
            <include content="View_Pad">
                <param name="bottom" value="$PARAM[bottom]" />
            </include>
            <include>$PARAM[animation]</include>
            <include condition="$PARAM[infohide]">Defs_InfoDialog_Visible</include>
        </definition>
    </include>

And the Animation_Common is another include defined thus:

xml:

<include name="Animation_Common">
        <animation type="WindowOpen" reversible="false"  condition="!Window.Previous(SettingsCategory.xml) + !Window.Previous(SettingsSystemInfo.xml) + !Window.Previous(SkinSettings.xml) + !Window.Previous(SettingsProfile.xml) + !Window.Previous(eventlog)">
            <effect type="fade" start="0" end="100" time="300" tween="sine" easing="in" />
            <effect type="zoom" start="50" end="100" time="300" center="auto" tween="quadratic" easing="out" />
        </animation>
        <animation type="WindowClose" reversible="false" condition="!Window.Next(SettingsCategory.xml) + !Window.Next(SettingsSystemInfo.xml) + !Window.Next(SkinSettings.xml) + !Window.Next(SettingsProfile.xml) + !Window.Next(eventlog)">
            <effect type="fade" end="0" start="100" time="200" tween="sine" easing="out" />
            <effect type="zoom" end="75" start="100" time="200" center="auto" tween="quadratic" easing="in" />
        </animation>
        
        <animation type="Visible" reversible="false">
            <effect type="fade" start="0" end="100" time="300" delay="300" tween="sine" easing="in" />
            <effect type="zoom" start="115" end="100" time="300" delay="300" center="auto" tween="sine" easing="out" />
        </animation>

        <animation type="Hidden" reversible="false" condition="[![!Window.IsVisible(script-script.extendedinfo-VideoList.xml) + !Window.IsVisible(script-globalsearch-main.xml) + !Window.IsVisible(script-globalsearch-infodialog.xml) + !Window.IsVisible(DialogAddonInfo.xml) + !Window.IsVisible(DialogPVRInfo.xml) + !Window.IsVisible(DialogPVRGuideInfo.xml) + !Window.IsVisible(DialogMusicInfo.xml) + !Window.IsVisible(DialogVideoInfo.xml) + !Window.IsVisible(script-script.extendedinfo-DialogInfo.xml) + !Window.IsVisible(script-script.extendedinfo-DialogVideoInfo.xml)]]">
            <effect type="zoom" start="100" end="85" center="auto" tween="sine" delay="0" easing="out" time="300" />
            <effect type="fade" start="100" end="0" tween="cubic" easing="out" delay="0" time="300" />
        </animation>
    </include>

You can create an <include> with whatever name you want for your animation, and then pass that as a PARAM to another include, like the example shows.

Regards,

Bart
Reply
#21
(2019-08-26, 17:30)bsoriano Wrote: @edjalmo , the first issue you mention is because one of the itemlayouts/focusedlayouts for BigList chooses $VAR[Square] as the image, and that has DefaultFolder.png as one of its values, if ListItem.IsParentFolder.  Change that itemlayout/focusedlayout (it is around line 295 of your code).

I removed it but still showing another DefaultFolder.png in background.
 
(2019-08-26, 17:30)bsoriano Wrote: As for animations as PARAMs, you can use them, they just need to be <include>s.  Please take a look at this code from Arctic Zephyr 2 to understand what I am talking about:

I need to put this include in Includes.xml, right?
I put it there this way:
xml:
<include name="Animation_Zoom">
        <animation effect="zoom" end="210" center="auto" time="200">Focus</animation>
</include>
And put <param name="Animation_Zoom"/> inside <include name="52_layout"> at the beginer of View_52_BigList.xml

And use it this way:
xml:
<include content="ShadowedImage">
        <param name="visibility">$PARAM[isfocused] + Container.Content(episodes)</param>
        <param name="top">10</param>
        <param name="left">172</param>
        <param name="width">430</param>
        <param name="height">232</param>
        <param name="shadowoffset">5</param>
        <param name="texture">$INFO[ListItem.Art(thumb)]</param>
        <param name="align">center</param>
        <param name="aspect">scale</param>
        <param name="Animation_Zoom"></param>
</include>

But they show nothing. What I did wrong?
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply
#22
(2019-08-26, 18:33)edjalmo Wrote:
(2019-08-26, 17:30)bsoriano Wrote: @edjalmo , the first issue you mention is because one of the itemlayouts/focusedlayouts for BigList chooses $VAR[Square] as the image, and that has DefaultFolder.png as one of its values, if ListItem.IsParentFolder.  Change that itemlayout/focusedlayout (it is around line 295 of your code).

I removed it but still showing another DefaultFolder.png in background.
 
(2019-08-26, 17:30)bsoriano Wrote: As for animations as PARAMs, you can use them, they just need to be <include>s.  Please take a look at this code from Arctic Zephyr 2 to understand what I am talking about:

I need to put this include in Includes.xml, right?
I put it there this way:
xml:
<include name="Animation_Zoom">
        <animation effect="zoom" end="210" center="auto" time="200">Focus</animation>
</include>
And put <param name="Animation_Zoom"/> inside <include name="52_layout"> at the beginer of View_52_BigList.xml

And use it this way:
xml:
<include content="ShadowedImage">
        <param name="visibility">$PARAM[isfocused] + Container.Content(episodes)</param>
        <param name="top">10</param>
        <param name="left">172</param>
        <param name="width">430</param>
        <param name="height">232</param>
        <param name="shadowoffset">5</param>
        <param name="texture">$INFO[ListItem.Art(thumb)]</param>
        <param name="align">center</param>
        <param name="aspect">scale</param>
        <param name="Animation_Zoom"></param>
</include>

But they show nothing. What I did wrong?  
@edjalmo , you would need to go to Includes.xml, and modify "ShadowedImage" to look like this:

xml:

<include name="ShadowedImage">
        <param name="top">0</param>
        <param name="left">0</param>
        <param name="width"/>
        <param name="height"/>
        <param name="shadowoffset">8</param>
        <param name="shadowcolor">HeavyShadow</param>
        <param name="texture">$INFO[ListItem.Icon]</param>
        <param name="aspect">keep</param>
        <param name="align">center</param>
        <param name="aligny">center</param>
        <param name="visibility">true</param>
        <param name="animation" />
        <definition>
            <control type="group">
                <top>$PARAM[top]</top>
                <left>$PARAM[left]</left>
                <visible>$PARAM[visibility]</visible>
                <include>$PARAM[animation]</include>
                <control type="image" description="Icon Shadow">
                    <top>$PARAM[shadowoffset]</top>
                    <left>$PARAM[shadowoffset]</left>
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <texture colordiffuse="$PARAM[shadowcolor]">$PARAM[texture]</texture>
                    <aspectratio align="$PARAM" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
                <control type="image" description="Icon">
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <texture>$PARAM[texture]</texture>
                    <aspectratio align="$PARAM" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
            </control>
        </definition>
    </include>

And then in your code call it like this:

xml:

<include content="ShadowedImage">
        <param name="visibility">$PARAM[isfocused] + Container.Content(episodes)</param>
        <param name="top">10</param>
        <param name="left">172</param>
        <param name="width">430</param>
        <param name="height">232</param>
        <param name="shadowoffset">5</param>
        <param name="texture">$INFO[ListItem.Art(thumb)]</param>
        <param name="align">center</param>
        <param name="aspect">scale</param>
        <param name="animation">Animation_Zoom</param>
</include>

Hope this makes sense.

Regards,

Bart
Reply
#23
@bsoriano thanks!
Worked, however when I use this way I could not center the zoom. 
I wish did something like this: https://pastebin.com/JZeyiUzd
I could noticed too a glitch when scrolling fast by itens (if I enabler this animations). The glitch is we can saw the yellow selection like a shadow in itens not focuded (this glitch happend too if it is not inside ShadowedImage).

I test visibility conditions and could just noticed one. It happened in tv show specials. I was moving it to see if there's something in background, and in tv show's specials had. Check:
Image

How can I solve this?
The code, so far: https://pastebin.com/RXLtAMBV
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply
#24
(2019-08-26, 19:49)edjalmo Wrote: @bsoriano thanks!
Worked, however when I use this way I could not center the zoom. 
I wish did something like this: https://pastebin.com/JZeyiUzd
I could noticed too a glitch when scrolling fast by itens (if I enabler this animations). The glitch is we can saw the yellow selection like a shadow in itens not focuded (this glitch happend too if it is not inside ShadowedImage).

I test visibility conditions and could just noticed one. It happened in tv show specials. I was moving it to see if there's something in background, and in tv show's specials had. Check:
Image

How can I solve this?
The code, so far: https://pastebin.com/RXLtAMBV
@edjalmo , i am sorry I will not be able to help you with the animation part, that is something I don't know much about.  As for the images, the issue I see without testing out your code is that itemlayout/focusedlayouts always go in pairs.  That is, for every itemlayout condition=xxxx, you need a focusedlayout condition=xxxx.  I see that you have focusedlayouts without itemlayouts and vice versa.  If in the layout definition (52_layout) you are considering all possibilities (all possible images, all possible labels, all possible widths, etc.), then you can just have one <itemlayout> and one <focusedlayout> without any conditions.

Regards,

Bart
Reply
#25
(2019-08-26, 22:35)bsoriano Wrote: @edjalmo , i am sorry I will not be able to help you with the animation part, that is something I don't know much about.  As for the images, the issue I see without testing out your code is that itemlayout/focusedlayouts always go in pairs.  That is, for every itemlayout condition=xxxx, you need a focusedlayout condition=xxxx.  I see that you have focusedlayouts without itemlayouts and vice versa.  If in the layout definition (52_layout) you are considering all possibilities (all possible images, all possible labels, all possible widths, etc.), then you can just have one <itemlayout> and one <focusedlayout> without any conditions.
Right! 
I don't know if I got it!
I deleted the others itemlayout and focusedlayout and kept just one, without conditions (since I made it in ShadowedImages).
They are this way, but still showing this tv show's special in poster aspect.

xml:
<itemlayout height="252" width="1860">
          <include content="52_layout">
            <param name="left">185</param>
            <param name="width">1650</param>
            <param name="imgwidth">160</param>
            <param name="isfocused">false</param>
          </include>
        </itemlayout>
        <focusedlayout height="252" width="1860">
          <include content="52_layout">
            <param name="left">185</param>
            <param name="width">1650</param>
            <param name="imgwidth">160</param>
            <param name="isfocused">true</param>
          </include>
        </focusedlayout>
      </control>
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply
#26
(2019-08-26, 23:33)edjalmo Wrote:
(2019-08-26, 22:35)bsoriano Wrote: @edjalmo , i am sorry I will not be able to help you with the animation part, that is something I don't know much about.  As for the images, the issue I see without testing out your code is that itemlayout/focusedlayouts always go in pairs.  That is, for every itemlayout condition=xxxx, you need a focusedlayout condition=xxxx.  I see that you have focusedlayouts without itemlayouts and vice versa.  If in the layout definition (52_layout) you are considering all possibilities (all possible images, all possible labels, all possible widths, etc.), then you can just have one <itemlayout> and one <focusedlayout> without any conditions.
Right! 
I don't know if I got it!
I deleted the others itemlayout and focusedlayout and kept just one, without conditions (since I made it in ShadowedImages).
They are this way, but still showing this tv show's special in poster aspect.

xml:
<itemlayout height="252" width="1860">
          <include content="52_layout">
            <param name="left">185</param>
            <param name="width">1650</param>
            <param name="imgwidth">160</param>
            <param name="isfocused">false</param>
          </include>
        </itemlayout>
        <focusedlayout height="252" width="1860">
          <include content="52_layout">
            <param name="left">185</param>
            <param name="width">1650</param>
            <param name="imgwidth">160</param>
            <param name="isfocused">true</param>
          </include>
        </focusedlayout>
      </control>
 
@edjalmo , I just noticed (I don't know if you changed this already) that your first ShadowedImage include does not have a "texture" param, so it is using the default, which is ListItem.Icon.  That might be the issue.

Regards,

Bart
Reply
#27
(2019-08-27, 00:20)bsoriano Wrote: @edjalmo , I just noticed (I don't know if you changed this already) that your first ShadowedImage include does not have a "texture" param, so it is using the default, which is ListItem.Icon.  That might be the issue.

Thanks! I could verify that this is the that is this the issue. However I don't know what visibility conditions put to DefaultFolderBack.png and what put to DefaultFolder.png, so that they do not conflict with each other and with the specials.

I tried <param name="visibility">Container.Content(seasons) + String.IsEmpty(ListItem.Season)</param> for DefaultFolder.png and <param name="visibility">ListItem.IsParentFolder</param> for DefaultFolderBack.png, but this way DefaultFolder.png shows in specials and in behind DefaultFolderBack.png
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply
#28
(2019-08-27, 01:06)edjalmo Wrote:
(2019-08-27, 00:20)bsoriano Wrote: @edjalmo , I just noticed (I don't know if you changed this already) that your first ShadowedImage include does not have a "texture" param, so it is using the default, which is ListItem.Icon.  That might be the issue.

Thanks! I could verify that this is the that is this the issue. However I don't know what visibility conditions put to DefaultFolderBack.png and what put to DefaultFolder.png, so that they do not conflict with each other and with the specials.

I tried <param name="visibility">Container.Content(seasons) + String.IsEmpty(ListItem.Season)</param> for DefaultFolder.png and <param name="visibility">ListItem.IsParentFolder</param> for DefaultFolderBack.png, but this way DefaultFolder.png shows in specials and in behind DefaultFolderBack.png 
@edjalmo, could you please tell me the exact scenarios you have and what image you want to appear for each one? That way I can provide you with my idea of what each visibility condition should be.  Also, do your specials have a season number?

Regards,

Bart
Reply
#29
(2019-08-27, 22:56)bsoriano Wrote: @edjalmo, could you please tell me the exact scenarios you have and what image you want to appear for each one? That way I can provide you with my idea of what each visibility condition should be.  Also, do your specials have a season number?
Thanks!
I want to:
  • Show DefaultFolder.png and DefaultFolderBack.png when necessary with keep aspect ration;
  • Show $INFO[ListItem.Art(thumb)] for episodes with scale aspect ration;
  • Show $INFO[ListItem.Art(fanart)] for movie, tv show, seasons and artists with scale aspect ratio (I think here aspect ration can be keep);
  • Show $INFO[ListItem.Art(thumb)] for addons, albums and music videos with aspect ratio keep.
The special just show the label "Specials" without number.
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply
#30
(2019-08-28, 02:10)edjalmo Wrote:
(2019-08-27, 22:56)bsoriano Wrote: @edjalmo, could you please tell me the exact scenarios you have and what image you want to appear for each one? That way I can provide you with my idea of what each visibility condition should be.  Also, do your specials have a season number?
Thanks!
I want to:
  • Show DefaultFolder.png and DefaultFolderBack.png when necessary with keep aspect ration;
  • Show $INFO[ListItem.Art(thumb)] for episodes with scale aspect ration;
  • Show $INFO[ListItem.Art(fanart)] for movie, tv show, seasons and artists with scale aspect ratio (I think here aspect ration can be keep);
  • Show $INFO[ListItem.Art(thumb)] for addons, albums and music videos with aspect ratio keep.
The special just show the label "Specials" without number.

I apologize I was not specific enough in my question. Do your specials have a season number in your tv folder structure? For example, in my tv show folders, the specials are in a Season 0 folder, and they are named <tv show> - 0x<episode number> - <episode name>. If you still don’t get what I am asking, please provide a screenshot of the folder structure for one of your tv shows that has specials, including showing at least one specials episode.

Also, when do you want defaultfolder.png to show?

Regards,

Bart
Reply

Logout Mark Read Team Forum Stats Members Help
Suggestion of new views to Amber0