Need some help to develop plugin (1 Viewer)

boein

Portal Member
May 1, 2006
40
11
Ok finally found it, don't know if it's the right way to do, but it works.
In my code when pressing the record button I add 1 line of code setting my variable #BoeinPlugin.Record to true using

GUIPropertyManager.SetProperty("#BoeinPlugin.Record", "True")

In the xml of my plugin I add part of the code of tvoverlay.xml

...
<control>
<description>rec logo</description>
<type>image</type>
<id>100</id>
<posX>14</posX>
<posY>16</posY>
<width>18</width>
<height>18</height>
<texture>tvguide_record_button.png</texture>
<visible>string.equals(#BoeinPlugin.Record,True)</visible>
<animation effect="fade" start="20" time="2000" condition="false" pulse="false">visiblechange</animation>
<animation effect="fade" time="250">WindowClose</animation>
<animation effect="fade" time="250">WindowOpen</animation>
</control>
</controls>
</window>

then I add the <visible> line before <animation>
This can control wether this control will be visible or not
<visible>string.equals(#BoeinPlugin.Record,True)</visible>

in this line I use the same variable #BoeinPlugin.Record as in GUIPropertyManager.SetProperty in the code but don't put the variable between "" this also goes for the second parameter-True. After spending some days, it's just that simple.

Regards,
Boein
 

Dr.C

New Member
July 16, 2011
1
0
52
AW: Need some help to develop plugin

Is there a version of your wonderful plugin for Mepo 1.2 b ?? :D

I hope you publish it asap.

;)
 

boein

Portal Member
May 1, 2006
40
11
Re: AW: Need some help to develop plugin

Hi all,

Finally switched to MP1.2 and managed to make the plugin work on MP1.2 :)
You can download it in the 'radio' plugin download section

regards
Boein







Is there a version of your wonderful plugin for Mepo 1.2 b ?? :D

I hope you publish it asap.

;)
 

Users who are viewing this thread

Top Bottom