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!)
Conditional Visibility Custom Condition
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="arion_p" data-source="post: 548255" data-attributes="member: 45945"><p>Define a new skin property (something like #FritzBox.NewMessageCount) in your plugin. To do this use:[code]GUIPropertyManager.SetProperty("#FritzBox.NewMessageCount", string.empty);[/code]at plugin initialization. Then whenever the new message count changes use:</p><p>[code]GUIPropertyManager.SetProperty("#FritzBox.NewMessageCount", newMessageCount.ToString());[/code]where <strong>newMessageCount </strong>is a local (int I assume) variable holding the message count.</p><p>In the modified skin use the following condition:</p><p>[code]<visible>!string.equals(#FritzBox.NewMessageCount,0)</visible>[/code]</p></blockquote><p></p>
[QUOTE="arion_p, post: 548255, member: 45945"] Define a new skin property (something like #FritzBox.NewMessageCount) in your plugin. To do this use:[code]GUIPropertyManager.SetProperty("#FritzBox.NewMessageCount", string.empty);[/code]at plugin initialization. Then whenever the new message count changes use: [code]GUIPropertyManager.SetProperty("#FritzBox.NewMessageCount", newMessageCount.ToString());[/code]where [B]newMessageCount [/B]is a local (int I assume) variable holding the message count. In the modified skin use the following condition: [code]<visible>!string.equals(#FritzBox.NewMessageCount,0)</visible>[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Conditional Visibility Custom Condition
Contact us
RSS
Top
Bottom