Skin engine: Can't use rotation animation with image positioned outside of screen (1 Viewer)

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Can't use rotation animation with image positioned outside of screen

    Say I want to have a rotating disc image where only the half of the disc is visible on the screen, currently this doesn't work.

    Code:
    <control>
    <description>DVD Disc Image</description>
    <type>image</type>
    <id>0</id>
    <posX>760</posX>
    <posY>-200</posY>
                    <width>400</width>
                    <height>400</height>
                    <texture>#MovingPictures.DVDArt\#MovingPictures.SelectedMovie.imdb_id.png</texture>
    <visible>facadeview.list + Control.IsVisible(50)</visible>
                    <animation effect="rotate" delay="0" end="-360" time="8000" loop="true" condition="true">Conditional</animation>
    </control>

    Expected: I expect to the entire disc to rotate, with the centre of the image and the centre of rotation being X=760 Y=0

    Outcome: Only half the texture is visible during rotation, and the centre of rotation if X=760 Y=200

    disc2.png
    disc.png
     
    Last edited:

    Users who are viewing this thread

    Top Bottom