2008-11-03, 17:28
Hey,
I just started to "learn" skinning with the Skinning Engine of XBMC.
Now I already have my first problems.
I think it is the mosy easiest way if I just show what I mean with Images:
At first how I arranged it in Photoshop
Now an example where the text is centered good
And here an example which shows the opposit^^
And here is the Code for the WrapList:
Okay, you see the Labels (thin and bold) are not really centered and I don't know how to do it. My first problem was even to add two diffrent fonts and let them (independet from the width which depents on the shown text) show up side by side. I made it then as you can see with "<align>right</align>" for the first thin label and "<align>left<align>" for the second main-label. Isn't there any easier method to format two diffrent fonts in one label?
Maybe someone has some nice help for me =). Thank you.
I just started to "learn" skinning with the Skinning Engine of XBMC.
Now I already have my first problems.
I think it is the mosy easiest way if I just show what I mean with Images:
At first how I arranged it in Photoshop
Now an example where the text is centered good
And here an example which shows the opposit^^
And here is the Code for the WrapList:
Code:
<control type="wraplist" id="300">
<description>HomeMainMenu</description>
<posx>390</posx>
<posy>647</posy>
<width>500</width>
<height>200</height>
<onup>301</onup>
<ondown>300</ondown>
<onright>300</onright>
<onleft>300</onleft>
<focusposition>1</focusposition>
<scrolltime>350</scrolltime>
<orientation>horizontal</orientation>
<animation effect="fade" start="0" end="100" time="500">Visible</animation>
<animation effect="fade" start="0" end="100" time="300">WindowOpen</animation>
<itemlayout width="200">
<control type="label">
<posx>0</posx>
<posy>0</posy>
<label>[UPPERCASE]$INFO[ListItem.Label][/UPPERCASE]</label>
<align>center</align>
<font>menu_middle</font>
<textcolor>FF999999</textcolor>
<shadowcolor>50000000</shadowcolor>
</control>
</itemlayout>
<focusedlayout width="200">
<control type="group">
<width>200</width>
<align>center</align>
<posx>0</posx>
<control type="label">
<width>200</width>
<label>[UPPERCASE]$INFO[ListItem.Label2][/UPPERCASE]</label>
<align>right</align>
<font>menu_large2</font>
<textcolor>FFFFFFFF</textcolor>
<shadowcolor>50000000</shadowcolor>
</control>
<control type="label">
<label>[UPPERCASE]$INFO[ListItem.Label][/UPPERCASE]</label>
<align>left</align>
<font>menu_large</font>
<textcolor>FFFFFFFF</textcolor>
<shadowcolor>50000000</shadowcolor>
</control>
</control>
<content>...</content>
</control>
Okay, you see the Labels (thin and bold) are not really centered and I don't know how to do it. My first problem was even to add two diffrent fonts and let them (independet from the width which depents on the shown text) show up side by side. I made it then as you can see with "<align>right</align>" for the first thin label and "<align>left<align>" for the second main-label. Isn't there any easier method to format two diffrent fonts in one label?
Maybe someone has some nice help for me =). Thank you.