scripts moved from wiki to folder
This commit is contained in:
17
scripts/examples/observe-property-and-draw-text-on-screen.cs
Normal file
17
scripts/examples/observe-property-and-draw-text-on-screen.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
// Draws text on screen when full screen property changes.
|
||||
|
||||
using mpvnet;
|
||||
|
||||
class Script
|
||||
{
|
||||
public Script()
|
||||
{
|
||||
mp.observe_property_bool("fullscreen", FullscreenChange);
|
||||
}
|
||||
|
||||
void FullscreenChange(bool value)
|
||||
{
|
||||
mp.commandv("show-text", "fullscreen: " + value.ToString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user