Reply to thread

Right, new patch attached that doesn't use a timer to hide the skin property. Should be even simper to fine-tune.


Is the "RenderLabel" function the right place to place a GUIPropertyManager.SetProperty call? The way I see it it's the only placed that is updated when selected item changes...


The XML needs to have a delay on the animation, so it should look like this instead:


[CODE]

    <control>

        <description>listscroller bg</description>

        <type>image</type>

        <id>1</id>

        <posX>600</posX>

        <posY>678</posY>

        <width>78</width>

        <height>90</height>

        <texture>listscroller_bg.png</texture>

        <visible>facadeview.list+string.contains(#scrolling.up,yes)|string.contains(#scrolling.down,yes)</visible>

        <animation effect="slide" start="0,50" end="0,0" delay="200" time="200">visible</animation>

    </control>

   

    <control>

        <animation effect="fade" time="100">WindowOpen</animation>

        <animation effect="fade" time="100">WindowClose</animation>

        <type>label</type>

        <id>1</id>

        <posX>600</posX>

        <posY>680</posY>

        <width>78</width>

        <height>90</height>

        <label>#selecteditem.firstchar</label>

        <textcolor>6aa5cb</textcolor>

        <font>Segoe Light20</font>

        <visible>facadeview.list+string.contains(#scrolling.up,yes)|string.contains(#scrolling.down,yes)</visible>

        <animation effect="slide" start="0,50" end="0,0" delay="200" time="200">visible</animation>

        <align>center</align>

        <valign>middle</valign>

    </control>

[/CODE]


Can't see that my changes have affected CPU or memory-usage.


Top Bottom