I thought I'd share this little mod, in case anyone's interested. Essentially it's a tiny pop-up window which shows the current time.
Why would you use it? Most of the time the skin shows the current time anyway - yes, but not when in full screen video mode (and I don't want to pause it - I just want something discrete).
Don't you have a watch? Well, no, I don't actually.
Pointless? Maybe.
So here's the code:
Code:
<window id="1234" type="dialog">
<animation effect="slide" start="0,40" end="0,0" time="250" tween="back" easing="out">WindowOpen</animation>
<animation effect="slide" start="0,0" end="0,40" time="250" tween="back" easing="in">WindowClose</animation>
<defaultcontrol always="true">41</defaultcontrol>
<coordinates>
<system>1</system>
<posx>820</posx>
<posy>680</posy>
</coordinates>
<controls>
<control type="group">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>200</width>
<height>60</height>
<texture border="20,20,20,2">InfoMessagePanel.png</texture>
</control>
<control type="fadelabel" id="401">
<description>Time</description>
<posx>10</posx>
<posy>10</posy>
<width>180</width>
<height>18</height>
<font>font12_title</font>
<textcolor>white</textcolor>
<align>center</align>
<aligny>center</aligny>
<scrollout>false</scrollout>
<label>$INFO[System.Time]</label>
</control>
</control>
<control type="button" id="41">
<onfocus>Dialog.Close(1234)</onfocus>
<texturenofocus>-</texturenofocus>
<texturefocus>-</texturefocus>
<animation effect="fade" delay="3000" end="100">Focus</animation>
</control>
</controls>
</window>
You'd need to save the file in the skin's 720p folder and call it something like "custom_TimeDialog_1234.xml".
You'd also need to map a key to show it - "XBMC.ActivateWindow(1234)"