Skip to content

Commit 3e490c7

Browse files
committed
Fix examples.
1 parent 6b0bcd3 commit 3e490c7

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

ExampleImGui/ExampleImGui.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Hexa.NET.ImGui" Version="2.1.1" />
13-
<PackageReference Include="Hexa.NET.ImGuizmo" Version="2.1.1" />
14-
<PackageReference Include="Hexa.NET.ImNodes" Version="2.1.1" />
15-
<PackageReference Include="Hexa.NET.ImPlot" Version="2.1.1" />
16-
<PackageReference Include="Hexa.NET.Utilities" Version="2.1.6" />
12+
<PackageReference Include="Hexa.NET.ImGui" Version="2.2.2" />
13+
<PackageReference Include="Hexa.NET.ImGuizmo" Version="2.2.2" />
14+
<PackageReference Include="Hexa.NET.ImNodes" Version="2.2.2" />
15+
<PackageReference Include="Hexa.NET.ImPlot" Version="2.2.2" />
16+
<PackageReference Include="Hexa.NET.Utilities" Version="2.1.14" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

ExampleImGui/ImGuiManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public unsafe ImGuiManager()
108108
colors[(int)ImGuiCol.TableRowBgAlt] = new Vector4(1.00f, 1.00f, 1.00f, 0.06f);
109109
colors[(int)ImGuiCol.TextSelectedBg] = new Vector4(0.20f, 0.22f, 0.23f, 1.00f);
110110
colors[(int)ImGuiCol.DragDropTarget] = new Vector4(0.33f, 0.67f, 0.86f, 1.00f);
111-
colors[(int)ImGuiCol.NavHighlight] = new Vector4(1.00f, 0.00f, 0.00f, 1.00f);
111+
colors[(int)ImGuiCol.NavCursor] = new Vector4(1.00f, 0.00f, 0.00f, 1.00f);
112112
colors[(int)ImGuiCol.NavWindowingHighlight] = new Vector4(1.00f, 0.00f, 0.00f, 0.70f);
113113
colors[(int)ImGuiCol.NavWindowingDimBg] = new Vector4(1.00f, 0.00f, 0.00f, 0.20f);
114114
colors[(int)ImGuiCol.ModalWindowDimBg] = new Vector4(0.10f, 0.10f, 0.10f, 0.00f);

ExampleImGui/ImGuiRaylib.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ private static void ReloadFonts()
7070
io.Fonts.TexID = new ImTextureID((nint)fontTexture);
7171
}
7272

73-
private static byte* GetClipTextCallback(void* userdata)
73+
private static byte* GetClipTextCallback(ImGuiContext* ctx)
7474
{
7575
return Raylib.GetClipboardText();
7676
}
7777

78-
private static void SetClipTextCallback(void* userdata, byte* text)
78+
private static void SetClipTextCallback(ImGuiContext* ctx, byte* text)
7979
{
8080
Raylib.SetClipboardText(text);
8181
}
@@ -373,10 +373,10 @@ public static bool Init()
373373

374374
ImGuiPlatformIOPtr platformIO = ImGui.GetPlatformIO();
375375

376-
io.SetClipboardTextFn = (void*)Marshal.GetFunctionPointerForDelegate<SetClipboardTextFn>(SetClipTextCallback);
377-
io.GetClipboardTextFn = (void*)Marshal.GetFunctionPointerForDelegate<GetClipboardTextFn>(GetClipTextCallback);
376+
platformIO.PlatformSetClipboardTextFn = (void*)Marshal.GetFunctionPointerForDelegate<PlatformSetClipboardTextFn>(SetClipTextCallback);
377+
platformIO.PlatformGetClipboardTextFn = (void*)Marshal.GetFunctionPointerForDelegate<PlatformGetClipboardTextFn>(GetClipTextCallback);
378378

379-
io.ClipboardUserData = null;
379+
platformIO.PlatformClipboardUserData = null;
380380

381381
BuildFontAtlas();
382382

0 commit comments

Comments
 (0)