Results 1 to 2 of 2

Thread: TV Guide layout, display 2 lines of Title & Subtitle

  1. #1
    Join Date
    Sep 2008

    TV Guide layout, display 2 lines of Title & Subtitle

    I finally got around to fixing something that has been bugging me for awhile. In the SelectedShowDetails box in the TV Guide, it only allocates one line for the Title and Subtitle (ie, the @showTitleSubtitle text element). Many shows far exceed this allowance, which was particularly annoying with shows were the Title filled the whole line, but what I really needed to see was the Episode title (ie, the Subtitle). I first toyed around with displaying the Title on the first line and the Subtitle on a second line, using the @showTitle and @showSubtitle elements sub added at my request awhile back, but then found some shows where the Title alone overran the allotted space, yet had no subtitle. I ended up keeping the Title & Subtitle together, and simply expanding the allotted space. I also decided I liked the show time in the smaller GeneralTextStyle instead of the Header style, which also allowed a little more room for the TitleSubtitle box.

    Here's the code for for your consideration, changes in red. That's for the SD TV Guide skin.xml. I don't have a good way to mess with the WS skin, but the adjustments should be similar.

        <CompositeImage name="SelectedShowDetails" size="96,22">
          <DrawCommonImage name="TextBackground" />
          <!-- icon and name -->
          <DrawText text="@showTitleSubtitle" loc="2,2" size="75,43" textStyle="GeneralTextHeaderStyle" align="Left" />
          <DrawText text="@duration" loc="53,4" size="45,25" textStyle="GeneralTextStyle" align="Right" />
          <DrawText text="@showDescription" loc="2,45" size="96,70" textStyle="GeneralTextStyle" align="Left" />
    edit: I guess I should have changed the vertical size of the @showDescription element; starting at 2,45 and sized at 96,70 means it will run off the bottom of the box. It probably doesn't matter, PVRX2 won't complain, but I guess it should be 50 or maybe 53.
    Last edited by johnsonx42; 2010-04-25 at 07:07 AM.
    NPVR Tech Support Sticky - -
    my server: NPVR 4.2.2/Win10Pro 32-bit/AMD A6-7400K/hvr-2250 & hvr-1250 with Winegard Flatwave antenna/Schedules Direct
    playback client: Google Nexus Player running Android 8/Kodi 16.1 (last version with good 1080i MPEG-2 playback) & X-NEWA 2.5.1

  2. #2
    Join Date
    Nov 2005
    Michigan, USA
    The WS version is a little more forgiving since there is more screen length to help fit the two together. If I remember, I'll roll the change into the installer (sigh, I have alot of these little things i need to get off my duff and publish).

    Oh, and the SD and WS version share the same code, so I changed it and will be set for the next release.....
    Last edited by Fatman_do; 2010-04-25 at 08:24 PM.

    HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
    Storage: 30GB OS & Recording, 160GB Post Processing & Archive
    Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
    Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver

    Moderator | Tutorials | Community Skin | CommunitySkin-SVN

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts