56
56
</control >
57
57
{% else %}
58
58
<control type =" image" >
59
+ <visible >String.IsEmpty({ { itemref|default (" ListItem" ) } }.Property(unwatched.count.large))</visible >
59
60
<posx >{ { xoff - wbg_w } }</posx >
60
61
<posy >{ { yoff|vscale } }</posy >
61
62
<width >{ { wbg_w } }</width >
62
63
<height >{ { wbg_h|vscale } }</height >
63
64
<texture >{ { wbg|default (" script.plex/white-square-bl-rounded_w.png" ) } }</texture >
64
65
<colordiffuse >{ { indicators.unwatched_count_bg|default (" FFCC7B19" ) } }</colordiffuse >
65
66
</control >
67
+ <control type =" image" >
68
+ <visible >!String.IsEmpty({ { itemref|default (" ListItem" ) } }.Property(unwatched.count.large))</visible >
69
+ <posx >{ { xoff - wbg_w - 16 } }</posx >
70
+ <posy >{ { yoff|vscale } }</posy >
71
+ <width >{ { wbg_w + 16 } }</width >
72
+ <height >{ { wbg_h|vscale } }</height >
73
+ <texture >{ { wbg|default (" script.plex/white-square-bl-rounded_w.png" ) } }</texture >
74
+ <colordiffuse >{ { indicators.unwatched_count_bg|default (" FFCC7B19" ) } }</colordiffuse >
75
+ </control >
66
76
{% endif %}
67
77
<control type =" label" >{ # this label uses a nasty hack to get a smaller fitting font size: use a larger font, increase the label size, then zoom it down #}
68
78
<animation effect =" zoom" start =" 40" end =" 40" time =" 0" reversible =" false" center =" auto" condition =" true" >Conditional</animation >
79
+ <visible >String.IsEmpty({ { itemref|default (" ListItem" ) } }.Property(unwatched.count.large))</visible >
69
80
<posx >{ { xoff - wbg_w - 16 } }</posx >
70
81
<posy >{ { (yoff - 8)|vscale } }</posy >
71
82
<width >{ { wbg_w + 32 } }</width >
76
87
<textcolor >{ { indicators.textcolor|default (" FF000000" ) } }</textcolor >
77
88
<label >$INFO[{ { itemref|default (" ListItem" ) } }.Property(unwatched.count)]</label >
78
89
</control >
90
+ <control type =" label" >{ # this label uses a nasty hack to get a smaller fitting font size: use a larger font, increase the label size, then zoom it down #}
91
+ <animation effect =" zoom" start =" 40" end =" 40" time =" 0" reversible =" false" center =" auto" condition =" true" >Conditional</animation >
92
+ <visible >!String.IsEmpty({ { itemref|default (" ListItem" ) } }.Property(unwatched.count.large))</visible >
93
+ <posx >{ { xoff - wbg_w - 36 } }</posx >
94
+ <posy >{ { (yoff - 8)|vscale } }</posy >
95
+ <width >{ { wbg_w + 56 } }</width >
96
+ <height >{ { (wbg_h + 16)|vscale } }</height >
97
+ <font >font32_title</font >
98
+ <align >center</align >
99
+ <aligny >center</aligny >
100
+ <textcolor >{ { indicators.textcolor|default (" FF000000" ) } }</textcolor >
101
+ <label >$INFO[{ { itemref|default (" ListItem" ) } }.Property(unwatched.count)]</label >
102
+ </control >
79
103
</control >
80
104
{% endif %}
81
105
{% endwith %}
0 commit comments