2011-08-03, 04:20
Hi Guy's,
Yet another one of Wyrm's blindingly obvious issues that everyone will laugh at.
I am currently moving the coding of my skin from PAL to 720p and I'm trying to keep the aspect ratio of my icons when I change resolutions. I'm testing my skin on my 1280 x 1024 monitor with a 1280 x 720 window. So when I display the skin in the window I have 16x9 and when I go fullscreen I have 4x3. Now the problem I'm having is that in 16x9 the icon and it's CD case image frame is the correct aspect ratio. But when I change to 4x3 the aspect ratio of the icon is correct, but the CD case frame is too tall (aspect ratio is not kept). Here is my code that I am using:
Replys of the form . Wyrm ya goose, try fixing foo will be fine.
Wyrm (xTV-SAF)
Yet another one of Wyrm's blindingly obvious issues that everyone will laugh at.
I am currently moving the coding of my skin from PAL to 720p and I'm trying to keep the aspect ratio of my icons when I change resolutions. I'm testing my skin on my 1280 x 1024 monitor with a 1280 x 720 window. So when I display the skin in the window I have 16x9 and when I go fullscreen I have 4x3. Now the problem I'm having is that in 16x9 the icon and it's CD case image frame is the correct aspect ratio. But when I change to 4x3 the aspect ratio of the icon is correct, but the CD case frame is too tall (aspect ratio is not kept). Here is my code that I am using:
PHP Code:
<control type="wraplist" id="54">
<include>list-fade</include>
<viewtype label="31943">Wraplist</viewtype>
<posx>14</posx>
<posy>250</posy>
<width>1240</width>
<height>390</height>
<onleft>54</onleft>
<onright>54</onright>
<onup>9000</onup>
<ondown>1254</ondown>
<focusposition>0</focusposition>
<orientation>horizontal</orientation>
<preloaditems>7</preloaditems>
<scrolltime>0</scrolltime>
<pagecontrol>1254</pagecontrol>
<itemlayout height="154" width="154">
<control type="image">
<posx>-50</posx>
<posy>204</posy>
<height>154</height>
<width>154</width>
<texture background="true">case-cd.png</texture>
<colordiffuse>UnFocusedCovers</colordiffuse>
<aspectratio aligny="center" align="center">keep</aspectratio>
<visible>Skin.HasSetting(CDcase) + !SubString(ListItem.Icon,Default,Left)</visible>
</control>
<control type="image">
<posx>-32</posx>
<posy>218</posy>
<height>128</height>
<width>128</width>
<colordiffuse>UnFocusedCovers</colordiffuse>
<texture background="true" fallback="DefaultAlbumCover.png">$INFO
[ListItem.Icon]</texture>
<aspectratio aligny="center" align="center">keep</aspectratio>
</control>
</itemlayout>
<focusedlayout height="366" width="366">
<control type="image">
<posx>2</posx>
<posy>65</posy>
<height>305</height>
<width>305</width>
<texture>case-cd.png</texture>
<aspectratio aligny="center">keep</aspectratio>
<visible>Skin.HasSetting(CDcase) + !SubString(ListItem.Icon,Default,Left)</visible>
</control>
<control type="image">
<posx>36</posx>
<posy>90</posy>
<width>256</width>
<height>256</height>
<texture background="true" fallback="DefaultAlbumCover.png">$INFO
[ListItem.Icon]</texture>
<aspectratio aligny="center" align="center">keep</aspectratio>
</control>
</focusedlayout>
</control>
Wyrm (xTV-SAF)