home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Need some help to develop plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="boein" data-source="post: 706958" data-attributes="member: 20256"><p>Ok finally found it, don't know if it's the right way to do, but it works.</p><p>In my code when pressing the record button I add 1 line of code setting my variable #BoeinPlugin.Record to true using </p><p></p><p>GUIPropertyManager.SetProperty("#BoeinPlugin.Record", "True")</p><p></p><p>In the xml of my plugin I add part of the code of tvoverlay.xml</p><p></p><p>...</p><p> <control> </p><p> <description>rec logo</description></p><p> <type>image</type></p><p> <id>100</id></p><p> <posX>14</posX></p><p> <posY>16</posY></p><p> <width>18</width></p><p> <height>18</height></p><p> <texture>tvguide_record_button.png</texture></p><p> <visible>string.equals(#BoeinPlugin.Record,True)</visible></p><p> <animation effect="fade" start="20" time="2000" condition="false" pulse="false">visiblechange</animation></p><p> <animation effect="fade" time="250">WindowClose</animation></p><p> <animation effect="fade" time="250">WindowOpen</animation></p><p> </control></p><p> </controls></p><p></window></p><p></p><p>then I add the <visible> line before <animation> </p><p>This can control wether this control will be visible or not</p><p><visible>string.equals(#BoeinPlugin.Record,True)</visible></p><p></p><p>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. </p><p></p><p>Regards,</p><p>Boein</p></blockquote><p></p>
[QUOTE="boein, post: 706958, member: 20256"] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Need some help to develop plugin
Contact us
RSS
Top
Bottom