Trouble with Fades
#1
Hi,

I'm still trying to get my head around fades, can anyone help?

I've got text buttons I need to fade. I've tried all sorts of things.

I'm look for having the text buttons to be at 25% on load, fade to 100% on focus and fade back 25% for no focus. At the moment i've got (truncated):

Code:
<control type="group">
<animation effect="fade" time="100" end="25">WindowOpen</animation>

<control type="button" id="3">
<label>music</label>
<animation effect="fade" time="100" start="25" end="100" condition="Control.HasFocus(3)">Conditional</animation>
</control>

When I view this, onfocus fades seem to be relative to the original 25%, so that 25% is the highest it ever gets (not 100%). I'm also having the same sort of troubles with using textures for buttons.

Can anyone help me clear up my fading issues? Smile

Thanks,
Tyson
Reply
#2
Fades are multiplicative, thus what you are seeing.

Try having the outside anim go all the way to 100, then have a conditional anim so that it fades down to 25% when it doesn't have focus.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Trouble with Fades0