How to - hide a sortbutton when not focussed? (1 Viewer)

VdR

MP Donator
  • Premium Supporter
  • October 17, 2006
    612
    16
    Belgium
    Home Country
    Netherlands Netherlands
    I'm hiding some menu buttons when they are not focused. So they are on the bottom of the menu stack but don't show until you scroll down there.

    Works great for normal buttons using 'textureNoFocus' and 'textcolorNoFocus'. But for sortbuttons, how do I hide the little up or down arrow. 'textureAscendingNoFocus' does not exist?

    VdR
     

    spuck

    Community Skin Designer
    April 6, 2007
    397
    59
    Home Country
    Sweden Sweden
    try these
    Code:
        <textureNoFocus>-</textureNoFocus>
        <textureAscending>-</textureAscending>
        <textureDescending>-</textureDescending>
     

    VdR

    MP Donator
  • Premium Supporter
  • October 17, 2006
    612
    16
    Belgium
    Home Country
    Netherlands Netherlands
    Yes of course, but that way the ascending/descending arrow doesn't show either when the button does have focus. The ascendig/descending arrow only shws when itself has focus, so it is hard to find.

    Then again I did use this as a work arround. Why would you want to change the sort direction anyway ...

    VdR
     

    spuck

    Community Skin Designer
    April 6, 2007
    397
    59
    Home Country
    Sweden Sweden
    so what's the problem? just have an arrow on the focused button texture and no arrow on the not-focused button texture.
     

    VdR

    MP Donator
  • Premium Supporter
  • October 17, 2006
    612
    16
    Belgium
    Home Country
    Netherlands Netherlands
    The problem is that the ascending/decsending arrow in the sortbutton either remains visible if the sortbutton and sortbutton text are hidden, which is no good.

    Or, the ascending/descending arrow is not visible when the sortbutton has focus but only when the ascending/decending arrow itself has focus, meaning it is hard to find. Hard to find is a minor thing though, I can live with that.

    VdR
     

    spuck

    Community Skin Designer
    April 6, 2007
    397
    59
    Home Country
    Sweden Sweden
    Maybe I'm just not understanding your posts entirely or something but what you want is:

    arrow (up/down) only visible (arrow unfocused or focused) when sortbutton is selected

    if that is correct this is what you do
    make a new texture with the unfocused arrow
    <textureFocus>new image.png</textureFocus>
    then you remove the arrows when the arrow is not selected since you wont need it now that that arrow is in the texture
    <textureAscending>-</textureAscending>
    <textureDescending>-</textureDescending>
    Done.

    Does that help?
     

    VdR

    MP Donator
  • Premium Supporter
  • October 17, 2006
    612
    16
    Belgium
    Home Country
    Netherlands Netherlands
    Yes that could work.

    Make the unfocussed ascending/descending arrow invisible and put it on the focussed sortbutton texture instead. As soon as not only the sortbutton but also the ascending/descending arrow has focus the focussed ascending/descending arrow will show up on top.

    Only thing; the texture for the focussed sortbutton cannot show the actual current sorting direction.

    Alternatively, maybe I can put the 'invisible' buttons in a group and use animation controls.

    Thanks Spuck.

    VdR
     

    Users who are viewing this thread

    Top Bottom