Combine duration and mpaa flag
#1
I am trying to combine my movie duration and the mpaa flag on the same line so that I can make it easier to center. The screenshot I've attached shows what I want to accomplish. I've moved them both manually to the position that they are in now. My duration is set up with the code:

Code:
<label>$INFO[ListItem.duration,, mins]</label>

and my mpaa flags are in the includes:

Code:
<include>VideoMPAAFlaggingConditions</include>

Is there a way to combine the two on the same line?

Image
Reply
#2
You could either:

Align the duration label to the right

or use auto-sizing labels-
PHP Code:
<control type="grouplist">
                <
visible>Control.IsVisible(52) + !IsEmpty(ListItem.Title)</visible>
                <
posx>25</posx>
                <
posy>556</posy>
                <
orientation>horizontal</orientation>
                <
control type="label">
                    <
posx>0</posx>
                    <
posy>0</posy>
                    <
width min="10" max="1034">auto</width>
                    <
height>100</height>
                    <
font>Font_TVShow</font>
                    <
textcolor>mainblue</textcolor>
                    <
label>[b]$LOCALIZE[31229$INFO[ListItem.Year][/b]</label>
                    <
visible>Container.Content(tvshows)</visible>
                </
control>
                <
control type="image">
                    <
posx>0</posx>
                    <
posy>0</posy>
                    <
width>70</width>
                    <
height>47</height>
                    <
texture>$INFO[listitem.studio,extras/Studios/,.png]</texture>
                    <
colordiffuse>mainblue</colordiffuse>
                    <
visible>Container.Content(tvshows)</visible>
                    <
animation effect="slide" start="0,0" end="-6,-12" time="0" tween="cubic" easing="inout" condition="Container.Content(tvshows)">Conditional</animation>
                </
control>
            </
control
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#3
Using the grouplist and autosizing did the trick. I don't really think that I need autosizing as the duration only grows by 1 digit and the mpaa flag grows to the right but it is a handy trick to have just in case. Thanks again for all the help.
Reply

Logout Mark Read Team Forum Stats Members Help
Combine duration and mpaa flag0