Skinning the EPG / render order? (1 Viewer)

Rob Hexenmeister

MP Donator
  • Premium Supporter
  • May 12, 2011
    192
    42
    Slaithwaite
    Home Country
    United Kingdom United Kingdom
    Country flag
    Evening all,

    I am having a little bit of bother skinning the EPG. The specific issue is the border highlight. It shows on all the items except those selected for recording. I was wondering if that is because the red colouring of the programme scheduled for recording is rendered over the top of the highlight?

    This is quite helpful on skinning the EPG:

    What it lacks is recommended dimensions, and transparent/masked areas of the .png graphics

    Can anyone help on this?

    Many thanks
    RH
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,349
    1,428
    Southampton
    Home Country
    United Kingdom United Kingdom
    Country flag
    The specific issue is the border highlight. It shows on all the items except those selected for recording.
    This works correctly for me. The first screenshot below shows the border highlight for a programme that is currently recording, and the second screenshot shows the border highlight for a programme scheduled to record in the future:

    current_recording.JPG future_recording.JPG

    Strangely, this all seems to happen without defining anything specific to the border highlight. The only odd aspect that I noticed is the texture (image) that is used for the border highlight, namely
    tvguide_highlight_border.png. This is a 1x1 single-pixel image. It is not a frame. This suggests to me that internally the skin engine is using the support for borders.

    Very few skins use borders, because mostly borders do not work correctly. However, there is one combination of settings that does work correctly, and that is when the image used to fill the border frame is a single pixel. In this case, the skin engine simply repeats the single pixel horizontally and vertically as many times as necessary to fill the border frame. This gives the border frame the important property that the thickness of the frame remains constant as the frame is resized to fit different shapes and/or different sizes (this is exactly the behaviour that you want for the EPG, where the width of the EPG grid cell varies according to the duration of the programme).

    -- from CyberSimian in the UK
     

    Rob Hexenmeister

    MP Donator
  • Premium Supporter
  • May 12, 2011
    192
    42
    Slaithwaite
    Home Country
    United Kingdom United Kingdom
    Country flag
    Best reference is DefaultWideHD and ofc PureVisionHD, but Titan should do as well ;)
    Thank you Catavolt - actually I have been looking at Titan. Also DefaultWide (but not HD as my theme is built on top of DefaultWide)

    It's baffling when you get these intermittent problems. The highlight is visible on programmes not scheduled to record, but invisible on those coloured in red. I was wondering if it were rendering order, but you would think not if other skins don't behave the same way.

    On with the Sherlock Holmes hat to see what I can find....
     

    Rob Hexenmeister

    MP Donator
  • Premium Supporter
  • May 12, 2011
    192
    42
    Slaithwaite
    Home Country
    United Kingdom United Kingdom
    Country flag
    This works correctly for me. The first screenshot below shows the border highlight for a programme that is currently recording, and the second screenshot shows the border highlight for a programme scheduled to record in the future:

    View attachment 209149 View attachment 209150

    Strangely, this all seems to happen without defining anything specific to the border highlight. The only odd aspect that I noticed is the texture (image) that is used for the border highlight, namely
    tvguide_highlight_border.png. This is a 1x1 single-pixel image. It is not a frame. This suggests to me that internally the skin engine is using the support for borders.

    Very few skins use borders, because mostly borders do not work correctly. However, there is one combination of settings that does work correctly, and that is when the image used to fill the border frame is a single pixel. In this case, the skin engine simply repeats the single pixel horizontally and vertically as many times as necessary to fill the border frame. This gives the border frame the important property that the thickness of the frame remains constant as the frame is resized to fit different shapes and/or different sizes (this is exactly the behaviour that you want for the EPG, where the width of the EPG grid cell varies according to the duration of the programme).

    -- from CyberSimian in the UK
    Thank you, yes, I identified the highlight png and it seems to work on other skins apart from DefaultWide (not HD) which is the one I am building my theme on. I am rather baffled by this inconsistency, especially between red coloured programmes and green/uncoloured ones. I do hate it when there is no apparent logic to a problem!

    I will report back. (You don't happen to know the texture.png that is used to highlight recordings scheduled do you? I may have a play with that)

    RH
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,349
    1,428
    Southampton
    Home Country
    United Kingdom United Kingdom
    Country flag
    I identified the highlight png and it seems to work on other skins apart from DefaultWide (not HD) which is the one I am building my theme on.
    The skin that I have been developing for my own use is also based on the old "DefaultWide" (not "DefaultWideHD"), but the border highlight works correctly for me. :confused:

    You don't happen to know the texture.png that is used to highlight recordings scheduled do you? I may have a play with that
    All of the textures used by the EPG have names that begin "tvguide_" in the "Media" folder within the skin folder. There are 64 such files in my media folder (inherited from "DefaultWide"), but that does not mean that they are all used. The ones that indicate programmes scheduled to record have "rec" in the name, and tvguide_recButton_Focus_middle is certainly red. But there are other red buttons, so it is not obvious which one is used for the normal case.

    You may need to change an image file temporarily and then test, to find the ones that are used. But remember that if you change any image files, you need to delete the cache files for your skin, otherwise MP will continue to use the old images. MP will regenerate the cache files automatically if they don't exist when MP starts.

    It is not obvious why your border highlight is not appearing for programmes scheduled to record. :confused:

    -- from CyberSimian in the UK
     

    Rob Hexenmeister

    MP Donator
  • Premium Supporter
  • May 12, 2011
    192
    42
    Slaithwaite
    Home Country
    United Kingdom United Kingdom
    Country flag
    It is not obvious why your border highlight is not appearing for programmes scheduled to record. :confused:
    tvguide_recButton_Focus_middle
    Best reference is DefaultWideHD

    Pleased to say that I have solved this, and believe it or not, it was a fault with the recording pin control on the xml which had the knock on effect with the highlight, which only goes to show the sensitivity of the EPG xml. If nothing else you confirmed what I thought and where I needed to look and thanks to your input, it is now rectified.
     

    Users who are viewing this thread

    Similar threads

    Thanks for this new release of MP. The link on the presentation page of the new version is incorrect. It goes on the MP 1.24 thread.
    Thanks for this new release of MP. The link on the presentation page of the new version is incorrect. It goes on the MP 1.24 thread.
    We have just released MediaPortal 1.25 Final - Summer 2020 Edition Highlights of this release Bugfixes: [MP1-4966] - Update...
    Replies
    1
    Views
    2K
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-4966] - Update Bass...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    0
    Views
    2K
    Updated one of my MP installations (from 1.15) to 1.24 Final recently. It went perfectly smoothly, and fixed a few problems I had been having with video playback. Updated my plugins and Streamed MP skin, and not a single issue. Thank you for all your hard work.
    Updated one of my MP installations (from 1.15) to 1.24 Final recently. It went perfectly smoothly, and fixed a few problems I had...
    We have just released MediaPortal 1.24 Final Highlights of this release Bugfixes: [MP1-4969] - Fix typo in MyMusic DB Index...
    Replies
    3
    Views
    3K
    Can somebody confirm that MP is crashing when you jump forward with right arrow while playing a DVD-Iso with internal player?
    Can somebody confirm that MP is crashing when you jump forward with right arrow while playing a DVD-Iso with internal player?
    We have just released MediaPortal 1.22 Final Highlights of this release (relative to 1.21 Final release): Bugfixes: We fixed an...
    Replies
    2
    Views
    3K
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-4969] - Fix typo in...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    0
    Views
    2K
    Top Bottom