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
MediaPortal 1 Plugins
is this possible? replacing a core mp function by 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="samuel337" data-source="post: 65084" data-attributes="member: 10347"><p>Event handlers won't help you much there because you can't stop another event handler from being called. Hence you can't <em>replace</em> the function.</p><p></p><p>Its a tricky situation - the only real solution that I can think of is to create a new plugin by inheriting from the GUIVideoFiles screen, then try overriding the OnClick function (can't remember if overriding a function is available by default). Even so, that could lead to other issues. Otherwise, you can try to use reflection to reverse the effects of the OnClick function.</p><p></p><p>The easiest solution would probably be to submit a patch to MP that either changes the OnClick function to your liking, or changes the OnClick function such that it can hook into whatever other function you want it to do.</p><p></p><p>Sam</p></blockquote><p></p>
[QUOTE="samuel337, post: 65084, member: 10347"] Event handlers won't help you much there because you can't stop another event handler from being called. Hence you can't [i]replace[/i] the function. Its a tricky situation - the only real solution that I can think of is to create a new plugin by inheriting from the GUIVideoFiles screen, then try overriding the OnClick function (can't remember if overriding a function is available by default). Even so, that could lead to other issues. Otherwise, you can try to use reflection to reverse the effects of the OnClick function. The easiest solution would probably be to submit a patch to MP that either changes the OnClick function to your liking, or changes the OnClick function such that it can hook into whatever other function you want it to do. Sam [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
is this possible? replacing a core mp function by plugin?
Contact us
RSS
Top
Bottom