Plugin samples

Responding to signals

This plugin alerts user on Tab key and refuses to install on any build older than 146.

function OnKeypress(&key) {
    if (key == #9) {
        alert("Tab was pressed!");
    }
}

function OnInstalled() {
    if (WeBuilder.BuildNumber < 146) {
        return "This plugin needs newer build to run.";
    }
}

Script.ConnectSignal("keypress", &OnKeypress);
Script.ConnectSignal("installed", &OnInstalled);