Button label starts with number (1 Viewer)

cane

MP Donator
  • Premium Supporter
  • October 20, 2007
    129
    48
    Zagreb
    Home Country
    Croatia Croatia
    While developing plugin I came to strange problem, I want to have label on my button that starts with number, here's the code from skin file:
    Code:
        <control>
          <description>7dana</description>
          <type>button</type>
          <id>54</id>
          <posX>50</posX>
          <posY>220</posY>
          <width>100</width>
          <label>7 dana</label>
          <onleft>53</onleft>
          <onright>51</onright>
          <onup>53</onup>
          <ondown>51</ondown>
        </control>
    But when run in MP 1.0.0 it doesn't show any text on button label. The button works normally, except it's unlabeled.
    Am I doing something wrong, or is it a bug?
     

    rekenaar

    Retired Team Member
  • Premium Supporter
  • December 17, 2006
    4,421
    805
    Home Country
    South Africa South Africa
    I think if it starts with a number, MP wants to look up the text in the strings-file.
    If you put a space in front of the number, it should work. Not sure if there is a better way - anyone?
     

    cane

    MP Donator
  • Premium Supporter
  • October 20, 2007
    129
    48
    Zagreb
    Home Country
    Croatia Croatia
    With space in front it works, but it also shows space. If there's no other solution it'll stay this way.
    Thanks for the tip rekenaar.
     

    Users who are viewing this thread

    Top Bottom