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 2
Plugin Development
Trakt for MP2
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="Brownard" data-source="post: 1245019" data-attributes="member: 48291"><p>Hopefully should be fairly straightforward, you just need to call ISuperLayerManager.ShowSuperLayer with the notification superlayer's name and the duration, e.g.</p><p>[code=csharp]ServiceRegistration.Get<ISuperLayerManager>().ShowSuperLayer("RecordingStartedNotification", 10);[/code]</p><p>For TV this is handled in the <a href="https://github.com/MediaPortal/MediaPortal-2/blob/WIP_2.2/MediaPortal/Source/UI/TV/SlimTvClient/Models/SlimTvNotificationModel.cs#L65" target="_blank">SlimTvNotificationModel</a>. The base screen that contains the common layout/animations is defined in the screens subdirectory <a href="https://github.com/MediaPortal/MediaPortal-2/blob/WIP_2.2/MediaPortal/Source/UI/TV/SlimTvClient/Skin/default/screens/SlimTvClient-notification_bare.xaml" target="_blank">here</a>, then there's another screen <a href="https://github.com/MediaPortal/MediaPortal-2/blob/WIP_2.2/MediaPortal/Source/UI/TV/SlimTvClient/Skin/default/screens/SlimTvClient-notification_recording.xaml" target="_blank">here</a> that inherits from that and defines the information common to both recording started and stopped notifications. The actual superlayer needs to be in the superlayers subdirectory. e.g. the RecordingStartedNotification is defined <a href="https://github.com/MediaPortal/MediaPortal-2/blob/WIP_2.2/MediaPortal/Source/UI/TV/SlimTvClient/Skin/default/superlayers/RecordingStartedNotification.xaml" target="_blank">here</a>, and is just a basic screen that defines the title but inherits the rest of the layout/animations from the base screens.</p></blockquote><p></p>
[QUOTE="Brownard, post: 1245019, member: 48291"] Hopefully should be fairly straightforward, you just need to call ISuperLayerManager.ShowSuperLayer with the notification superlayer's name and the duration, e.g. [code=csharp]ServiceRegistration.Get<ISuperLayerManager>().ShowSuperLayer("RecordingStartedNotification", 10);[/code] For TV this is handled in the [URL='https://github.com/MediaPortal/MediaPortal-2/blob/WIP_2.2/MediaPortal/Source/UI/TV/SlimTvClient/Models/SlimTvNotificationModel.cs#L65']SlimTvNotificationModel[/URL]. The base screen that contains the common layout/animations is defined in the screens subdirectory [URL='https://github.com/MediaPortal/MediaPortal-2/blob/WIP_2.2/MediaPortal/Source/UI/TV/SlimTvClient/Skin/default/screens/SlimTvClient-notification_bare.xaml']here[/URL], then there's another screen [URL='https://github.com/MediaPortal/MediaPortal-2/blob/WIP_2.2/MediaPortal/Source/UI/TV/SlimTvClient/Skin/default/screens/SlimTvClient-notification_recording.xaml']here[/URL] that inherits from that and defines the information common to both recording started and stopped notifications. The actual superlayer needs to be in the superlayers subdirectory. e.g. the RecordingStartedNotification is defined [URL='https://github.com/MediaPortal/MediaPortal-2/blob/WIP_2.2/MediaPortal/Source/UI/TV/SlimTvClient/Skin/default/superlayers/RecordingStartedNotification.xaml']here[/URL], and is just a basic screen that defines the title but inherits the rest of the layout/animations from the base screens. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
Top
Bottom