Cirrus Extended mods - a couple of comments

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
el_Paraguayo Offline
Donor
Posts: 656
Joined: Feb 2011
Reputation: 15
Location: London, UK
Post: #1
I've been tweaking the skin to match my needs, but there are a couple of things that you may wish to update in the main code (or you could just say I'm being a perfectionist!). I've shown my crude fixes below.

(In all code below, watch out for the spaces in the "[ COLOR]" boxes.)

Home.xml - the time/date/weather text is not centered in the screen.
Code:
<!-- Weather, time etc  -->
    <control type="group">
    <visible>!Skin.HasSetting(homeNoClock)</visible>
    <posx>400</posx>
    <posy>15</posy>
    <width>600</width>
    <align>left</align>
    <control type="label">
      <description>time label</description>
[b]      <posx>-400</posx>
      <posy>0</posy>
      <width>1280</width>
      <height>28</height>
      <align>center</align>[/b]
      <aligny>top</aligny>
      <font>cirrus_30</font>
      <textcolor>white</textcolor>
      <shadowcolor>black</shadowcolor>
    </control>
          <!-- Changes End Butchabay MOD 1.2.0 -->
    </control>

ViewsVideoCompact.xml: The duration field has "mins" outside of the InfoLabel so, when there's no duration (e.g. on the parent folder link) the box still shows "mins" i.e.:
Code:
<label>$INFO[ListItem.Duration,\[ COLOR=orange]$LOCALIZE[31054]:[ /COLOR][b] , mins][/b]</label>

I've also tweaked DialogSeekBar.xml as follows so it looks like this:
[Image: 10e22x2.png]

I added the "Current time" and "End time" if you didn't see it...

(I haven't used the $LOCALIZE on this, so if you want to incorporate it, that'll need some work).

My code is:
Code:
        <control type="group">
            <control type="image"> <!-- background -->
                <posx>0</posx>
                <posy>0</posy>
                <width>1280</width>
                <height>245</height>
                <aspectratio>stretch</aspectratio>
                <texture>OSDbackground.png</texture>
            </control>
            
            [b]<!-- el_Paraguayo Mod -->
                <control type="group">
                    <posx>20</posx>
                    <posy>70</posy>
                    <control type="label">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>200</width>
                        <height>25</height>
                        <label>Current Time: [ COLOR=orange]$INFO[System.Time][ /COLOR]</label>
                        <align>left</align>
                        <aligny>center</aligny>
                        <font>cirrus_20</font>
                        <textcolor>white</textcolor>
                        <shadowcolor>black</shadowcolor>
                    </control>

                    <control type="label">
                        <posx>1240</posx>
                        <posy>0</posy>
                        <width>200</width>
                        <height>25</height>
                        <label>End Time: [ COLOR=orange]$INFO[Player.FinishTime][ /COLOR]</label>
                        <align>right</align>
                        <aligny>center</aligny>
                        <font>cirrus_20</font>
                        <textcolor>white</textcolor>
                        <shadowcolor>black</shadowcolor>
                    </control>
                </control>
<!-- end mod -->[/b]

There's another thread about showing additional info for MythTV recordings in the List view, but here's how it looks again:
[Image: hrjywh.png]

and here's the code. NB. This works with MythTV recordings as the thumbnails are landscape images. I may need to group these controls with a <visible> tag to restrict this...

Code:
[b]<!-- el_Paraguayo mods -->

    <!-- Add plot -->
    <control type="textbox">
     <posx>0</posx>
     <posy>460</posy>
     <width>360</width>
     <height>88</height>
     <autoscroll delay="3000" time="1000" repeat="5000">true</autoscroll>
     <font>cirrus_20</font>
     <label>$INFO[ListItem.Plot]</label>
    </control>

    <!-- Show duration -->
    <control type="label">
     <posx>0</posx>
     <posy>555</posy>
     <width>260</width>
     <height>25</height>
     <font>cirrus_20</font>
     <textcolor>orange</textcolor>
     <label>$INFO[ListItem.Duration,[ COLOR=white]Duration: [ /COLOR]]</label>
    </control>

    <!-- Title -->
    <control type="label">
     <posx>0</posx>
     <posy>175</posy>
     <width>260</width>
     <height>25</height>
     <font>cirrus_20</font>
     <textcolor>orange</textcolor>
     <label>$INFO[ListItem.TVShowTitle,[ COLOR=white]Title: [ /COLOR]]</label>
    </control>

    <!-- MythTV Episode Title -->
    <!-- (for some reason this is in the PlotOutline infolabel) -->
    <control type="label">
     <posx>0</posx>
     <posy>205</posy>
     <width>360</width>
     <height>25</height>
     <font>cirrus_20</font>
     <textcolor>orange</textcolor>
     <label>$INFO[ListItem.PlotOutline,[ COLOR=white]Episode: [ /COLOR]]</label>
     <visible>SubString(Container.FolderPath,myth,Left)</visible>
    </control>

    <!-- All other episode titles -->
    <control type="label">
     <posx>0</posx>
     <posy>205</posy>
     <width>360</width>
     <height>25</height>
     <font>cirrus_20</font>
     <textcolor>orange</textcolor>
     <label>$INFO[ListItem.Episode,[ COLOR=white]Episode: [ /COLOR]]</label>
     <visible>!SubString(Container.FolderPath,myth,Left)</visible>
    </control>



    <!-- Recording Date -->
    <control type="label">
     <posx>0</posx>
     <posy>235</posy>
     <width>460</width>
     <height>25</height>
     <font>cirrus_20</font>
     <textcolor>orange</textcolor>
     <label>$INFO[ListItem.Date,[ COLOR=white]Recording Date: [ /COLOR]]</label>
    </control>

<!-- End mods -->[/b]

        <!-- GenreFanart Mod -->

Next up, I'd like to take on the window that appears when I enter a time to seek to in videos (no idea what the function's called or which xml file to edit) - this window seems a bit too plain for the rest of the skin.

el_P

MythSuspendAlarm: Suspend and wake for next MythTV recording.
BBC Live Football Scores: Football scores notifications.
Random Movie Script: Play random movies from library.
(This post was last modified: 2011-05-15 19:15 by el_Paraguayo.)
find quote
N.O.W.A.L.L Offline
Fan
Posts: 439
Joined: Feb 2011
Reputation: 20
Location: Lausanne Switzerland
Post: #2
Thanks for the END TIME function, I was really missing this one!
find quote
el_Paraguayo Offline
Donor
Posts: 656
Joined: Feb 2011
Reputation: 15
Location: London, UK
Post: #3
No problem.

I just remembered that I also had to shorten the progress bar in DialogSeekBar.xml to do that.

Code:
            <control type="group"> <!-- progress bar -->
                <posx>20</posx>
                <posy>20</posy>
                <align>left</align>
                <control type="progress" id="23">
                    <description>Progressbar</description>
                    [b]<posx>175</posx>[/b]
                    <posy>55</posy>
                    [b]<width>890</width>[/b]
                    <height>15</height>
                    <info>Player.Progress</info>
                    <visible>true</visible>
                </control>

MythSuspendAlarm: Suspend and wake for next MythTV recording.
BBC Live Football Scores: Football scores notifications.
Random Movie Script: Play random movies from library.
find quote
butchabay Offline
Skilled Skinner
Posts: 3,848
Joined: Mar 2010
Reputation: 75
Location: Planet Crematoria
Post: #4
Thanx for that, i'll see if i'll get the time to implement your additions for the next update.
find quote
N.O.W.A.L.L Offline
Fan
Posts: 439
Joined: Feb 2011
Reputation: 20
Location: Lausanne Switzerland
Post: #5
I hope you'll have time, the END TIME function in the progress bar is definitely a must-have
[Image: have-a-nice-day-icon.png]
find quote
butchabay Offline
Skilled Skinner
Posts: 3,848
Joined: Mar 2010
Reputation: 75
Location: Planet Crematoria
Post: #6
N.O.W.A.L.L Wrote:I hope you'll have time, the END TIME function in the progress bar is definitely a must-have
[Image: have-a-nice-day-icon.png]

Already DONE !

See HERE:
find quote