2007-07-06, 00:44
Here are two code snippets from a 4x3 and a 16x9 xml file. Notice in the 4x3 zoom animation I have to set the end's x pos to the same <posx> to get it to end up at the correct x pos with the slide. While in the 16x9 I have to add the slides x number and put the final position.
This is with WindoXML if it matters.
720P
NTSC4x3
This is with WindoXML if it matters.
720P
Code:
<control type="group">
<visible>[Control.IsVisible(50) | Control.IsVisible(51) | Control.IsVisible(54)] + Control.IsVisible(3000)</visible>
<animation effect="slide" time="300" start="600,0" end="0,0" acceleration="-1">WindowOpen</animation>
<animation effect="slide" time="200" start="0,0" end="600,0" acceleration="1.1">WindowClose</animation>
<control type="button">
<description>Trailer List Scrollbar Up Arrow</description>
<posx>525</posx>
<posy>100</posy>
<width>12</width>
<height>16</height>
<texturenofocus>amt-scrollbar-up-arrow.png</texturenofocus>
<texturefocus>amt-scrollbar-up-arrow-focus.png</texturefocus>
<onclick>PageUp(2050)</onclick>
<animation effect="slide" time="0" end="155,0" condition="Control.IsVisible(51)">Conditional</animation>
<animation effect="slide" time="0" end="155,0" condition="Control.IsVisible(54)">Conditional</animation>
</control>
<control type="scrollbar" id="2050">
<description>Scroll Bar for Trailer List #50</description>
<posx>525</posx>
<posy>116</posy>
<width>12</width>
<height>200</height>
<texturesliderbackground border="4">amt-scrollbar-bg.png</texturesliderbackground>
<texturesliderbar border="3">amt-scrollbar-bar-nofocus.png</texturesliderbar>
<texturesliderbarfocus border="3">amt-scrollbar-bar-focus.png</texturesliderbarfocus>
<textureslidernib>amt-scrollbar-nib-nofocus.PNG</textureslidernib>
<textureslidernibfocus>amt-scrollbar-nib-focus.PNG</textureslidernibfocus>
<onleft>50</onleft>
<onright>2075</onright>
<showonepage>true</showonepage>
<orientation>vertical</orientation>
<animation effect="slide" end="155,0" condition="Control.IsVisible(51)">Conditional</animation>
<animation effect="zoom" end="680,116,12,391" condition="Control.IsVisible(51)">Conditional</animation>
<animation effect="slide" end="155,0" condition="Control.IsVisible(54)">Conditional</animation>
<animation effect="zoom" end="680,116,12,338" condition="Control.IsVisible(54)">Conditional</animation>
</control>
<control type="button">
<description>Trailer List Scrollbar Down Arrow</description>
<posx>525</posx>
<posy>316</posy>
<width>12</width>
<height>16</height>
<texturenofocus>amt-scrollbar-down-arrow.png</texturenofocus>
<texturefocus>amt-scrollbar-down-arrow-focus.png</texturefocus>
<onclick>PageDown(2050)</onclick>
<animation effect="slide" time="0" end="155,191" condition="Control.IsVisible(51)">Conditional</animation>
<animation effect="slide" time="0" end="155,138" condition="Control.IsVisible(54)">Conditional</animation>
</control>
</control>
NTSC4x3
Code:
<control type="group">
<visible>[Control.IsVisible(50) | Control.IsVisible(51) | Control.IsVisible(54)] + Control.IsVisible(3000)</visible>
<animation effect="slide" time="300" start="600,0" end="0,0" acceleration="-1">WindowOpen</animation>
<animation effect="slide" time="200" start="0,0" end="600,0" acceleration="1.1">WindowClose</animation>
<control type="button">
<description>Trailer List Scrollbar Up Arrow</description>
<posx>495</posx>
<posy>100</posy>
<width>16</width>
<height>16</height>
<texturenofocus>amt-scrollbar-up-arrow.png</texturenofocus>
<texturefocus>amt-scrollbar-up-arrow-focus.png</texturefocus>
<onclick>PageUp(2050)</onclick>
<animation effect="slide" time="0" end="185,0" condition="Control.IsVisible(51)">Conditional</animation>
<animation effect="slide" time="0" end="185,0" condition="Control.IsVisible(54)">Conditional</animation>
</control>
<control type="scrollbar" id="2050">
<description>Scroll Bar for Trailer List #50</description>
<posx>495</posx>
<posy>116</posy>
<width>16</width>
<height>200</height>
<texturesliderbackground border="4">amt-scrollbar-bg.png</texturesliderbackground>
<texturesliderbar border="3">amt-scrollbar-bar-nofocus.png</texturesliderbar>
<texturesliderbarfocus border="3">amt-scrollbar-bar-focus.png</texturesliderbarfocus>
<textureslidernib>amt-scrollbar-nib-nofocus.PNG</textureslidernib>
<textureslidernibfocus>amt-scrollbar-nib-focus.PNG</textureslidernibfocus>
<onleft>50</onleft>
<onright>175</onright>
<showonepage>true</showonepage>
<orientation>vertical</orientation>
<animation effect="slide" end="185,0" condition="Control.IsVisible(51)">Conditional</animation>
<animation effect="zoom" end="495,116,16,391" condition="Control.IsVisible(51)">Conditional</animation>
<animation effect="slide" end="185,0" condition="Control.IsVisible(54)">Conditional</animation>
<animation effect="zoom" end="495,116,16,338" condition="Control.IsVisible(54)">Conditional</animation>
</control>
<control type="button">
<description>Trailer List Scrollbar Down Arrow</description>
<posx>495</posx>
<posy>316</posy>
<width>16</width>
<height>16</height>
<texturenofocus>amt-scrollbar-down-arrow.png</texturenofocus>
<texturefocus>amt-scrollbar-down-arrow-focus.png</texturefocus>
<onclick>PageDown(2050)</onclick>
<animation effect="slide" time="0" end="185,191" condition="Control.IsVisible(51)">Conditional</animation>
<animation effect="slide" time="0" end="185,138" condition="Control.IsVisible(54)">Conditional</animation>
</control>
</control>