feat: Added logger module to script loader

This commit is contained in:
WerWolv
2024-03-13 19:49:48 +01:00
parent 2c711ea206
commit 458584d778
8 changed files with 161 additions and 20 deletions

View File

@@ -2,17 +2,9 @@
using ImGuiNET;
class Script {
public static void OnLoad() {
public static void OnLoad()
{
// This function is executed the first time the Plugin is loaded
UI.RegisterView(new byte[]{ 0xEE, 0xAC, 0x89 }, "Test View", () =>
{
ImGui.SetCurrentContext(UI.GetImGuiContext());
ImGui.TextUnformatted("Test Text");
if (ImGui.Button("Hello World"))
{
UI.ShowToast("Hello World");
}
});
}
public static void Main()