Posts: 1,141
Joined: Mar 2006
Reputation:
0
it seems that fading out doesn't work for "positive" commands, such as Visible or WindowOpen, and so on. It works fine for WindowClose and conditions like that, but I have several places where i've needed to use it and for whatever reason, it didn't work in any of them. I showed Jezz_X some of the code and he said it should be working, so I assume it must be some glitch in the xbmc code, or something that just hasn't been implemented yet maybe. Here's an example of the sort of thing I've tried doing.
<animation effect="fade" start="100" end="0" time="0" delay="300">WindowOpen</animation>
When I add this, it would either completely ignore the animation, or SOMEtimes it would make the control never become visible at all.
Posts: 1,141
Joined: Mar 2006
Reputation:
0
by the way, I could provide a debug log if you'd like, but i'm not sure it would help for this sort of thing?
Posts: 1,473
Joined: Aug 2004
Reputation:
3
C-Quel
Retired Team-Kodi Member
Posts: 1,473
fading does work mate as ive been skinning today and used that exact animation on windowopen and close
Posts: 1,141
Joined: Mar 2006
Reputation:
0
hmm well then there must be certain conditions under which it doesn't work...cause its definitely not working for me. I could provide one of the xmls i'm working with if it would help
Posts: 1,141
Joined: Mar 2006
Reputation:
0
i just tried a full debug and all it when i open the window is INFO: Loading skin file: SettingsCategory.xml....so that didn't help
Posts: 26,215
Joined: Oct 2003
Reputation:
187
time = 0 doesn't look right. Try time=1.
Posts: 1,141
Joined: Mar 2006
Reputation:
0
i have tried various times with no effect...also, time 0 works perfectly for fading in...but i'll give it another shot anyway
Posts: 1,141
Joined: Mar 2006
Reputation:
0
wait i think i just realized the problem...what i'm trying to get it to do is appear immediately when the window opens, but disappear at 300. However, i just realized there's no way to do this, because the delay makes it so it doesn't become visible until 300. I'd like it to be visible for 300 miliseconds and then suddenly disappear. *sigh* Oh well.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
You may be able to do it with a dummy control that switches on after 300ms (eg a blank image control).
Then set the visibility on the other item to be visible only when the dummy control is not visible.