mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 15:57:03 -05:00
impr: Get rid of cimgui shared library by hooking pinvoke handler
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
using ImHex;
|
||||
using ImGuiNET;
|
||||
class Script {
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user