- Thread starter
- #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
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