How can I make a menu hide until its focused?
#1
I am working on sub menus for Shade but I need them to be faded to zero when the home menu loads and only viewable when they are focused. I have a ton going on here but I cant get the coding right.

Code:
    <animation effect="slide" end="0,-60" time="200" tween="quadratic" easing="out" condition="ControlGroup(9001).HasFocus">Conditional</animation>
                <animation effect="slide" start="0,-60" end="0,60" time="200" tween="quadratic" easing="out" condition="ControlGroup(9001).HasFocus">WindowClose</animation>
                <animation effect="fade" start="0" end="100" time="200">Focus</animation>
                <animation effect="fade" start="100" end="0" time="200">UnFocus</animation>
                <animation effect="slide" end="0,300" condition="Skin.HasSetting(LowerHorizontalMenu)">Conditional</animation>

ID 9001 needs to be hidden all the time unless its focused.
Image
To learn more, click here.
Reply
#2
Try removing

PHP Code:
<animation effect="fade" start="0" end="100" time="200">Focus</animation>
<
animation effect="fade" start="100" end="0" time="200">UnFocus</animation

and replace them with

PHP Code:
<animation effect="fade" start="100" end="0" time="200" condition="!ControlGroup(9001).HasFocus">Conditional</animation
Reply
#3
Hitcher Wrote:Try removing

PHP Code:
<animation effect="fade" start="0" end="100" time="200">Focus</animation>
<
animation effect="fade" start="100" end="0" time="200">UnFocus</animation

and replace them with

PHP Code:
<animation effect="fade" start="100" end="0" time="200" condition="!ControlGroup(9001).HasFocus">Conditional</animation

Perfect, thanks hitcher!
Image
To learn more, click here.
Reply

Logout Mark Read Team Forum Stats Members Help
How can I make a menu hide until its focused?0