impr: Added support for returning results from scripts

This commit is contained in:
WerWolv
2024-05-18 12:57:29 +02:00
parent 1d6676f059
commit 6b6a6ae5f0
6 changed files with 60 additions and 27 deletions

View File

@@ -3,14 +3,18 @@ using ImGuiNET;
class Script : IScript {
public static void OnLoad()
public static int OnLoad()
{
// This function is executed the first time the Plugin is loaded
return 1;
}
public static void Main()
public static int Main()
{
// This function is executed when the plugin is selected in the "Run Script..." menu
return 1;
}
}