aboutsummaryrefslogtreecommitdiff
path: root/addons/skin.estouchy/xml/Home.xml
blob: 09beb7988cde8d6e85ede0ce0af43010a7441309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">9000</defaultcontrol>
	<onload condition="String.IsEmpty(Skin.String(FirstRun))">ActivateWindow(1111)</onload>
	<controls>
		<control type="label">
			<posx>-10</posx>
			<posy>-10</posy>
			<width>0</width>
			<height>0</height>
			<label>$INFO[Weather.FanartCode]</label> <!-- trigger weather retrieval -->
		</control>
		<include>CommonBackground</include>
		<include>Header</include>
		<include>CommonNowPlaying</include>
		<include>Footer</include>
		<control type="group">
			<include>Window_OpenClose_Animation</include>
			<animation effect="slide" start="0,0" end="106,0" time="0" condition="String.IsEqual(Skin.AspectRatio,4:3)">Conditional</animation>
			<visible>Library.HasContent(Movies) | Library.HasContent(TVShows) | Library.HasContent(Music) | Integer.IsGreater(Container(2400).NumItems,0)</visible>
			<control type="button">
				<posx>509r</posx>
				<posy>120</posy>
				<width>33</width>
				<height>55</height>
				<texturenofocus>arrow_left.png</texturenofocus>
				<texturefocus colordiffuse="blue">arrow_left.png</texturefocus>
				<onclick>Control.Move(9010,-1)</onclick>
			</control>
			<control type="button">
				<posx>176r</posx>
				<posy>120</posy>
				<width>33</width>
				<height>55</height>
				<texturenofocus>arrow_right.png</texturenofocus>
				<texturefocus colordiffuse="blue">arrow_right.png</texturefocus>
				<onclick>Control.Move(9010,1)</onclick>
			</control>
			<control type="wraplist" id="9010">
				<include>VisibleFadeEffect</include>
				<posx>426r</posx>
				<posy>78</posy>
				<width>200</width>
				<height>140</height>
				<onup>9000</onup>
				<ondown>9002</ondown>
				<scrolltime>0</scrolltime>
				<orientation>Horizontal</orientation>
				<itemlayout width="200" height="140">
					<control type="image">
						<posx>20</posx>
						<posy>20</posy>
						<height>100</height>
						<width>160</width>
						<texture>button_nofocus.png</texture>
					</control>
					<control type="label">
						<posx>5</posx>
						<posy>0</posy>
						<height>140</height>
						<width>190</width>
						<label>$INFO[ListItem.Label]</label>
						<align>center</align>
						<aligny>center</aligny>
						<textcolor>white</textcolor>
						<font>font22</font>
					</control>
				</itemlayout>
				<focusedlayout width="200" height="140">
					<control type="image">
						<posx>20</posx>
						<posy>20</posy>
						<height>100</height>
						<width>160</width>
						<texture>button_nofocus.png</texture>
						<visible>!Control.HasFocus(9010)</visible>
					</control>
					<control type="image">
						<posx>20</posx>
						<posy>20</posy>
						<height>100</height>
						<width>160</width>
						<texture>list_focus.png</texture>
						<visible>Control.HasFocus(9010)</visible>
					</control>
					<control type="label">
						<posx>5</posx>
						<posy>0</posy>
						<height>140</height>
						<width>190</width>
						<label>$INFO[ListItem.Label]</label>
						<align>center</align>
						<aligny>center</aligny>
						<textcolor>white</textcolor>
						<font>font22</font>
					</control>
				</focusedlayout>
				<content>
					<item id="1">
						<label>$LOCALIZE[31011][CR]$LOCALIZE[31013]</label>
						<onclick>Control.Move(9010,1)</onclick>
						<icon></icon>
						<thumb></thumb>
						<visible>Library.HasContent(Movies)</visible>
					</item>
					<item id="2">
						<label>$LOCALIZE[31011][CR]$LOCALIZE[31014]</label>
						<onclick>Control.Move(9010,1)</onclick>
						<icon></icon>
						<thumb></thumb>
						<visible>Library.HasContent(TVShows)</visible>
					</item>
					<item id="3">
						<label>$LOCALIZE[31011][CR]$LOCALIZE[31016]</label>
						<onclick>Control.Move(9010,1)</onclick>
						<icon></icon>
						<thumb></thumb>
						<visible>Library.HasContent(Music)</visible>
					</item>
					<item id="4">
						<label>24001</label>
						<onclick>Control.Move(9010,1)</onclick>
						<icon></icon>
						<thumb></thumb>
						<visible>Integer.IsGreater(Container(2400).NumItems,0)</visible>
					</item>
				</content>
			</control>
		</control>
		<control type="group">
			<animation effect="slide" start="0,0" end="212,0" time="0" condition="String.IsEqual(Skin.AspectRatio,16:9) + !Library.HasContent(Movies) + !Library.HasContent(TVShows) + !Library.HasContent(Music) + !Integer.IsGreater(Container(2400).NumItems,0)">Conditional</animation>
			<animation effect="slide" start="0,0" end="323,0" time="0" condition="String.IsEqual(Skin.AspectRatio,4:3) + !Library.HasContent(Movies) + !Library.HasContent(TVShows) + !Library.HasContent(Music) + !Integer.IsGreater(Container(2400).NumItems,0)">Conditional</animation>
			<include content="HomeMenu" condition="String.IsEqual(Skin.AspectRatio,16:9)">
				<param name="panel-width">1000</param>
				<param name="layout-width">500</param>
				<param name="list-width">480</param>
				<param name="label-posx-left">110</param>
				<param name="label-posx-right">0</param>
				<param name="label-width">370</param>
				<param name="icon-posx-left">6</param>
				<param name="icon-posx-right">386</param>
				<param name="iconback-posx">383</param>
				<param name="iconback-width">98</param>
			</include>
			<include content="HomeMenu" condition="String.IsEqual(Skin.AspectRatio,4:3)">
				<param name="panel-width">832</param>
				<param name="layout-width">416</param>
				<param name="list-width">400</param>
				<param name="label-posx-left">90</param>
				<param name="label-posx-right">-20</param>
				<param name="label-width">330</param>
				<param name="icon-posx-left">-6</param>
				<param name="icon-posx-right">318</param>
				<param name="iconback-posx">326</param>
				<param name="iconback-width">75</param>
			</include>
			<control type="panel" id="9002">
				<include>Window_OpenClose_Animation</include>
				<posx>240</posx>
				<posy>185r</posy>
				<animation effect="fade" start="100" end="0" time="300" condition="Window.Next(Home)">WindowClose</animation>
				<animation effect="fade" end="100" start="0" time="300" condition="Window.Previous(Home)">WindowOpen</animation>
				<animation effect="slide" start="0,0" end="60,0" time="0" condition="String.IsEqual(Container(9002).NumItems,4)">conditional</animation>
				<animation effect="slide" start="0,0" end="120,0" time="0" condition="String.IsEqual(Container(9002).NumItems,3)">conditional</animation>
				<animation effect="slide" start="0,0" end="-100,0" time="0" condition="String.IsEqual(Skin.AspectRatio,4:3)">Conditional</animation>
				<width>802</width>
				<height>120</height>
				<onleft>9002</onleft>
				<onright>9002</onright>
				<onup>9001</onup>
				<ondown>20</ondown>
				<pagecontrol></pagecontrol>
				<scrolltime>300</scrolltime>
				<orientation>Horizontal</orientation>
				<itemlayout height="100" width="120">
					<control type="image">
						<posx>5</posx>
						<posy>0</posy>
						<width>90</width>
						<height>90</height>
						<texture>button_nofocus.png</texture>
					</control>
					<control type="image">
						<posx>10</posx>
						<posy>5</posy>
						<width>80</width>
						<height>80</height>
						<bordersize>12</bordersize>
						<texture>$INFO[ListItem.Icon]</texture>
						<aspectratio>keep</aspectratio>
					</control>
				</itemlayout>
				<focusedlayout height="100" width="120">
					<control type="image">
						<posx>5</posx>
						<posy>0</posy>
						<width>90</width>
						<height>90</height>
						<texture>list_focus.png</texture>
					</control>
					<control type="image">
						<posx>10</posx>
						<posy>5</posy>
						<width>80</width>
						<height>80</height>
						<bordersize>12</bordersize>
						<texture>$INFO[ListItem.Icon]</texture>
						<aspectratio>keep</aspectratio>
					</control>
				</focusedlayout>
				<content>
					<item>
						<label>13012</label>
						<onclick>Shutdown</onclick>
						<icon>icon_button_shutdown.png</icon>
					</item>
					<item>
						<label>20126</label>
						<onclick>System.LogOff</onclick>
						<icon>icon_button_logoff.png</icon>
						<visible>System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)</visible>
					</item>
					<item>
						<label>5</label>
						<onclick>ActivateWindow(Settings)</onclick>
						<icon>icon_button_settings.png</icon>
					</item>
					<item>
						<label>13376</label>
						<onclick>ActivateWindow(FileManager)</onclick>
						<icon>icon_button_filemanager.png</icon>
					</item>
					<item>
						<label>1036</label>
						<onclick>ActivateWindow(Favourites)</onclick>
						<icon>icon_button_favourites.png</icon>
					</item>
					<item>
						<label>20183</label>
						<onclick>ReloadSkin</onclick>
						<icon>icon_button_refresh.png</icon>
						<visible>false</visible>
					</item>
				</content>
			</control>
		</control>
		<include content="HomeRecentlyAddedInfo" condition="String.IsEqual(Skin.AspectRatio,16:9)">
			<param name="group-posx">640r</param>
			<param name="panel-width">630</param>
		</include>
		<include content="HomeRecentlyAddedInfo" condition="String.IsEqual(Skin.AspectRatio,4:3)">
			<param name="group-posx">430r</param>
			<param name="panel-width">420</param>
		</include>
	</controls>	
</window>