Normal
Hi All, I am trying to write a plugin and I am getting stuck at the skinning stage, I am just trying to write the output of a bit of code run when I press a button and make that display in the skin. I have initialised the label control:[CODE][SkinControlAttribute(101)] protected GUILabelControl label_numDownloads = null;[/CODE] And then in the code that is being run when the button is pressed I have:[CODE]GUIPropertyManager.SetProperty("#numDownloads", string.Format("{0}",numOfTorrents));[/CODE] And finally in my XML I have:[CODE] <control> <description>text label</description> <type>label</type> <id>101</id> <posX>60</posX> <posY>150</posY> <label>#numDownloads</label> <font>mediastream9c</font> <textcolor>ff025984</textcolor> <visible>true</visible> </control>[/CODE] But when I open th plugin in mediaportal I see the button but the text under it is just "#NUMDOWNLOADS" and it never changes even if I press the button. What am I doing wrong?
Hi All,
I am trying to write a plugin and I am getting stuck at the skinning stage, I am just trying to write the output of a bit of code run when I press a button and make that display in the skin.
I have initialised the label control:
[CODE][SkinControlAttribute(101)] protected GUILabelControl label_numDownloads = null;[/CODE]
And then in the code that is being run when the button is pressed I have:
[CODE]GUIPropertyManager.SetProperty("#numDownloads", string.Format("{0}",numOfTorrents));[/CODE]
And finally in my XML I have:
[CODE] <control>
<description>text label</description>
<type>label</type>
<id>101</id>
<posX>60</posX>
<posY>150</posY>
<label>#numDownloads</label>
<font>mediastream9c</font>
<textcolor>ff025984</textcolor>
<visible>true</visible>
</control>[/CODE]
But when I open th plugin in mediaportal I see the button but the text under it is just "#NUMDOWNLOADS" and it never changes even if I press the button. What am I doing wrong?