[Approved] Fix for Mantis 2866: Visiblechange animations not processing reverse animations (1 Viewer)

Migue

Retired Team Member
  • Premium Supporter
  • January 27, 2006
    381
    305
    Florida
    This patch addresses 0002866: Visiblechange animations do not process reverse animations correctly - MediaPortal Bugtracker.

    MP currently has no implementation for visiblechange animations. As a result they are processed exactly the same as a visible animation.

    This patch creates a corresponding Hidden animation with values reversed.

    Skins that have used a visiblechange animation in place of a visible animation will need to change the animation type. Previously it did not matter, but with this patch the hidden animation will now be processed as well.

    The default value for a visiblechange animation is reversible='true' to match the default of a visible animation This means that if the animation is interrupted before it has completed processing, it will reverse the animation rather than just halt it (reversible=false)

    NOTE: This patch will make the hidden animation bug 0002867: Hidden animations all execute on windowopen - MediaPortal Bugtracker even more apparent. Please see my patch for Fix for Mantis 2867 : Hidden animations all execute on windowopen which addresses this Mantis issue.

    I have attached a patch for this fix only, for code review. I have also attached a binary (core.dll) with both patches integrated, for test purposes.
     

    Attachments

    • Fix for Mantis #0002866 (using 1.1.1 tag).patch
      2.5 KB
    • Core.zip
      987.7 KB

    mironicus

    Portal Pro
    March 9, 2008
    688
    44
    AW: Fix for Mantis 2866: Visiblechange animations not processing reverse animations

    It seems that skins indeed have to be modified due to this new added code. Using Black Glass I now see various mixed overlays / animations that I never saw before with this patch. Also with Blue 3 Wide I now see some annoying little overlays / flashing for some milliseconds after starting / stopping a video.
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    Hi, I suppose this change is the reason for breaking the streamedmp basichome (see screenshot)?

    23-49-40.png
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Are you all using the binary or the patch? As Migue clearly stated in the first post:
    NOTE: This patch will make the hidden animation bug 0002867: Hidden animations all execute on windowopen - MediaPortal Bugtracker even more apparent. Please see my patch for Fix for Mantis 2867 : Hidden animations all execute on windowopen which addresses this Mantis issue.
    however that patch has not yet been comitted to SVN. So if you are using latest SVN then until the second patch is committed you will have these problems. Skins should not make any changes until both patches have been committed.
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,794
    11,616
    Königstein (Taunus)
    Home Country
    Germany Germany
    AW: Fix for Mantis 2866: Visiblechange animations not processing reverse animations

    Hmm, strange indeed...
    EDIT: :D Doug, we were posting at the same time.
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    I was using the latest svn (without patch), I was under the impression that the patch had been already commited...

    Will test again tomorrow...
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Thanks Bavarian, but everyone should please keep in mind that skins may require some modificaions. Mainly because animations never worked correctly before, and because many skins developed workarounds for the hidden animations not working properly.

    Also skinners have been able to use visiblechange incorrectly because it just worked like a visible animation, so those will need to be corrected before skins will be perfect again. In most cases, only minor changes are required to skins, but we need to give skinners a bit of time to implement the changes.
     

    Users who are viewing this thread

    Top Bottom