argh
This commit is contained in:
21
src/Scripts2/C-Sharp/observe-property-and-draw-text.cs
Normal file
21
src/Scripts2/C-Sharp/observe-property-and-draw-text.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
// This script observes the fullscreen property and
|
||||
// draws text on screen when the property changes.
|
||||
|
||||
using mpvnet;
|
||||
|
||||
class Script
|
||||
{
|
||||
Core core;
|
||||
|
||||
public Script()
|
||||
{
|
||||
core = Core.core;
|
||||
core.observe_property_bool("fullscreen", FullscreenChange);
|
||||
}
|
||||
|
||||
void FullscreenChange(bool value)
|
||||
{
|
||||
core.commandv("show-text", "fullscreen: " + value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user