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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE displayplugin SYSTEM "../../../dtd/displayplugin.dtd">
<displayplugin x="0" y="0" width="100%" height="100%" fadetime="0" scaletvx="0" scaletvy="0" scaletvwidth="100%" scaletvheight="100%">
<!-- Available Variables time:
{time} timestring in hh:mm
{sec} current seconds
{min} current minutes
{hour} current hours
{hmins} current "hourminutes" to display an hour hand
{day} day in digits
{dayleadingzero} day in digits with leading 0
{dayname} Full name of the day
{daynameshort} Short 3 char name of the day
{month} month in digits with leading 0
{monthname} Full name of the month
{monthnameshort} 3 letter abbrivation of month name
{year} year in yyyy
-->
<viewelement name="time">
</viewelement>
<!-- Available Variables message:
{displaymessage} bool: message displayed?
{message} string: message to display
-->
<viewelement name="message">
<area condition="{displaymessage}" x="5%" y="80%" width="90%" height="15%" layer="98">
<drawimage imagetype="skinpart" path="messageblue" x="0" y="0" width="100%" height="100%" />
</area>
<area condition="{displaymessage}" x="5%" y="80%" width="90%" height="15%" layer="99">
<drawtext align="center" valign="center" font="{regular}" fontsize="40%" color="{clrWhite}" text="{message}" />
</area>
</viewelement>
<!-- Tokens available in background
{viewmode} int: enum Cover = 0, List = 1, Detail = 2
{selecteditembackground} image
{isdirectory}
{currentdirectorybackground} image
-->
<viewelement name="background">
<area x="0" y="0" width="100%" height="100%" layer="1">
<drawimage imagetype="skinpart" path="displaymenuback" x="0" y="0" width="100%" height="100%"/>
</area>
</viewelement>
<!-- Tokens available in header and infopane
Same as in browser
-->
<viewelement name="header">
<area layer="2" x="0" y="0" width="100%" height="15%">
<drawtext x="1%" y="5%" width="98%" font="{light}" fontsize="30%" color="{clrWhite}" text="Plex for VDR" />
<drawtext x="1%" y="20%" width="98%" font="{light}" fontsize="30%" color="{clrWhite}" text="{tabname}" />
<drawimage condition="{hasbanner}" imagetype="image" path="{banner}" x="50%" y="5%" width="50%" height="90%" />
</area>
</viewelement>
<viewelement name="infopane">
<area layer="2" x="75%" y="15%" width="25%" height="70%">
<drawtext x="1%" y="2%" width="98%" font="{light}" fontsize="5%" color="{clrWhite}" text="{title}" />
<drawimage condition="{hasart}++not{isepisode}" imagetype="image" path="{art}" x="0" y="8%" width="100%" height="35%" />
<drawimage condition="{hasthumb}++{isepisode}" imagetype="image" path="{thumb}" x="0" y="8%" width="100%" height="35%" />
</area>
<areascroll orientation="vertical" mode="forthandback" delay="1000" scrollspeed="medium" x="75%" y="50%" width="25%" height="40%" layer="3">
<drawtextbox condition="isset{summary}" x="0%" y="0%" width="100%" font="{light}" fontsize="8%" color="{clrWhite}" text="{summary}" />
</areascroll>
</viewelement>
<!-- Tokens available in browser
{viewmode} int: enum Cover = 0, List = 1, Detail = 2
{current} bool, currently active element
{title} string, Name of the element
{viewgroup} int: {UNDEF = 0, MOVIE = 1, SHOW = 2, SEASON = 3, EPISODE = 4, MUSIC, PHOTO};
A dummy actually only marks a "level up"
{isdummy} bool
If the item is a server: {isserver}
{isserver} bool
{serverstartpointname} string
{serverip} string
{serverport} int
{serverversion} string
Following tokens are avaliable if the item is a directory or video
{hasthumb} bool
{thumb} string, Image/Cover
{hasart} bool
{art} string, Fanart
If the Item is Directory following tokens are avaliable
The item is a directory if one of the following tokens are set: {isdirectory}, {isshow}, {isseason}
{isdirectory} Condition
{isshow} Condition, Show/Series
{summary} Description, plot, summary
{isseason} Condition
{summary} Description, plot, summary
If the item is a video following tokens are avaliable
The item is a video if one of the following tokens are set: {ismovie}, {isepisode}
{contentrating} string, star-rating
{viewoffset} int, minutes, last viewed position
{duration} int, minutes, total duration
{orginaltitle} original title
{summary} Description, plot, summary
{studio} Studio
{year} Year of production
{viewCount} Unseen if less than 1
{videoResolution} string (sd, 720, 1080)
{bitrate} int
{width} int
{height} int
{audioChannels} int
{aspectRatio} string (1.33, 1.78, 1.85, 2.35)
{audioCodec} string (mp3, mp2, ac3, dca) hint: dca==DTS
{videoCodec} string (mpeg4, msmpeg4, h264)
{container} string (avi, mp4, mkv)
{videoFrameRate} string (PAL, NTSC, 24p)
{ismovie}
{isepisode}
{seriestitle} Title of the series/show
{season} int, Season
{episode} int, Episode, season based
{hasbanner} bool, Bannerstyle?
{banner} Image path
{hasseriesthumb} bool, seriesthumb (seasoncover, seriescover)
{seriesthumb} Image path
-->
<grid name="browser" x="0" y="15%" width="75%" height="75%">
<area layer="2">
<drawrectangle condition="{current}" x="0" y="0" width="100%" height="100%" color="{clrGray}" />
</area>
<area layer="3" condition="{ismovie}">
<drawimage name="thumb" condition="not{hasthumb}" imagetype="skinpart" path="plexplaceholder" x="0" y="0" width="100%" height="76%" />
<drawimage name="thumb" condition="{hasthumb}" imagetype="image" path="{thumb}" x="0" y="0" width="100%" height="76%" />
<drawrectangle x="0" y="{height(thumb)}" width="{viewoffset}/{duration}*{areawidth}" height="2%" color="{clrBlue}" />
<drawtext name="title" x="0" y="{height(thumb)}*1.1" width="100%" font="{bold}" fontsize="6%" color="{clrWhite}" text="{title}" />
<drawtext x="0" y="{posy(title)} + {height(title)}" width="50%" font="{light}" fontsize="6%" color="{clrWhite}" text="{year}" />
<drawtext x="50%" y="{posy(title)} + {height(title)}" width="50%" font="{light}" fontsize="6%" color="{clrWhite}" text="{duration} min" />
</area>
<area layer="3" condition="{isepisode}" >
<drawimage name="thumb" condition="not{hasseriesthumb}" imagetype="skinpart" path="plexplaceholder" x="0" y="0" width="100%" height="76%" />
<drawimage name="thumb" condition="{hasseriesthumb}" imagetype="image" path="{seriesthumb}" x="0" y="0" width="100%" height="76%" />
<drawrectangle x="0" y="{height(thumb)}" width="{viewoffset}/{duration}*{areawidth}" height="2%" color="{clrBlue}" />
<drawtext condition="eq({viewgroup}, 4)" name="title" x="0" y="{height(thumb)}*1.1" width="100%" font="{bold}" fontsize="6%" color="{clrWhite}" text="{title}" />
<drawtext condition="lt({viewgroup}, 4)" name="title" x="0" y="{height(thumb)}*1.1" width="100%" font="{bold}" fontsize="6%" color="{clrWhite}" text="{seriestitle}" />
<drawtext name="season" x="0" y="{posy(title)} + {height(title)}" width="50%" font="{light}" fontsize="6%" color="{clrWhite}" text="{printf('S%02d E%02d', season, episode)}" />
</area>
<area layer="3" condition="{isdirectory}" >
<drawimage name="thumb" condition="not{hasthumb}" imagetype="skinpart" path="plexplaceholder" x="0" y="0" width="100%" height="76%" />
<drawimage name="thumb" condition="{hasthumb}" imagetype="image" path="{thumb}" x="0" y="0" width="100%" height="76%" />
<drawtext name="title" x="0" y="{height(thumb)}*1.1" width="100%" font="{bold}" fontsize="6%" color="{clrWhite}" text="{title}" />
</area>
<area layer="3" condition="{isshow}" >
<drawimage name="thumb" condition="not{hasthumb}" imagetype="skinpart" path="plexplaceholder" x="0" y="0" width="100%" height="76%" />
<drawimage name="thumb" condition="{hasthumb}" imagetype="image" path="{thumb}" x="0" y="0" width="100%" height="76%" />
<drawtext name="title" x="0" y="{height(thumb)}*1.1" width="100%" font="{bold}" fontsize="6%" color="{clrWhite}" text="{title}" />
</area>
<area layer="3" condition="{isseason}" >
<drawimage name="thumb" condition="not{hasthumb}" imagetype="skinpart" path="plexplaceholder" x="0" y="0" width="100%" height="76%" />
<drawimage name="thumb" condition="{hasthumb}" imagetype="image" path="{thumb}" x="0" y="0" width="100%" height="76%" />
<drawtext name="title" x="0" y="{height(thumb)}*1.1" width="100%" font="{bold}" fontsize="6%" color="{clrWhite}" text="{title}" />
</area>
<area layer="3" condition="{isdummy}" >
<drawimage name="thumb" imagetype="skinpart" path="plexplaceholder" x="0" y="0" width="100%" height="76%" />
<drawtext name="title" x="0" y="{height(thumb)}*1.1" width="100%" font="{bold}" fontsize="6%" color="{clrWhite}" text="{title}" />
</area>
<area layer="3" condition="{isserver}" >
<drawimage name="thumb" imagetype="skinpart" path="plexplaceholder" x="0" y="0" width="100%" height="76%" />
<drawtext name="title" x="0" y="{height(thumb)}*1.1" width="100%" font="{bold}" fontsize="6%" color="{clrWhite}" text="{title}" />
<drawtext x="0" y="{posy(title)} + {height(title)}" width="100%" font="{light}" fontsize="6%" color="{clrWhite}" text="{serverstartpointname}" />
</area>
</grid>
<!-- Available Variables Footer:
{red1} true if red button is button 1
{red2} true if red button is button 2
{red3} true if red button is button 3
{red4} true if red button is button 4
{green1} true if green button is button 1
{green2} true if green button is button 2
{green3} true if green button is button 3
{green4} true if green button is button 4
{yellow1} true if yellow button is button 1
{yellow2} true if yellow button is button 2
{yellow3} true if yellow button is button 3
{yellow4} true if yellow button is button 4
{blue1} true if blue button is button 1
{blue2} true if blue button is button 2
{blue3} true if blue button is button 3
{blue4} true if blue button is button 4
{red} label of red button
{green} label of green button
{yellow} label of yellow button
{blue} label of blue button
-->
<viewelement name="footer">
<area condition="{red1}" x="0" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonred" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{red1}" x="0" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{red}" />
</area>
<area condition="{green1}" x="0" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttongreen" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{green1}" x="0" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{green}" />
</area>
<area condition="{yellow1}" x="0" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonyellow" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{yellow1}" x="0" y="90%" width="25%" height="10%" layer="4">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{yellow}" />
</area>
<area condition="{blue1}" x="0" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonblue" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{blue1}" x="0" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{blue}" />
</area>
<area condition="{red2}" x="25%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonred" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{red2}" x="25%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{red}" />
</area>
<area condition="{green2}" x="25%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttongreen" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{green2}" x="25%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{green}" />
</area>
<area condition="{yellow2}" x="25%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonyellow" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{yellow2}" x="25%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{yellow}" />
</area>
<area condition="{blue2}" x="25%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonblue" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{blue2}" x="25%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{blue}" />
</area>
<area condition="{red3}" x="50%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonred" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{red3}" x="50%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{red}" />
</area>
<area condition="{green3}" x="50%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttongreen" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{green3}" x="50%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{green}" />
</area>
<area condition="{yellow3}" x="50%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonyellow" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{yellow3}" x="50%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{yellow}" />
</area>
<area condition="{blue3}" x="50%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonblue" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{blue3}" x="50%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{blue}" />
</area>
<area condition="{red4}" x="75%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonred" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{red4}" x="75%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{red}" />
</area>
<area condition="{green4}" x="75%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttongreen" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{green4}" x="60%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{green}" />
</area>
<area condition="{yellow4}" x="75%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonyellow" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{yellow4}" x="75%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{yellow}" />
</area>
<area condition="{blue4}" x="75%" y="90%" width="25%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="buttonblue" align="center" valign="center" width="90%" height="60%"/>
</area>
<area condition="{blue4}" x="75%" y="90%" width="25%" height="10%" layer="3">
<drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{blue}" />
</area>
</viewelement>
</displayplugin>
|