2011-07-27, 05:59
OK, I have taking on my first real project. I have gotten a few things working but have run int a few roadblocks as well. First I should say I am starting with the foundation skin (using 1080) and I am running a XBMC nightly build. I add the following control group to get a date and time on the screen:
With the code above I do not see the date or time on the screen. If I remove the "align" line then the text is on the left of the screen. I want it to align to the right hand side of the screen but am not sure how to get that to happen. I thought if I was building a 1080 skin that 1920 would be the right hand side of the screen.
Any help or suggestions would be great. I have also ran into a issue with aligning text in a horizontal scroll bar but I am still playing with that one and trying to figure it out on my own.
Thank in advance,
SoBBie
Code:
<control type="group"> <!-- Date bar -->
<posy>774</posy>
<control type="image"> <!-- Date bar Background -->
<posx>0</posx>
<width>1920</width>
<height>26</height>
<texture>time-bg.png</texture>
</control>
<control type="label"> <!-- Date bar Text-->
<posx>0</posx>
<width>1920</width>
<height>26</height>
<font>Home</font>
<textcolor>HomeColor</textcolor>
<align>right</align>
<label>$INFO[System.Date] | $INFO[System.Time]</label>
</control>
</control>
With the code above I do not see the date or time on the screen. If I remove the "align" line then the text is on the left of the screen. I want it to align to the right hand side of the screen but am not sure how to get that to happen. I thought if I was building a 1080 skin that 1920 would be the right hand side of the screen.
Any help or suggestions would be great. I have also ran into a issue with aligning text in a horizontal scroll bar but I am still playing with that one and trying to figure it out on my own.
Thank in advance,
SoBBie