[fixed] new feature for StackLayout not quite done... (1 Viewer)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Denmark Denmark
    • Thread starter
    • Moderator
    • #13
    If I add a button of type "togglebutton" I still cannot get it to work...would you be kind and try adding this button right in the middle of yours (to test):

    Code:
    <control>
    	<description>Testbutton</description>
    	<type>togglebutton</type>
    	<id>1</id>
    	<hyperlink>96742</hyperlink>
    	<label>Just a test</label>
    	<onright>50</onright>
    	<onup>9</onup>
    	<ondown>9112</ondown>
    </control>
    It doesn't matter if you set the visibility or not, when you hide show the other buttons, it simply just doesn't move up/down.
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Croatia Croatia
    Country flag
    Yea, one "if GUIButtonControl" was left in the code :) I reworked it so that we use Children as a list of controls now (instead of private _controls list). Tested with your button and it worked as expected.

    Try it at r27114. Thanks for your testing :)
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,912
    9,272
    Lanzarote
    Germany Germany
    Country flag
    AW: new feature for StackLayout not quite done...

    Hmm, made it in TV section of Blue4Wide trying to hide the Teletext button gap when TV is off. Hiding works, but when TV is turned on, the Teletext button overlaps the following button (which is for TVSeries).
    <control>
    <type>group</type>
    <layout>StackLayout(0, Vertical, true)</layout>
    <!--layout>StackLayout</layout-->
    <description>group element</description>
    <animation effect="fade" time="150">WindowOpen</animation>
    <animation effect="fade" time="150">WindowClose</animation>
    <posX>71</posX>
    <posY>121</posY>
    <control>
    <description>TV On/Off button</description>
    <type>togglebutton</type>
    <id>8</id>
    <label>707</label>
    <onup>17</onup>
    <ondown>7</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Channel button</description>
    <type>button</type>
    <id>7</id>
    <label>602</label>
    <onup>8</onup>
    <ondown>2</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>TVGuide</description>
    <type>button</type>
    <id>2</id>
    <label>600</label>
    <hyperlink>600</hyperlink>
    <onup>7</onup>
    <ondown>11</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Recordings</description>
    <type>button</type>
    <id>11</id>
    <label>604</label>
    <hyperlink>603</hyperlink>
    <onup>2</onup>
    <ondown>3</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Record Now</description>
    <type>button</type>
    <id>3</id>
    <label>601</label>
    <onup>11</onup>
    <ondown>14</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Active Recordings</description>
    <type>button</type>
    <id>14</id>
    <label>200052</label>
    <onup>3</onup>
    <ondown>9</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Active Streams</description>
    <type>button</type>
    <id>9</id>
    <label>692</label>
    <onup>14</onup>
    <ondown>10</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Scheduler</description>
    <type>button</type>
    <id>10</id>
    <label>603</label>
    <hyperlink>601</hyperlink>
    <onup>9</onup>
    <ondown>12</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Search</description>
    <type>button</type>
    <id>12</id>
    <label>137</label>
    <hyperlink>604</hyperlink>
    <onup>10</onup>
    <ondown>13</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Teletext</description>
    <type>button</type>
    <id>13</id>
    <label>1441</label>
    <onup>12</onup>
    <ondown>76</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>TV Shows</description>
    <type>button</type>
    <id>76</id>
    <hyperlink>9811</hyperlink>
    <label>1300</label>
    <onup>13</onup>
    <ondown>8</ondown>
    <visible>plugin.IsEnabled(MP-TV Series)</visible>
    </control>
    Screenshots:
     

    Attachments

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Croatia Croatia
    Country flag
    This has to do with the fact that this is the last element (control) and with some error in indexing the controls. Will take a look. Nice to see this one tested this much :)
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,912
    9,272
    Lanzarote
    Germany Germany
    Country flag
    AW: new feature for StackLayout not quite done...

    Just tested it and YES! it works! Will test a bit further, but when it works with the teletext gap, it should work anywhere! BIG :D
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Denmark Denmark
    • Thread starter
    • Moderator
    • #19
    Thank you so much, happy holidays to you all!
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    Top Bottom