Include inside param
#1
When having the second code (with Fade_PassProtectOverlay) inside a param include such as:
Code:
<include name="Buttons_Icon" description="Layouts">...
It's simply not working till i do reloadskin()
The icon is completely removed after i change it's setting..

Code:
<control type="image" description="pwd_lock">
            <include>Fade_PassProtectOverlay</include>
            <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
            <aspectratio align="center">keep</aspectratio>
            <texture colordiffuse="$PARAM[color]">special://home/addons/script.featherence.service/resources/icons/Lock.png</texture>
            <visible>!String.IsEmpty(ListItem.Property(pwd)) + String.IsEmpty(Window(home).Property(PassProtect))</visible>
          </control>

Code:
<include name="Fade_PassProtectOverlay">
     <animation condition="!Skin.String(PassProtectOverlay)" effect="fade" end="30" time="0">Conditional</animation>
    
     <animation condition="Skin.String(PassProtectOverlay,10)" effect="fade" end="10" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,20)" effect="fade" end="20" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,30)" effect="fade" end="30" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,40)" effect="fade" end="40" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,50)" effect="fade" end="50" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,60)" effect="fade" end="60" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,65)" effect="fade" end="65" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,70)" effect="fade" end="70" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,80)" effect="fade" end="80" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,85)" effect="fade" end="85" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,90)" effect="fade" end="90" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,95)" effect="fade" end="95" time="0">Conditional</animation>
     <animation condition="Skin.String(PassProtectOverlay,100)" effect="fade" end="100" time="0">Conditional</animation>
   </include>

Before:
Image

After:
Image
Reply
#2
Anyone?
Reply
#3
I don't see where this is include is being used as a $param. I do see u are using a include inside of a include.....
Can u show more of the code with he definitions?

I have had similar issues but normal it is due to the position of the include. Or the condition is being met I. A weird way the it doesn't trigger the way it should..

And another thing is it is a image that your trying to fade I think they are only drawn on window loads type thing you may be better of having just taking that image and creating it the 11 time at the different transparency then just up varaibes to choose the correct image...

Last thing I never tried it have no idea if it works but maybe set the Animation s up as variables. Since that how you are using the now maybe the need the $VAR to true change without reload idk.... I am pretty sure the 11 image var will work thou
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#4
Thank you @smitchell6879!

Here is the full code:

Code:
<include name="Buttons_Icon" description="Layouts">
    <param name="color" default=""/>
    <param name="height" default="0"/>
    <param name="posx" default="0"/>
    <param name="posy" default="0"/>
    <param name="width" default="0"/>
    
    <param name="condition" default="true"/>
    <param name="homeicons" default="true"/>
    <param name="reshape" default="false"/>
    <param name="type0" default="true" description="UnFocus"/>
    <param name="type1" default="false" description="Focus"/>
    <definition>
        <control type="group">
          <height>$PARAM[height]</height>
          <posx>$PARAM[posx]</posx>
          <posy>$PARAM[posy]</posy>
          <width>$PARAM[width]</width>
          <visible>$PARAM[condition]</visible>
          <visible>!String.IsEmpty(ListItem.Thumb)</visible>
          <include condition="$PARAM[type0]">Fade_IconOverlayButton</include>
          <include condition="!Skin.String(MenuDesign) | Skin.String(MenuDesign,0) | Skin.String(MenuDesign,1) | Skin.String(MenuDesign,7) | Skin.String(MenuDesign,2) | Skin.String(MenuDesign,3) | Skin.String(MenuDesign,6)">Slide_MenuDesign_Home_Icons</include>
          <include condition="Skin.String(MenuDesign,4) + $PARAM[homeicons]">Slide_MenuDesign2_Home_Icons</include>
          <include condition="Skin.String(MenuDesign,4) + $PARAM[homeicons]">Slide_MenuDesign2_Home_Icons2</include>
          <!--<animation condition="Skin.String(ButtonsDesign,1) + [ Skin.HasSetting(BigHomeIcons) | ![$PARAM[type0] + $PARAM[type1]] ]" effect="slide" start="0,0" end="0,10">Conditional</animation>-->
          <control type="group">
              <visible>!Skin.HasSetting(ReshapeIcons) + !$PARAM[reshape]</visible>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>!Skin.String(ButtonsDesign)</visible>
              </control>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>Skin.String(ButtonsDesign,0)</visible>
              </control>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>Skin.String(ButtonsDesign,1)</visible>
              </control>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>Skin.String(ButtonsDesign,2)</visible>
              </control>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>Skin.String(ButtonsDesign,3)</visible>
              </control>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>Skin.String(ButtonsDesign,4)</visible>
              </control>
          </control>
          
          <control type="group">
              <visible>Skin.HasSetting(ReshapeIcons) | $PARAM[reshape]</visible>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>stretch</aspectratio>
                <texture diffuse="buttons/types/bd.png" colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>!Skin.String(ButtonsDesign)</visible>
              </control>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>stretch</aspectratio>
                <texture diffuse="buttons/types/bd0.png" colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>Skin.String(ButtonsDesign,0)</visible>
              </control>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>stretch</aspectratio>
                <texture diffuse="buttons/types/bd1.png" colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>Skin.String(ButtonsDesign,1)</visible>
              </control>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>stretch</aspectratio>
                <texture diffuse="buttons/types/bd2.png" colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>Skin.String(ButtonsDesign,2)</visible>
              </control>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>stretch</aspectratio>
                <texture diffuse="buttons/types/bd3.png" colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>Skin.String(ButtonsDesign,3)</visible>
              </control>
              <control type="image">
                <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
                <aspectratio>stretch</aspectratio>
                <texture diffuse="buttons/types/bd4.png" colordiffuse="$PARAM[color]">$INFO[ListItem.Thumb]</texture>
                <visible>Skin.String(ButtonsDesign,4)</visible>
              </control>
          </control>
          
          <control type="image" description="pwd_lock">
            <include>Fade_PassProtectOverlay</include>
            <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
            <aspectratio align="center">keep</aspectratio>
            <texture colordiffuse="$PARAM[color]">special://home/addons/script.featherence.service/resources/icons/Lock.png</texture>
            <visible>!String.IsEmpty(ListItem.Property(pwd)) + String.IsEmpty(Window(home).Property(PassProtect))</visible>
          </control>
          
          <control type="image" description="pwd_unlock">
            <include>Fade_PassProtectOverlay</include>
            <include condition="Skin.String(MenuDesign,4)">MenuDesign4_Icon</include>
            <aspectratio align="center">keep</aspectratio>
            <texture colordiffuse="$PARAM[color]">special://home/addons/script.featherence.service/resources/icons/Unlock.png</texture>
            <visible>!String.IsEmpty(ListItem.Property(pwd)) + !String.IsEmpty(Window(home).Property(PassProtect))</visible>
          </control>
        </control>
        
    </definition>
  </include>

You can see the full code of the Fade_PassProtectOverlay in my first post.

See its' related to the image control and it's not working when i click on:

Code:
<item id="443" description="שקיפות סמל">
        <label>$LOCALIZE[31463]</label>
        <label2>$INFO[Skin.String(PassProtectOverlay)]</label2>
        <thumb>special://home/addons/script.featherence.service/resources/icons/eye.png</thumb>
        <property name="rinfo">$LOCALIZE[31464]</property>
        <onclick condition="Skin.String(PassProtectOverlay, )">Skin.SetString(PassProtectOverlay, 100)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 100)">Skin.SetString(PassProtectOverlay, 95)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 95)">Skin.SetString(PassProtectOverlay, 90)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 90)">Skin.SetString(PassProtectOverlay, 85)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 85)">Skin.SetString(PassProtectOverlay, 80)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 80)">Skin.SetString(PassProtectOverlay, 70)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 70)">Skin.SetString(PassProtectOverlay, 60)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 60)">Skin.SetString(PassProtectOverlay, 50)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 50)">Skin.SetString(PassProtectOverlay, 40)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 40)">Skin.SetString(PassProtectOverlay, 30)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 30)">Skin.SetString(PassProtectOverlay, 20)</onclick>
        <onclick condition="Skin.String(PassProtectOverlay, 20)">Skin.SetString(PassProtectOverlay, )</onclick>
        <!--<include>CustomizerExit</include>-->
        <visible>Container(100).Hasfocus(31)</visible>
      </item>
Reply
#5
Includes are only checked once iirc. It wont act like a VAR.
So it will run initial pass but no go back and check other conditions.
Reply
#6
Thanks @badaas!

Is there any chance to make it work in the future? Do you find it useful?
Reply
#7
Comment you code out to save it and add this to replace and try... Back yours up Incase it doesn't.


Code:
<item id="443" description="שקיפות סמל">
        <label>$LOCALIZE[31463]</label>
        <label2>$INFO[Skin.String(PassProtectOverlay)]</label2>
        <thumb>special://home/addons/script.featherence.service/resources/icons/eye.png</thumb>
        <property name="rinfo">$LOCALIZE[31464]</property>
        <onclick condition="Skin. HasSetting(PPO)">Skin.SetBool(PPO100)</onclick>
        <onclick condition="Skin. HasSetting(PPO)">Skin.Reset(PPO)</onclick>
        <onclick condition="Skin. HasSetting (PPO100)">Skin.SetBool(PPO95)</onclick>
       <onclick condition="Skin. HasSetting(PPO100)">Skin.Reset(PPO100)</onclick>
        <onclick condition="Skin. HasSetting(PPO95)">Skin.SetBool(PPO90)</onclick>
       <onclick condition="Skin. HasSetting(PPO95)">Skin.Reset(PPO95)</onclick>
        <onclick condition="Skin. HasSetting(PPO90)">Skin.SetBool(PPO85)</onclick>
       <onclick condition="Skin. HasSetting(PPO90)">Skin.Reset(PPO90)</onclick>
        <onclick condition="Skin. HasSetting(PO85)">Skin.SetBool(PPO80)</onclick>
      <onclick condition="Skin. HasSetting(PPO85)">Skin.Reset(PPO85)</onclick>
        <onclick condition="Skin. HasSetting(PPO80)">Skin.SetBool(PPO70)</onclick>
       <onclick condition="Skin. HasSetting(PPO80)">Skin.Reset(PPO80)</onclick>
        <onclick condition="Skin. HasSetting(PPO70)">Skin.SetBool(PPO60)</onclick>
       <onclick condition="Skin. HasSetting(PPO70)">Skin.Reset(PPO70)</onclick>
        <onclick condition="Skin. HasSetting(PPO60)">Skin.SetBool(PPO50)</onclick>
       <onclick condition="Skin. HasSetting(PPO60)">Skin.Reset(PPO60)</onclick>
        <onclick condition="Skin.HasSetting(PPO50)">Skin.SetBool(PPO40)</onclick>
       <onclick condition="Skin. HasSetting(PPO50)">Skin.Reset(PPO50)</onclick>
        <onclick condition="Skin. HasSetting(PPO40)">Skin.SetBool(PPO30)</onclick>
        <onclick condition="Skin. HasSetting(PPO40)">Skin.Reset(PPO40)</onclick>
        <onclick condition="Skin. HasSetting(PPO30)">Skin.SetBool(PPO20)</onclick>
       <onclick condition="Skin. HasSetting(PPO30)">Skin.Reset(PPO30)</onclick>
        <onclick condition="Skin. HasSetting(PPO20)">Skin.SetBool(PPO)</onclick>
        <onclick condition="Skin. HasSetting(PPO20)">Skin.Reset(PPO20)</onclick>
        <!--<include>CustomizerExit</include>-->
        <visible>Container(100).Hasfocus(31)</visible>
      </item>


And then

Code:
<include name="Fade_PassProtectOverlay">
     <animation condition="Skin. HasSetting(PPO)" effect="fade" end="30" time="0">Conditional</animation>
    
     <animation condition="Skin. HasSetting(PPO10)" effect="fade" end="10" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO20)" effect="fade" end="20" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO30)" effect="fade" end="30" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO40)" effect="fade" end="40" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO50)" effect="fade" end="50" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO60)" effect="fade" end="60" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO65)" effect="fade" end="65" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO70)" effect="fade" end="70" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO80)" effect="fade" end="80" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO85)" effect="fade" end="85" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO90)" effect="fade" end="90" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PPO95)" effect="fade" end="95" time="0">Conditional</animation>
     <animation condition="Skin. HasSetting(PO100)" effect="fade" end="100" time="0">Conditional</animation>
   </include>


Try that and let me know how it works.... Sorry I changed the the name to PPO but I am on my phone and that is a lot easier to deal with.
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#8
I just realized I messed up the label... If this work we can fix that with a car no biggie
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#9
It's not working for me but thank you @smitchell6879

I think it's just not possible as @badass mention.
Reply
#10
Try one more thing put the Animation directly in the main code without the include.
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#11
Thx m8 that was worth a try atleast Sad
Reply

Logout Mark Read Team Forum Stats Members Help
Include inside param0