[fixed] myHome horizontal menu-width not scaled to resolution (1 Viewer)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Using SVN 27452 my experience is, that the value buttonWidth is not scaled to skin-size when using the horizontal menu as shown in the attached screenshot. This menu is created in myHome.xml where you can have either a vertical or a horizontal menu.

    The screenshot shows the following horizontal menu:

    Code:
    <control>
    	<description>Menu</description>
    	<type>menu</type>
    	<animation effect="fade" time="300">WindowOpen</animation>
    	<animation effect="fade" time="300">WindowClose</animation>
    	<id>50</id>
    	<posX>0</posX>
    	<posY>750</posY>
    	<width>1920</width>
    	<textcolor>ffffffff</textcolor>
    	<textColorNoFocus>ffa9d0f7</textColorNoFocus>
    	<textAlign>center</textAlign>
    	<dimColor>80ffffff</dimColor>
    	<buttonTextXOff>0</buttonTextXOff>
    	<buttonTextYOff>0</buttonTextYOff>
    	<buttonOffset>0</buttonOffset>
    	<buttonFont>main_large</buttonFont>
    	<buttonHeight>100</buttonHeight>
    	<buttonWidth>260</buttonWidth>
    	<spaceBetweenButtons>0</spaceBetweenButtons>
    	<numberOfButtons>5</numberOfButtons>
    	<textureButtonFocus>blue_background.png</textureButtonFocus>
    	<textureButtonNoFocus>black.png</textureButtonNoFocus>
    	<hoverX>2000</hoverX>
    	<scrollTime>120</scrollTime>
    	<scrollTimeMin>50</scrollTimeMin>
    	<textureBackground>emtpy.png</textureBackground>
    	<onright>50</onright>
    	<onleft>10</onleft>
    	<horizontal>yes</horizontal>
    </control>

    As you can see, buttonHeight is set to 100, and scaled down when window is scaled down. buttonWidth remains the 260 value even if the window is resized.

    I'll try and look at the code, this is definitely not good from a skinners perspective.

    [EDIT]
    Patch posted in https://forum.team-mediaportal.com/...ntal-menu-not-scaled-x-axis-93537/#post714856
     

    Attachments

    • horizontal_menu_not_scaled_on_x.jpg
      horizontal_menu_not_scaled_on_x.jpg
      189.2 KB

    Users who are viewing this thread

    Top Bottom