mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Fix compilation error
This commit is contained in:
parent
7e5485f42d
commit
7eccce1dd7
2 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
|||
using Dalamud.Bindings.ImGui;
|
||||
using Dalamud.Game.Gui;
|
||||
using Dalamud.Memory;
|
||||
using Dalamud.Game.NativeWrapper;
|
||||
using Dalamud.Utility;
|
||||
|
||||
namespace Dalamud.Interface.Internal.Windows.Data.Widgets;
|
||||
|
||||
|
|
|
|||
|
|
@ -412,11 +412,11 @@ public static unsafe partial class ImGui
|
|||
}
|
||||
}
|
||||
|
||||
public static bool MenuItem(ImU8String label, bool enabled = true)
|
||||
public static bool MenuItem(ImU8String label, bool selected = false, bool enabled = true)
|
||||
{
|
||||
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
|
||||
{
|
||||
var r = ImGuiNative.MenuItem(labelPtr, null, null, enabled ? (byte)1 : (byte)0) != 0;
|
||||
var r = ImGuiNative.MenuItem(labelPtr, null, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0) != 0;
|
||||
label.Dispose();
|
||||
return r;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue