only call IPlayerCallback::OnPlayBackSpeedChanged if the speed has actually changed
[vuplus_xbmc] / addons / skin.touched / 4x3Hirez / Home.xml
1 <window id="0">
2         <defaultcontrol always="true">9000</defaultcontrol>
3         <allowoverlay>no</allowoverlay> 
4         <controls>
5                 <include>CommonBackground</include>
6                 <control type="image">
7                         <description>XBMC Logo</description>
8                         <posx>20</posx>
9                         <posy>36</posy>
10                         <width>360</width>
11                         <height>48</height>
12                         <aspectratio align="left">keep</aspectratio>
13                         <texture>xbmc-logo.png</texture>
14                         <visible>!Player.HasMedia</visible>
15                         <include>VisibleFadeEffect</include>
16                         <include>Window_OpenClose_Animation</include>
17                 </control>
18                 <include>CommonNowPlaying</include>
19                 <control type="group">
20                         <!-- weather Info -->
21                         <include>Window_OpenClose_Animation</include>
22                         <visible>Weather.IsFetched + ![Window.IsVisible(VideoScan) | Window.IsVisible(MusicScan)] + !Skin.HasSetting(HideHomeButtonWeather)</visible>
23                         <include>VisibleFadeEffect</include>
24                         <posx>720r</posx>
25                         <posy>23</posy>
26                         <control type="button">
27                                 <description>Goto Weather button</description>
28                                 <posx>610</posx>
29                                 <posy>0</posy>
30                                 <width>160</width>
31                                 <height>80</height>
32                                 <texturenofocus>-</texturenofocus>
33                                 <texturefocus>-</texturefocus>
34                                 <onclick>ActivateWindow(Weather)</onclick>
35                         </control>
36                         <control type="image">
37                                 <description>Weather image</description>
38                                 <posx>632</posx>
39                                 <posy>0</posy>
40                                 <width>74</width>
41                                 <height>74</height>
42                                 <aspectratio>keep</aspectratio>
43                                 <texture>$INFO[Weather.Conditions]</texture>
44                         </control>
45                         <control type="label">
46                                 <description>location label</description>
47                                 <posx>620</posx>
48                                 <posy>12</posy>
49                                 <height>25</height>
50                                 <width>410</width>
51                                 <label>[B]$INFO[Weather.Location][/B]</label>
52                                 <align>right</align>
53                                 <aligny>center</aligny>
54                                 <font>font13</font>
55                                 <shadowcolor>black</shadowcolor>
56                         </control>
57                         <control type="grouplist">
58                                 <posx>0</posx>
59                                 <posy>35</posy>
60                                 <width>620</width>
61                                 <height>35</height>
62                                 <orientation>horizontal</orientation>
63                                 <align>right</align>
64                                 <itemgap>0</itemgap>
65                                 <control type="label">
66                                         <description>Weather label</description>
67                                         <height>30</height>
68                                         <width max="400">auto</width>
69                                         <label>$INFO[Window(Weather).Property(Current.Condition)]  </label>
70                                         <font>font12</font>
71                                         <aligny>center</aligny>
72                                         <textcolor>grey</textcolor>
73                                         <shadowcolor>black</shadowcolor>
74                                 </control>
75                                 <control type="label">
76                                         <description>Temp Label</description>
77                                         <height>30</height>
78                                         <width max="400">auto</width>
79                                         <label>[B]$INFO[Window(Weather).Property(Current.Temperature)][/B]</label>
80                                         <aligny>center</aligny>
81                                         <font>font24_title</font>
82                                         <shadowcolor>black</shadowcolor>
83                                 </control>
84                                 <control type="label">
85                                         <description>Temp Units Label</description>
86                                         <posy>2</posy>
87                                         <height>20</height>
88                                         <width max="200">auto</width>
89                                         <label>$INFO[System.TemperatureUnits]</label>
90                                         <font>font12</font>
91                                         <aligny>center</aligny>
92                                         <shadowcolor>black</shadowcolor>
93                                         <visible>!IsEmpty(Window(Weather).Property(Current.Temperature))</visible>
94                                 </control>
95                         </control>
96                 </control>
97                 <control type="group">
98                         <include>Window_OpenClose_Animation_Zoom</include>
99                         <control type="group">
100                                 <posx>0</posx>
101                                 <posy>130</posy>
102                                 <control type="button">
103                                         <description>left Arrow</description>
104                                         <posx>30</posx>
105                                         <posy>320</posy>
106                                         <width>40</width>
107                                         <height>60</height>
108                                         <texturefocus>arrow-big-left.png</texturefocus>
109                                         <texturenofocus>arrow-big-left.png</texturenofocus>
110                                         <onclick>Control.Move(9000,-1)</onclick>
111                                         <visible>Container(9000).HasPrevious</visible>
112                                         <include>VisibleFadeEffect</include>
113                                 </control>
114                                 <control type="button">
115                                         <description>right Arrow</description>
116                                         <posx>70r</posx>
117                                         <posy>320</posy>
118                                         <width>40</width>
119                                         <height>60</height>
120                                         <texturefocus>arrow-big-right.png</texturefocus>
121                                         <texturenofocus>arrow-big-right.png</texturenofocus>
122                                         <onclick>Control.Move(9000,1)</onclick>
123                                         <visible>Container(9000).HasNext</visible>
124                                         <include>VisibleFadeEffect</include>
125                                 </control>
126                                 <control type="panel" id="9000">
127                                         <posx>80</posx>
128                                         <posy>0</posy>
129                                         <width>1120</width>
130                                         <height>720</height>
131                                         <onleft>20</onleft>
132                                         <onright>22</onright>
133                                         <onup>9000</onup>
134                                         <ondown>9000</ondown>
135                                         <pagecontrol>-</pagecontrol>
136                                         <scrolltime>200</scrolltime>
137                                         <orientation>horizontal</orientation>
138                                         <preloaditems>2</preloaditems>
139                                         <itemlayout height="340" width="560">
140                                                 <control type="image">
141                                                         <posx>0</posx>
142                                                         <posy>0</posy>
143                                                         <width>560</width>
144                                                         <height>360</height>
145                                                         <texture border="5">SubBack.png</texture>
146                                                         <bordertexture border="30">ShadowBorder.png</bordertexture>
147                                                         <bordersize>25</bordersize>
148                                                 </control>
149                                                 <control type="image">
150                                                         <posx>30</posx>
151                                                         <posy>30</posy>
152                                                         <width>500</width>
153                                                         <height>250</height>
154                                                         <aspectratio>scale</aspectratio>
155                                                         <texture>$INFO[ListItem.Icon,special://skin/background/]</texture>
156                                                 </control>
157                                                 <control type="image">
158                                                         <posx>30</posx>
159                                                         <posy>30</posy>
160                                                         <width>300</width>
161                                                         <height>300</height>
162                                                         <texture>GlassOverlay.png</texture>
163                                                 </control>
164                                                 <control type="label">
165                                                         <posx>40</posx>
166                                                         <posy>290</posy>
167                                                         <width>480</width>
168                                                         <height>30</height>
169                                                         <font>font13caps_title</font>
170                                                         <textcolor>white</textcolor>
171                                                         <shadowcolor>black</shadowcolor>
172                                                         <align>left</align>
173                                                         <aligny>center</aligny>
174                                                         <label>[B]$INFO[ListItem.Label][/B]</label>
175                                                 </control>
176                                         </itemlayout>
177                                         <focusedlayout height="340" width="560">
178                                                 <control type="image">
179                                                         <posx>0</posx>
180                                                         <posy>0</posy>
181                                                         <width>560</width>
182                                                         <height>360</height>
183                                                         <texture border="5">SubBack.png</texture>
184                                                         <bordertexture border="30">ShadowBorder.png</bordertexture>
185                                                         <bordersize>25</bordersize>
186                                                 </control>
187                                                 <control type="image">
188                                                         <posx>30</posx>
189                                                         <posy>30</posy>
190                                                         <width>500</width>
191                                                         <height>250</height>
192                                                         <aspectratio>scale</aspectratio>
193                                                         <texture>$INFO[ListItem.Icon,special://skin/background/]</texture>
194                                                 </control>
195                                                 <control type="image">
196                                                         <posx>30</posx>
197                                                         <posy>30</posy>
198                                                         <width>300</width>
199                                                         <height>300</height>
200                                                         <texture>GlassOverlay.png</texture>
201                                                 </control>
202                                                 <control type="label">
203                                                         <posx>40</posx>
204                                                         <posy>290</posy>
205                                                         <width>480</width>
206                                                         <height>30</height>
207                                                         <font>font13caps_title</font>
208                                                         <textcolor>white</textcolor>
209                                                         <shadowcolor>black</shadowcolor>
210                                                         <align>left</align>
211                                                         <aligny>center</aligny>
212                                                         <label>[B]$INFO[ListItem.Label][/B]</label>
213                                                 </control>
214                                         </focusedlayout>
215                                         <content>
216                                                 <item>
217                                                         <label>3</label>
218                                                         <onclick condition="!Skin.HasSetting(HomeVideosGoesToRoot)">ActivateWindow(Videos)</onclick>
219                                                         <onclick condition="Skin.HasSetting(HomeVideosGoesToRoot)">ActivateWindow(Videos,root)</onclick>
220                                                         <icon>videos.png</icon>
221                                                         <thumb>-</thumb>
222                                                         <visible>!Skin.HasSetting(HideHomeButtonVideo)</visible>
223                                                 </item>
224                                                 <item>
225                                                         <label>20342</label>
226                                                         <onclick>ActivateWindow(Videos,MovieTitles,Return)</onclick>
227                                                         <icon>movies.png</icon>
228                                                         <thumb>-</thumb>
229                                                         <visible>Library.HasContent(Movies)</visible>
230                                                         <visible>!Skin.HasSetting(HideHomeButtonMovies)</visible>
231                                                 </item>
232                                                 <item>
233                                                         <label>20343</label>
234                                                         <onclick>ActivateWindow(Videos,TVShowTitles,Return)</onclick>
235                                                         <icon>tvshows.png</icon>
236                                                         <thumb>-</thumb>
237                                                         <visible>Library.HasContent(TVShows)</visible>
238                                                         <visible>!Skin.HasSetting(HideHomeButtonTVShows)</visible>
239                                                 </item>
240                                                 <item>
241                                                         <label>2</label>
242                                                         <onclick>ActivateWindow(Music)</onclick>
243                                                         <icon>music.png</icon>
244                                                         <thumb>-</thumb>
245                                                         <visible>!Skin.HasSetting(HideHomeButtonMusic)</visible>
246                                                 </item>
247                                                 <item>
248                                                         <label>1</label>
249                                                         <onclick>ActivateWindow(Pictures)</onclick>
250                                                         <icon>pictures.png</icon>
251                                                         <thumb>-</thumb>
252                                                         <visible>!Skin.HasSetting(HideHomeButtonPictures)</visible>
253                                                 </item>
254                                                 <item>
255                                                         <label>0</label>
256                                                         <onclick>ActivateWindow(Programs,Addons,return)</onclick>
257                                                         <icon>programs.png</icon>
258                                                         <thumb>-</thumb>
259                                                         <visible>!Skin.HasSetting(HideHomeButtonPrograms)</visible>
260                                                 </item>
261                                         </content>
262                                 </control>
263                         </control>
264                 </control>
265                 <control type="panel" id="9002">
266                         <visible>!Window.IsActive(PlayerControls)</visible>
267                         <include>VisibleFadeEffect</include>
268                         <include>SubMenuCommonLayout</include>
269                         <content>
270                                 <item>
271                                         <label>13012</label>
272                                         <onclick>XBMC.Quit</onclick>
273                                         <icon>icon_shutdown.png</icon>
274                                 </item>
275                                 <item>
276                                         <label>20126</label>
277                                         <onclick>System.LogOff</onclick>
278                                         <icon>icon_logoff.png</icon>
279                                         <visible>System.HasLoginScreen | IntegerGreaterThan(System.ProfileCount,1)</visible>
280                                 </item>
281                                 <item>
282                                         <label>5</label>
283                                         <onclick>ActivateWindow(Settings)</onclick>
284                                         <icon>icon_settings.png</icon>
285                                 </item>
286                                 <item>
287                                         <label>13376</label>
288                                         <onclick>ActivateWindow(1112)</onclick>
289                                         <icon>icon_volume.png</icon>
290                                         <visible>false</visible>
291                                 </item>
292                                 <item>
293                                         <label>Reload Skin</label>
294                                         <onclick>ReloadSkin</onclick>
295                                         <icon>icon_refresh.png</icon>
296                                         <visible>false</visible>
297                                 </item>
298                         </content>
299                 </control>
300                 <control type="panel" id="9003">
301                         <visible>!Window.IsActive(PlayerControls)</visible>
302                         <include>Window_OpenClose_Animation</include>
303                         <animation effect="slide" start="0,0" end="112,0" time="0" condition="StringCompare(Container(9003).NumItems,3)">conditional</animation>
304                         <animation effect="slide" start="0,0" end="224,0" time="0" condition="StringCompare(Container(9003).NumItems,2)">conditional</animation>
305                         <animation effect="slide" start="0,0" end="336,0" time="0" condition="StringCompare(Container(9003).NumItems,1)">conditional</animation>
306                         <posx>570r</posx>
307                         <posy>105r</posy>
308                         <width>448</width>
309                         <height>120</height>
310                         <onleft>9002</onleft>
311                         <onright>9002</onright>
312                         <onup>9001</onup>
313                         <ondown>20</ondown>
314                         <pagecontrol>-</pagecontrol>
315                         <scrolltime>300</scrolltime>
316                         <orientation>Horizontal</orientation>
317                         <itemlayout height="200" width="112">
318                                 <control type="image">
319                                         <posx>16</posx>
320                                         <posy>0</posy>
321                                         <width>80</width>
322                                         <height>80</height>
323                                         <texture diffuse="shortcut_diffuse.png">$INFO[ListItem.Icon]</texture>
324                                 </control>
325                                 <control type="image">
326                                         <posx>16</posx>
327                                         <posy>0</posy>
328                                         <width>80</width>
329                                         <height>80</height>
330                                         <texture>shortcut_border.png</texture>
331                                 </control>
332                                 <control type="label">
333                                         <posx>56</posx>
334                                         <posy>82</posy>
335                                         <width>100</width>
336                                         <height>20</height>
337                                         <font>font11</font>
338                                         <textcolor>white</textcolor>
339                                         <shadowcolor>black</shadowcolor>
340                                         <align>center</align>
341                                         <aligny>center</aligny>
342                                         <label>$INFO[ListItem.Label]</label>
343                                 </control>
344                         </itemlayout>
345                         <focusedlayout height="200" width="112">
346                                 <control type="image">
347                                         <posx>16</posx>
348                                         <posy>0</posy>
349                                         <width>80</width>
350                                         <height>80</height>
351                                         <texture diffuse="shortcut_diffuse.png">$INFO[ListItem.Icon]</texture>
352                                 </control>
353                                 <control type="image">
354                                         <posx>16</posx>
355                                         <posy>0</posy>
356                                         <width>80</width>
357                                         <height>80</height>
358                                         <texture>shortcut_border.png</texture>
359                                 </control>
360                                 <control type="label">
361                                         <posx>56</posx>
362                                         <posy>82</posy>
363                                         <width>100</width>
364                                         <height>20</height>
365                                         <font>font11</font>
366                                         <textcolor>white</textcolor>
367                                         <shadowcolor>black</shadowcolor>
368                                         <align>center</align>
369                                         <aligny>center</aligny>
370                                         <label>$INFO[ListItem.Label]</label>
371                                 </control>
372                         </focusedlayout>
373                         <content>
374                                 <item>
375                                         <label>$INFO[system.addontitle(Skin.String(HomeAddonButton1))]</label>
376                                         <onclick>RunAddon($INFO[Skin.String(HomeAddonButton1)])</onclick>
377                                         <icon>$INFO[system.addonicon(Skin.String(HomeAddonButton1))]</icon>
378                                         <thumb>-</thumb>
379                                         <visible>!IsEmpty(Skin.String(HomeAddonButton1))</visible>
380                                 </item>
381                                 <item>
382                                         <label>$INFO[system.addontitle(Skin.String(HomeAddonButton2))]</label>
383                                         <onclick>RunAddon($INFO[Skin.String(HomeAddonButton2)])</onclick>
384                                         <icon>$INFO[system.addonicon(Skin.String(HomeAddonButton2))]</icon>
385                                         <thumb>-</thumb>
386                                         <visible>!IsEmpty(Skin.String(HomeAddonButton2))</visible>
387                                 </item>
388                                 <item>
389                                         <label>$INFO[system.addontitle(Skin.String(HomeAddonButton3))]</label>
390                                         <onclick>RunAddon($INFO[Skin.String(HomeAddonButton3)])</onclick>
391                                         <icon>$INFO[system.addonicon(Skin.String(HomeAddonButton3))]</icon>
392                                         <thumb>-</thumb>
393                                         <visible>!IsEmpty(Skin.String(HomeAddonButton3))</visible>
394                                 </item>
395                                 <item>
396                                         <label>$INFO[system.addontitle(Skin.String(HomeAddonButton4))]</label>
397                                         <onclick>RunAddon($INFO[Skin.String(HomeAddonButton4)])</onclick>
398                                         <icon>$INFO[system.addonicon(Skin.String(HomeAddonButton4))]</icon>
399                                         <thumb>-</thumb>
400                                         <visible>!IsEmpty(Skin.String(HomeAddonButton4))</visible>
401                                 </item>
402                         </content>
403                 </control>
404                 <include>BehindDialogFadeOut</include>
405         </controls>     
406 </window>