Files
mpv.net/src/Scripts2/C-Sharp/observe-property-and-draw-text.cs
Frank Skare b38c7cf834 argh
2021-05-07 11:12:25 +02:00

22 lines
394 B
C#

// 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);
}
}