Skinning question (1 Viewer)

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,584
    2,978
    Nuenen
    Home Country
    Netherlands Netherlands
    Hi all,

    I'm trying to figure if, and how it's possible to do the following:

    In browsetheweb, there is an option to show/hide a statusbar at the bottom, and I want to put the logic for this in the skin instead of hard coded sizes in the plugin itself.

    What I have as goal is something along the lines of a statusbar-control which has a <visible>#btweb.statusvisible</visible> and the browsercomponent (rendered on control with predefined id) has a <height>576</height> if #btweb.statusvisible=true, or <height>476</height> if #btweb.statusvisible=false.

    What kind of event do I catch to get the change in size of the control with the browsercomponent? The Onpageload perhaps?

    Another thing that is bugging me is that when the webbrowser plugin is selected, first, mediaportal becomes invisible (showing the contents of the desktop) and after that, the browser is rendered. This only happens in full-screen mode. Is there anything available to make that transition smoother (ie no delay between mediaportal's dissappearance and the webbrowsers rendering)?
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,955
    1,264
    Saratov
    Home Country
    Russian Federation Russian Federation
    What about this:
    <height>iif(string.equals(#btweb.statusvisible, true), 576, 476)</height>
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,584
    2,978
    Nuenen
    Home Country
    Netherlands Netherlands
    Visibility icw string.equals works great!

    However, <height>iif(string.equals(#btWeb.statusvisible, true), 576, 476)</height> gives me a "GUIControlFactory.Create: iif(string.equals(#btWeb.StatusVisible, true), 576, 476) is not a valid value for Int32."

    So I have to calculate the remaining space according to the height of the statuslabel.

    There wasn't any height specified, so I added it.
    Result is
    Code:
        <control>
          <description>Status label</description>
          <type>label</type>
          <id>9</id>
          <posX>7</posX>
          <posY>540</posY>
          <label>#btWeb.status</label>
          <font>font12</font>
          <align>left</align>
          <textcolor>ffffffff</textcolor>
          <height>36</height>
          <visible>string.equals(#btWeb.statusvisible, true)</visible>
        </control>

    Is it according to specsguidelines to have a height on a label for this purpose?
    And should I use the size specified in
    Code:
        <control>
          <description>background image</description>
          <type>image</type>
          <id>1</id>
          <width>720</width>
          <height>576</height>
        </control>
    or should I add a new control with an id of <some random value>?
     
    Last edited:

    Users who are viewing this thread

    Top Bottom