Please change GUIPropertyManager.SetProperty (1 Viewer)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Hi...

    When using GUIPropertyManager.SetProperty(property, value); to put a BLANK value in a label the label is not blanked.


    <label>#mylabel</label>

    GUIPropertyManager.SetProperty("#mylabel", ""); does not insert a blank value in #mylabel (as one would expect) but keeps the #mylabel.

    This makes it impossible to control visibility of elements from plugins based on a value being/not being there.
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    • Thread starter
    • Moderator
    • #2
    Would a dev care to comment? Perhaps this should be in the bug-section...
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    • Thread starter
    • Moderator
    • #5
    use string.Empty instead of "" then it works

    It doesn't seem to work, unfortunately.


    Code:
    <control>
    	<description>dummy label for weather</description>
    	<type>label</type>
    	<id>332</id>
    	<posX>200</posX>
    	<posY>400</posY>
    	<label>#showweather</label>
    </control>


    Code:
    GUIPropertyManager.SetProperty("#showweather", string.Empty);

    This code will still show #showweather as label on the control.
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    So this does only apply for normal labels?
    (as tontsa reported that textboxscrollup is working okay)
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    • Thread starter
    • Moderator
    • #7
    So this does only apply for normal labels?
    (as tontsa reported that textboxscrollup is working okay)

    I would like to know how the code for textboxscrollup looks like, because I really can't figure out how it should work :)
     

    Users who are viewing this thread

    Top Bottom