Add a convenience overload for MenuItem

The shortcut is often empty.
internals
Eric Mellino 8 years ago
parent c054db3719
commit acb20ccdad
  1. 2
      src/ImGui.NET/ImGui.cs

@ -515,6 +515,8 @@ namespace ImGuiNET
ImGuiNative.igSeparator();
}
public static bool MenuItem(string label) => MenuItem(label, string.Empty);
public static bool MenuItem(string label, string shortcut)
{
return MenuItem(label, shortcut, false, true);

Loading…
Cancel
Save