Normal
Event handlers won't help you much there because you can't stop another event handler from being called. Hence you can't replace 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
Event handlers won't help you much there because you can't stop another event handler from being called. Hence you can't replace 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